Paste Spline.js

Attachments

  • ch_20121002_pastespline.jpg
    ch_20121002_pastespline.jpg
    52.7 KB · Views: 804
  • PasteSpline_chart.jpg
    PasteSpline_chart.jpg
    66 KB · Views: 793
Last edited:
Great script.

Wow - this opens a bunch of possibilities. :icon_thumbup:
I might add you can reduce the amount of points on rounded splines by increasing the approximation angle of the spline first.

Thank you for sharing - this will come in handy for sure.

Cheers
Frank
 
Seriously Hiroto - are you psychic or what, mate? I was just sitting here with a nice cup of tea, wondering how I could easily make an arched window in a curved castle turret wall, when I discover you have just uploaded a script which does exactly what I need!

Thankyou very much.


.....actually I find I'm having a slight problem: I can project the spline onto the object as you have in your example, but I cannot seem to connect the points with the scalpel tool??? (using v.6.01 under OS X Lion 10.7.4).


thanks again!
 
....actually I find I'm having a slight problem: I can project the spline onto the object as you have in your example, but I cannot seem to connect the points with the scalpel tool??? (using v.6.01 under OS X Lion 10.7.4).
Actually it´s all written down in the attached image: as the projected points won´t connect you´ll have to use the scalpel to introduce as many points as projected ones (skip these that are already on an edge) - then use weld-to-first-point by clicking a projected point then the cut one near by. As Hiroto describes in his paper. ;)

Cheers
Frank
 
Actually it´s all written down in the attached image: as the projected points won´t connect you´ll have to use the scalpel to introduce as many points as projected ones (skip these that are already on an edge) - then use weld-to-first-point by clicking a projected point then the cut one near by. As Hiroto describes in his paper. ;)

Cheers
Frank

Ahh, that wasn't quite clear, thanks. I've done that now and can see how it works, but in that case it's slightly less magical than I'd hoped.

Ideally (a question for Hiroto really), having done the difficult bit of figuring out the surface projection, could the tool also perform the next logical step of adding the projected points to the object and connecting them automatically?

I don't really want to have to manually insert the same number of points as say, the flower spline (30 by default) or even less the cog spline (120 points for the default 20 teeth one)!
 
Ahh, that wasn't quite clear, thanks. I've done that now and can see how it works, but in that case it's slightly less magical than I'd hoped.
C´mon.
Read closely. Hiroto said: "it's not a magic tool, ..."
And I wrote: ".. to reduce the amount of points increase the approximation angle of the spline first!"

The next logical step would be a complete "Boolean operation" on an open heart. Don´t think that´s possible yet.

Cheers
Frank
 
yes - I did read both remarks, but I respectfully maintain it would be even more magic (than it already is) if it could add and connect the points as well!

cheers
 
hi, thank you for using it.

actually, I know that problem. so, I updated and renamed it. still not magic tool, but it's better. I hope. ;)



regards.

tg_jp, Hiroto.
 
hi, thank you for using it.

actually, I know that problem. so, I updated and renamed it. still not magic tool, but it's better. I hope. ;)



regards.

tg_jp, Hiroto.

Hi Hiroto - thanks for this update: at least some of the points are now added to the original polygon object when the appropriate box is checked - but some are not, it seems. (I presume the cutting with the scalpel tool is still supposed to be done manually). Using a square spline, I cannot make cuts from or to the corner points. Using a circle spline, I cannot make cuts between any points. I've attached a screenshot.

Thanks again for this great tool.
 

Attachments

  • Screen Shot 2012-10-05 at 10.08.59 AM.jpg
    Screen Shot 2012-10-05 at 10.08.59 AM.jpg
    218.1 KB · Views: 750
hi, thank you for testing.

you can not use scalpel tool for added point on polygon surface by 'point detection' ( currently script cannot calculate how polygon should be seprated by added points/edges ). so you have to add new point, and align those points position with weld tool ( first point ).

regards.

tg_jp, Hiroto.
 
Last edited:
OK understood - and that's fine for splines with low curvature (eg the square) since cutting across an object's edge in a straight line won't lose much information from the projection, and adding and welding a few corner points manually where a projected point lands between edges isn't so bad.

But for more curved splines, there could be many projected points which fall between two edges, and which will not be co-linear on the surface polygon in general, and so it could require quite a bit of manual point insertion/welding to accurately capture the original projection.

Alternatively, if I want to keep the manual point insertion to a minimum, I could increase the geometry to ensure there are more edges for the projection to fall on, but that may not be desirable. In the (admittedly contrived) example below I made tubes with 8, 32 (default) and 100 faces to illustrate. In the 8-sided one I basically just get two projected points added to one edge - so in order to make cuts on the surface I would need to add & weld all the others manually. Even with 32 faces I still only get 4 points added on two edges, so I can only draw two lines without any further manual adding/welding. With 100 faces, I can make several cuts and get a fair approximation to the projection without adding/welding the other points, but still miss some subtle detail around the corners.

Still an excellent tool though - I guess I'll just keep to square windows for now!

Thanks again
 

Attachments

  • 8-tube.jpg
    8-tube.jpg
    35.2 KB · Views: 504
  • 32-tube.jpg
    32-tube.jpg
    44.6 KB · Views: 490
  • 100-tube.jpg
    100-tube.jpg
    51.2 KB · Views: 492
hi, thank you for your reporting.

I will consider that problem. :smile:

BTW, I have just update Spline Cut.js, first version had a bug. please update it.

regards.

tg_jp, Hiroto.
 
First tg_jp, thanks for another useful script! I've been using it successfully on occasion for a while.

Today I'm getting an error that I can't figure out. (see attached)
It happens with a custom spline, but not with a parametric spline.
I've attached the file for examination
Whats the problem with my spline in regards to using the script?

Thanks, Shift Studio.

Edit: created a new spline with a 'Rect' spline to start and the script worked. The other spline came from a 'Text' spline that was modified.
 

Attachments

  • Spline-Cut-error-message.jpg
    Spline-Cut-error-message.jpg
    16.4 KB · Views: 439
  • Spline Cut issue.jas.zip
    74.8 KB · Views: 463
Last edited:
Your spline is indeed "different". Check the info of yours and mine.

Cheers
Frank
 

Attachments

  • Spline Cut Resolved.jas.zip
    199.7 KB · Views: 477
  • SplineCutIssue.jpeg
    SplineCutIssue.jpeg
    103.5 KB · Views: 465
hmm, so the spline I created using a text spline of the character 'D' and deleting a portion is seen by Cheetah as 2 paths for some reason. It makes sense that the script wouldn't work then.
But how it became 2 splines is a surprising to me.
Is your 'SplineNew' a fixed version of mine, or a newly created spline?

Thanks, Shift Studio.

P.S. No rush on this because I created a new spline via a rectangle, and that worked for me.
 
Hi, thank you for reporting.

I updated the script by fixing a bug of that error. please update it.

regards.

tg_jp, Hiroto.
 

Attachments

  • Cheetah3DScreenSnapz001.png
    Cheetah3DScreenSnapz001.png
    84.7 KB · Views: 448
I can get a square spline hole but no luck with a circle. I'll attempt more tries.
On my second attempt I had success after an optimize and a center ring cut after the optimize. I adjusted the points along a guide circle spline. This circle spline was only used as a guide.
Sorry for the huge images it's that damn rentina display. I still don't understand it.
 

Attachments

  • SqHole.jpeg
    SqHole.jpeg
    40.6 KB · Views: 459
  • Hole1.jpg
    Hole1.jpg
    273.9 KB · Views: 451
Last edited:
Back
Top