Skip to content

Commit

Permalink
edit revcloud example
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Mar 8, 2024
1 parent bf6e921 commit 5f3b343
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/render/revcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@
def main():
doc = ezdxf.new()
msp = doc.modelspace()
length = 0.1
lw_points = revcloud.points(
[(0, 0), (1, 0), (1, 1), (0, 1)],
segment_length=0.1,
segment_length=length,
bulge=0.5,
start_width=0.01,
end_width=0,
)
msp.add_lwpolyline(lw_points)

lwp = msp.add_lwpolyline(lw_points)
# You can add XDATA for CAD applications, but it's not required and has no
# advantages - BricsCAD still does not recognize such entities as REVCLOUD entities.
lwp.set_xdata("RevcloudProps", [(1070, 0), (1040, length)])
doc.appids.add("RevcloudProps")
doc.saveas(CWD / "revcloud.dxf")


Expand Down

0 comments on commit 5f3b343

Please sign in to comment.