Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5809

How to shorten a curve by a given length in Rhino Python

$
0
0

@Jonathan1 wrote:

Hi, I'am new to Rhino Python.
I'm trying to shorten a curve by a given length. (More specifically cut the first 5 cm form a given curve.)
I am able to find the cutting point by using rs.DivideCurveLength:

newstartpoint=(rs.DivideCurveLength(crv,cutdist,False,True))[1]

But then I'm stuck as I can't find how to trim a curve with a point.

I guess it would be easier using rs.TrimCurve(). But therefore I need to reparametrize the curve.
Is there a way in Rhino Python to adapt the Curve Domain to [0.0,rs.CurveLength(crv)]?

Thanks for your help and Merry Christmas to all of you!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5809

Trending Articles