Skip to content

Commit 691a3d0

Browse files
committed
Update straight_skeleton_2.py
1 parent d5b1bfe commit 691a3d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compas_cgal/straight_skeleton_2.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,12 @@ def create_interior_straight_skeleton_with_holes(points, holes) -> PolylinesNump
5656
points = list(points)
5757
if not TOL.is_allclose(normal_polygon(points, True), [0, 0, 1]):
5858
raise ValueError("Please pass a polygon with a normal vector of [0, 0, 1].")
59+
V = np.asarray(points, dtype=np.float64)
5960
H = []
6061
for hole in holes:
6162
points = list(hole)
6263
if not TOL.is_allclose(normal_polygon(points, True), [0, 0, -1]):
6364
raise ValueError("Please pass a hole with a normal vector of [0, 0, -1].")
6465
hole = np.asarray(points, dtype=np.float64)
6566
H.append(hole)
66-
67-
V = np.asarray(points, dtype=np.float64)
6867
return straight_skeleton_2.create_interior_straight_skeleton_with_holes(V, H)

0 commit comments

Comments
 (0)