MoI discussion forum
MoI discussion forum

Full Version: converting lines

From: Mr. Yuri (MR_JURAJ)
3 Nov 2018   [#1]
Hi All.
Is there a way to convert lines, polylines into freeform curves?
Basically to switch points from "non-corner point" objects.

Idea is to smooth out the line that was quickly drawn as a polyline (using corner points).

Thanks
From: bemfarmer
3 Nov 2018   [#2] In reply to [#1]
_DelCorners script by Max Smirnov:
http://moi.maxsm.net/media/files/
- Brian
From: Michael Gibson
3 Nov 2018   [#3] In reply to [#1]
Hi Mr. Yuri, you can also use the Rebuild command with Mode = "Endpoints" which will make a "through points" type curve going through the line segment endpoints.

- Michael
From: Mr. Yuri (MR_JURAJ)
4 Nov 2018   [#4]
Thanks.
Maxs script works fine.

Also rebuild command can be used. Forgot about that since I read the docs. :(

Also can I do the reverse?

To sample a freeform curve to a polyline?
Rebuild doesn't seem to help.

Yuri
From: Michael Gibson
4 Nov 2018   [#5] In reply to [#4]
Hi Mr. Yuri, for converting a curve to a polyline you could export the curve to a DXF file which has an option to break curves into polylines and then read that back in again.

Or a slightly different method if you want to make a polyline for the control points of the curve rather than points sampled on the curve, that should be possible by extracting the control points as point objects which you do by turning on control points, select one, then Ctrl+A to select all then copy and paste them. Then with the point objects use SavePointFile from here: http://kyticka.webzdarma.cz/3d/moi/#SavePointFile (use the one that says its updated for OSX even if you're on Windows, it's the one that will work with MoI v3 or v4, the original will only work with MoI v2), and then ImportPointFile http://kyticka.webzdarma.cz/3d/moi/#ImportPointFile which has options to build either points, polylines, or a curve from the imported point sequence.

- Michael
From: Mr. Yuri (MR_JURAJ)
4 Nov 2018   [#6] In reply to [#5]
Good to know.

Thanks Michael