cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Calculate spline length

AndreasHellmann
3-Visitor

Calculate spline length

Good morning,


I am looking for a method to calculate the length of a 3D spline. The data of th spline is given as an array of 3D points and an array with tangent vectors. These data is being delivered as an output from Toolkit functions ProSplinedataGet() or ProCablesegmentPointsGet() when working with Pro/CABLING segments. Especially for the cabling segment there is no function to eval the length of the segment/spline.


Does anybody out there have a piece of code or a link to an algorithm in the www that allows calculating the spline length by the given geom representationof points and tangents? There are a lot of docs dealing with the theory of spline approximation and interpolation. But these are all very complex to understand since I don't want to spend days dealing with math...


Thanks for any ideas on that.


Andreas


__________________________________


Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany


phone: +49 6145 598296
mail: -


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

As you have expalined you seem to have ProCurve object with you. This can be used to get spline length using direct API.It is


ProCurveLengthEval() which returns length of the curve you can check ifcuve with you is spline using its type check ,


ProCurveTypeGet().



HTH

Top Tags