Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
romanarust committed Sep 18, 2024
1 parent 3003642 commit 32e30dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/examples/straight_skeleton_2.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/straight_skeleton_2_holes.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"):
Expand Down

0 comments on commit 32e30dc

Please sign in to comment.