MoI discussion forum
MoI discussion forum

Full Version: Automate NURB to Polygon

From: jeff (JSPRENGER)
9 Mar 2018   [#1]
I'm interested in automating the conversion of a closed curve (symmetrical) to a polygon.
Right now, I do it by using a polyline and clicking on points along the curve.

My sense is that this could be done in a script by choosing the number of desired segments and/or max angle between two segments.

Any suggestions or similar scripts for MOI?

Attached - original curve and my poly line tracing, which I'd like to automate.
The polygon is offset so that you can see it better.

Thanks.

Image Attachments:
NURB2Polygon.png 


From: Michael Gibson
9 Mar 2018   [#2] In reply to [#1]
Hi jeff, one possibility is to select your curve, run File > Export and export it to a DXF file. That has an option to write the curve as a polyline with a maximum angle parameter, and then you can read the DXF file back in using File > Import.

For using a set number of evenly spaced points I think the ReconstructCurve script from here might have that option:
http://kyticka.webzdarma.cz/3d/moi/#ReconstructCurve

- Michael