Cheetah3D User Forum  


Reply
 
Thread Tools Search this Thread Display Modes
Old
  (#1)
jdmac (Offline)
Erfahrener Benutzer
 
Posts: 116
Join Date: 24.04.2010
Default Add n-points to spline - 12.09.2018, 00:17

Is there an existing script (or C3D tool) to add n-points to a spline?
Or another way to ask -- is there a way to segment a spline n-times?
(I've looked, but not found)

If not, is this something that is possible to script?
I haven't scripted anything yet, and am wondering if even possible before heading down that road

Thanks.

--
UPDATE:
I didn't look hard enough.
This is what I was looking for: https://www.cheetah3d.com/forum/showthread.php?t=8024


jdmac
(MacFire)

Last edited by jdmac : 12.09.2018 at 01:01. Reason: Found what I needed
   
Reply With Quote
Old
  (#2)
frank beckmann (Offline)
Erfahrener Benutzer
 
frank beckmann's Avatar
 
Posts: 15,650
Join Date: 12.07.2005
Default 12.09.2018, 19:49

Not sure what you had in mind at the beginning - but you can insert points in editable splines wherever you want.

Cheers
Frank


Life is short. Eat dessert first.
   
Reply With Quote
Old
  (#3)
jdmac (Offline)
Erfahrener Benutzer
 
Posts: 116
Join Date: 24.04.2010
Default 12.09.2018, 19:54

Quote:
Originally Posted by frank beckmann View Post
Not sure what you had in mind at the beginning - but you can insert points in editable splines wherever you want.
Thanks, Frank. I was looking for a way to insert x-number of points equidistant along a spline.
The 'Edge N Splitter' script does exactly what I need.


jdmac
(MacFire)
   
Reply With Quote
Old
  (#4)
frank beckmann (Offline)
Erfahrener Benutzer
 
frank beckmann's Avatar
 
Posts: 15,650
Join Date: 12.07.2005
Default 12.09.2018, 19:59

I know the script but itīs for polygons - so I was curious about your need to have more points in splines - as Iīm always after to have as less as possible.

Cheers
Frank


Life is short. Eat dessert first.
   
Reply With Quote
Old
  (#5)
jdmac (Offline)
Erfahrener Benutzer
 
Posts: 116
Join Date: 24.04.2010
Default 12.09.2018, 20:31

Quote:
Originally Posted by frank beckmann View Post
I know the script but itīs for polygons
You are correct. I should have written "edge" instead of "spline".
And the the script "splits the edge" into specified number; whereas I called it "adding points" -- the distinction being, if 4 is entered, the edge will be divided into 4 sections; it is not adding 4 points.

My reason for using script is that I needed to split some existing faces of an object into specific number of pieces.
Example attached. (Maybe there is a better way of accomplishing the same thing).
Attached Images
   


jdmac
(MacFire)

Last edited by jdmac : 12.09.2018 at 20:33.
   
Reply With Quote
Old
  (#6)
frank beckmann (Offline)
Erfahrener Benutzer
 
frank beckmann's Avatar
 
Posts: 15,650
Join Date: 12.07.2005
Default 12.09.2018, 20:43

Quote:
Originally Posted by jdmac View Post
(Maybe there is a better way of accomplishing the same thing).
Sure there are always more ways to skin a cat:
For instance:
Take a plane
Adjust 4 sections for Depth:
Add Taper modifier
Set Strength and Curvature to 0,0
Make editable - call optimise tool to weld top points.
Depends on kind of triangle of course.

Cheers
Frank


Life is short. Eat dessert first.
   
Reply With Quote
Old
  (#7)
jdmac (Offline)
Erfahrener Benutzer
 
Posts: 116
Join Date: 24.04.2010
Default 12.09.2018, 20:46

Quote:
Originally Posted by frank beckmann View Post
Depends on kind of triangle of course.
In my situation, the triangle is a face of an existing object.


jdmac
(MacFire)
   
Reply With Quote
Old
  (#8)
frank beckmann (Offline)
Erfahrener Benutzer
 
frank beckmann's Avatar
 
Posts: 15,650
Join Date: 12.07.2005
Default 12.09.2018, 21:00

I was expecting this and thanks to Hiroto for his great script.

Cheers
Frank


Life is short. Eat dessert first.
   
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com