Skip to content

Commit e93d240

Browse files
committed
change to TOL
1 parent 9b2f245 commit e93d240

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/compas_cgal/straight_skeleton_2.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
from compas.geometry import normal_polygon
3-
from compas.tolerance import Tolerance
3+
from compas.tolerance import TOL
44

55
from compas_cgal._cgal import straight_skeleton_2
66

@@ -26,8 +26,7 @@ def create_interior_straight_skeleton(points) -> PolylinesNumpy:
2626
If the normal of the polygon is not [0, 0, 1].
2727
"""
2828
points = list(points)
29-
tol = Tolerance()
30-
if not tol.is_allclose(normal_polygon(points, True), [0, 0, 1]):
29+
if not TOL.is_allclose(normal_polygon(points, True), [0, 0, 1]):
3130
raise ValueError("Please pass a polygon with a normal vector of [0, 0, 1].")
3231
V = np.asarray(points, dtype=np.float64)
3332
return straight_skeleton_2.create_interior_straight_skeleton(V)

0 commit comments

Comments
 (0)