kshdes37's picture
Upload 50 files
91daf98 verified
raw
history blame contribute delete
370 Bytes
import math
class Curve():
def __init__(self, point_indices, point_data):
self.point_indices = point_indices
self.point_geom = point_data[point_indices, 0:2]
def verts_to_bbox(self, verts):
xs = [v[0] for v in verts]
ys = [v[1] for v in verts]
bbox = [min(xs), max(xs), min(ys), max(ys)]
return bbox