From: r2d3
... transform a polygone to a curve?
Let's say i have a 10 sided polygon and i like to get a curve through all the points.
I can do it by hand by drawing a freeform line through points...
But i like to have a script for the 58 sided polygon...
Image Attachments:
2018.02.16-11.45.13-[Top].png
2018.02.16-11.45.36-[Top].png
From: mkdm
Yes!
...wait a bit and I will let you know.
From: mkdm
Hi Ralf!
Here I'm.
Video tut :
http://take.ms/9Wj2V
Custom commands :
http://take.ms/BbUct
Unzip the four files and put them into the "commands" folder.
I recovered an old custom command written by ...(I don't remember ) : _PolyCurveToCurveBeta
I've done another modified version : _PolyCurveToInterpCurveBeta
1) _PolyCurveToCurveBeta : given one PolyLine in input, generates a Control Point Curve that passes through the points of the segments of the source PolyLine
2) _PolyCurveToInterpCurveBeta : given one PolyLine in input, generates a Interpolated Control Point Curve that passes through the points of the segments of the source PolyLine
Keep in mind that these commands are very simple and I didn't make any debug or check.
If you need the original source PolyLine to be untouched remember to copy it before run the commands because these commands breaks the polyline into segments.
Ciao!
From: r2d3
PERFEKT!
Does exactly what i need!
Thanks a lot!
Can i use the code for my "STLimport&clean" script i'm working on?
From: mkdm
You can use everything !
:)
I think that here the unique true "owner" of any code is Michael :) ...the "hidden hand" behind all our scripts and plugins :)
Ciao!
From: r2d3
42 Karma points to you and all our Gurus (incl. Max)
;-)
From: Michael Gibson
Hi Ralf,
re:
> Let's say i have a 10 sided polygon and i like to get a curve through all the points.
You can also use the existing Rebuild command for this task, there's an "Endpoints" mode that will build the new curve by interpolating through the endpoints of segments. There's also a "Break angle" parameter where it will keep sharp corners at lines greater than the specified angle, if you want no sharp corners preserved at all put in a high angle like 180 for that value.
- Michael
From: mkdm
Hi Michael.
Thanks a lot for the reminder :)
From: r2d3
Wow this is even better..
Never used Rebuild before....
Thank you Michael to let some more light into the endless box... :-)