a tale of two splines

a tale of two splines

from browsing the various forums, I see a user "plant" asking a question and I see a need to fill. Now I submit to the forum the answer to plant's question.

Between Splines.js
http://www.geocities.com/todd_w_r/mov/bs.zip

place it in the tools folder and restart cheetah
create two splines
select "between splines.js" from the tools menu
click on the first spline, click select
click on the second spline, click ok
a new polygon object is created to fill the space between the splines

ps. added a link and also included the file here so there should be no trouble getting it

pps. look at my message later

?? a bug??
martin was a spline is moved the lines are drawn to the originals even though I am calling modCore on the spline object. A work around is to move the splines where they need to be and then burn transform them both before using this script.

Todd
 
Last edited:
Hi,
great script. I'm sure many will love this.:smile:

But you forgot to handle the object transformations. The points in a spline core are always given according to its object coordinate system. But in your case you are intrested in world coordinates to build the mesh.

To get the object to world transformation matrix of a object use the "obj2WorldMatrix()" function. Then you just have to multiply the controll points by the obj2world matrix. That will solve your problem.


Bye,
Martin
 
Opps...

installed and corrected

here is the new one

Todd

p.s. made one last minute mod... the newly created object's center is now between the two splines center's. makes for easier moving and rotation
 

Attachments

  • bs.zip
    1.7 KB · Views: 827
Last edited:
That´s truly fantastic, Todd.

Hi Todd.
Thank you very much! I love it. And now for the power junkies; do you think there could be more than two splines for such a tool script? Gimme more.
Thanx again.
Franx
 
Thanks to Todd and Frank this works beautifully, so useful. Adding even more splines would be really good but I wouldnt want to be greedy.
Thanks again
 
Excellent script Todd thanks for sharing it. :)

Andrew

P.S. Thanks to everyone that contributes scripts they are all helpful.
 
Thanks Todd

I love the way you did that, this is a great tool. Thank you again. And I agree thanks to all who make scripts.
 
After pondering a bit...
set up a spline, then add other splines as children to the first spline

Code:
spline1
   spline2
   spline3
   spline4

select between splines+ from the menu
make sure that spline1 is selected
click OK

if the object that is created is inside out... click Flip and then OK

have fun
Todd


ps
martin
by any chance is there a way to assign a hot ket to scripts? this would be a very cool feature
 

Attachments

  • bs+.zip
    1.9 KB · Views: 785
Last edited:
Brilliant, Todd!

Hi Todd.

Thank you very much. Hopefully the vehiclemakers of you will improve their body sheets now.

But now for the limitations with using complex splines: fortunately the script ignore the count of path elements and lines a spline contains. This is a great improvement, for all you were trying patching splines. Some apps will just cover splines with exact the same count of nodes - so forget about this.

The other thing goes to closed splines. In most of the 2d svg editors you can´t tell a complex path (generated with star tools for example) where the start or end is. But for patching the start/end points have to be in the most same direction; north, south etc. Otherwise you will get a winding with your mesh. Drawing such splines within Cheetah3d can be managed, so be aware to begin your splines at the same direction.


With kindest regards
Frank

Dropforged bit:
 

Attachments

  • SpaxBit.jpg
    SpaxBit.jpg
    18.7 KB · Views: 1,619
frank and anyone interested,

how should I handle sub paths of splines? maybe treat them as children... so one spline then could create the object? it wouldn't take much to make it so. I'll wait till I hear more about it.

Todd
 
Hi Todd.
I´m quiet happy with your script. I have no idea to patch splines including subpaths (combined paths). Patching from "A" to "O" won´t work so far, but I´m not sure about it´s possibility or usefullness. So let us hear more comments.
Thanks again for all your effort on this.

Frank
 
Thank you

Hi,
Thank you very very much:icon_thumbup:! It is great to have another script to download. This is one of the best Cheetah scripts there are (I liked the ripple script you made better:cool:). All of your scripts are very high quality and extremely usefull. How do you guy's write scripts? Is there a bulit-in script writer in Cheetah were you can type in commands or do you use xCode?
You and Hiroto add a lot to the fourm with your wonderfull scripts:icon_thumbup:.

Thank you,
Greg
 
wow...

frank and anyone interested,

how should I handle sub paths of splines? maybe treat them as children... so one spline then could create the object? it wouldn't take much to make it so. I'll wait till I hear more about it.

Todd

Dear Todd

What a beakthrough...man you are a bit of a wizzkid...I have to say that your script is a great addition to making C3D a leader in it's field

You are (underscore) a star.

many many thanks

Luke
 
Hi All,

after playing a bit with c3d I am trying to use those awesome scripts that some of you wrote.

BUT... I might be to stupid to do so as m y C3D app crashes if I try to use this promising script "between splines+".
with C3D 3.5 i create a circle and a rect spline... than I go into tools/scripts/between splines+
If I now select the parent spline, how can I click "okay" for the script? If I select the spline I have the splines properties in the right hand bar...
if I select the script, and press okay C3D will crash...

be patient, I'm new to scripts and dont know exactly how to use them... sry

-t0m
 

Attachments

  • Bild 1.png
    Bild 1.png
    54 KB · Views: 625
t0m,

move the between splines script from the polygon folder to the tools folder and then select it from the tools menu. select the parent spline and then you will be able to click ok and create a new object.

Todd
 
Todd, Frank,

I really like this script but one qestion remains - for me at least:
how do I (how did you, Frank) make your model "solid"?
I do get just a surface, e.g. the rect-to-circle-object is a tube instead of a solid cylinder.
Another thing that I realized is that the resulting object gets a twist... I have to rotate one of splines in order to get a resulting object that looks like it was extruded straightly - hard to explain, I might post images later.

Again: thanks for the grat script and the help!

-t0m
 
t0m,

use fill hole to close off the tube. in order to have no twists in the new object the starting point of each of the splines needs to be aligned, as you found out. since I have no control how the splines are created, it is up to you to make sure all the starting points are where they should be.

Todd
 
t0m,

use fill hole to close off the tube. in order to have no twists in the new object the starting point of each of the splines needs to be aligned, as you found out. since I have no control how the splines are created, it is up to you to make sure all the starting points are where they should be.

Todd
Does anybody know how to change the starting point of an already existing spline in Adobe Illustrator or let's say Intaglio?
 
Back
Top