Home
Reply
Regular Contributor
bheld
Posts: 42

Efficienty splitting of an edge created with api_curve_spline

I need to split an edge created with api_curve_spline into "individual"edges at every point used to define the spline.  I assume i could use api_split_edge many times but that seems like it might be too slow.  Any alternatives?

 

 

Contributor
GavinMartin
Posts: 6

Re: Efficienty splitting of an edge created with api_curve_spline

Hi everyone!

I am Gavin Martin. I have just joined here. Your post is informative. Thanks for sharing with us. In my opinion you can use spline many times. There should not be any effect.

 

Spatial Moderator
rbagley
Posts: 126

Re: Efficienty splitting of an edge created with api_curve_spline

Hi,

 

If you are only splitting the edge by inserting VERTEXes (a purely topological operation) without splitting the curve (a geometric operation), it should not be slow.  Splitting the underlying curve requires a bit more computation, though probably not enough to be a problem (unless you are splitting a *very* large number of times).

 

Ray