Add n-points to spline

Add n-points to spline

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
 
Last edited:
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. :p

Cheers
Frank
 
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).
 

Attachments

  • A_select_edges.jpg
    A_select_edges.jpg
    73.6 KB · Views: 435
  • B_apply_edge-n-splitter.jpg
    B_apply_edge-n-splitter.jpg
    82.1 KB · Views: 441
  • C_connect_points_with_scalpel.jpg
    C_connect_points_with_scalpel.jpg
    68.4 KB · Views: 438
Last edited:
(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.:p

Cheers
Frank
 
Back
Top