Need help, or want to share a macro? Post here!
- Posts: 99
- Joined: Sun Jul 24, 2022 12:49 pm
Can you let me know if the function
guaranty preserving the shape of the wire (closed curve) with increasing the number of vertexes?
More so does and if the
choose in every iteration the longest edge and half it?
- Posts: 5455
- Joined: Thu Dec 27, 2018 12:28 pm
Create a Draft_Rectangle
and then run this code:
Code: Select all
doc = App.ActiveDocument
obj = doc.getObject("Rectangle")
wire = obj.Shape.Wires
pts = wire.discretize(30)