Is there a plugin script to...

Next
 From:  r2d3
8828.1 
... 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...


Ralf:)
looking for moments of inspiration...

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8828.2 In reply to 8828.1 
Yes!

...wait a bit and I will let you know.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8828.3 In reply to 8828.1 
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!

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  r2d3
8828.4 In reply to 8828.3 
PERFEKT!

Does exactly what i need!
Thanks a lot!

Can i use the code for my "STLimport&clean" script i'm working on?


Ralf:)
looking for moments of inspiration...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8828.5 In reply to 8828.4 
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!

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  r2d3
8828.6 In reply to 8828.5 
42 Karma points to you and all our Gurus (incl. Max)
;-)


Ralf:)
looking for moments of inspiration...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8828.7 In reply to 8828.1 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8828.8 In reply to 8828.7 
Hi Michael.

Thanks a lot for the reminder :)

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  r2d3
8828.9 In reply to 8828.7 
Wow this is even better..

Never used Rebuild before....

Thank you Michael to let some more light into the endless box... :-)


Ralf:)
looking for moments of inspiration...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All