Convert a control point curve to interpolation points (through points)?
All  1-3  4-6

Previous
Next
 From:  Michael Gibson
5247.4 In reply to 5247.3 
Hi Brian, I see - but it's probably going to be quite difficult to get a good fairing routine just done in script.

But you might check out the RebuildCurve script that Petr made all in script before the regular Rebuild command was implemented though - it samples points on an existing curve and then makes a new "curve through point" through those points, it's the one here:
http://kyticka.webzdarma.cz/3d/moi/#ReconstructCurve

That does what I think you're asking about, getting some points along an existing curve than using "Curve through points" to build a new curve through those points.

That's more about reducing a curve's control point structure more than actual "fairing" though.


I am planning on experimenting with some other curve fairing mechanisms that will be more based on altering an existing curve's tangents to try and more evenly distribute changes in curvature. It won't be easy to do that at a script level right now though.

- 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:  bemfarmer
5247.5 In reply to 5247.4 
Thank you very much Michael.
I guess the heavy work is done in the C++ code, at a much faster rate, with the Javascript for an "interface."

Looking forward to your future features.

Brian
  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:  Michael Gibson
5247.6 In reply to 5247.5 
Hi Brian,

> I guess the heavy work is done in the C++ code, at a much faster rate,
> with the Javascript for an "interface."

Yeah that's mostly how things are set up. Javascript code is used to control things at a high level like the workflow of a command, hide/show different controls, etc... while the more heavy duty calculation is done at the C++ level.

But in the future I think it will be possible to do some more advanced stuff with script by growing the library of geometry related functions that are exposed to be script callable.

- 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-6