Jump to content
Developer Wiki and Function Reference Links ×

Point Along NURBS Curve.


Sam Jones

Recommended Posts

Thank you to Patrick Stanford and Raymond Mullins for answering my question about getting a point along a 3D Poly.  I have just ran into the need (that I was hoping to avoid) of needing to find the 3D coordinates of a point that lies a specified distance along a NURBS curve.  Given a specified distance, can I get the location,    X,Y,Z,   of a point a specified distance along a NURBS curve?  Also, how does VS get the length of a NURBS curve.  The length in listed in the OIP does not seem to be accessible. 

 

As so often in the past TIA,

 

Sam

 

Link to comment
41 minutes ago, Pat Stanford said:

GetPointAndParameterOnNurbsCurveAtGivenLength(Handle1, DesiredDistance/HLength(Handle1)/12, X1,Y1,Z1,R1,Index1);

 

inNurbCurveHandle to the NURBS curve.

      I know what this is.

 

inPercentOfLengthSpecify location on curve as percent of total length. (0 - 1) 

     I understand this.  I thing HLength  yields inches but I will check 

 

pPoint of specified location.

    Cool,  this is the needed coordinate

 

outParamParametric parameter of location.

    What is this (R1) and where do I get it from

 

outIndex0-based index of piece for piecewise NURBS curve.

    What is this (Index1) and where do I get it from

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...