diff --git a/docs/examples/straight_skeleton_2.py b/docs/examples/straight_skeleton_2.py index 1418444..0be3eb3 100644 --- a/docs/examples/straight_skeleton_2.py +++ b/docs/examples/straight_skeleton_2.py @@ -1,4 +1,3 @@ -from compas.geometry import Line from compas_cgal.straight_skeleton_2 import create_interior_straight_skeleton from compas_viewer import Viewer @@ -24,7 +23,7 @@ viewer = Viewer(width=1600, height=900) for edge in graph.edges(): - line = Line(*graph.edge_coordinates(edge)) + line = graph.edge_line(edge) if graph.edge_attribute(edge, "inner_bisector"): print(edge, "inner_bisector") viewer.add(line, linecolor=(1.0, 0.0, 0.0), linewidth=2) diff --git a/docs/examples/straight_skeleton_2_holes.py b/docs/examples/straight_skeleton_2_holes.py index 47a2e12..b1b91bf 100644 --- a/docs/examples/straight_skeleton_2_holes.py +++ b/docs/examples/straight_skeleton_2_holes.py @@ -1,4 +1,4 @@ -from compas.geometry import Polygon, Line +from compas.geometry import Polygon from compas_viewer import Viewer from compas_cgal.straight_skeleton_2 import create_interior_straight_skeleton_with_holes @@ -34,7 +34,7 @@ viewer = Viewer(width=1600, height=900) for edge in graph.edges(): - line = Line(*graph.edge_coordinates(edge)) + line = graph.edge_line(edge) if graph.edge_attribute(edge, "inner_bisector"): viewer.add(line, linecolor=(1.0, 0.0, 0.0), linewidth=2) elif graph.edge_attribute(edge, "bisector"):