Jump to content

Calculating Center Of Curvature Of A Curve


Recommended Posts

is there any SOP or VOP that that can output the center of curvature for a curve at a given point along the curve? This function would be equal to maya's pointOnCurveInfo node.

The math for this is a bit beyond me...

Thanks,

MD

Link to comment
Share on other sites

Sure, you can either use the Measure SOP and output curvature as attributes on geometry, or use the "curvature" expression:

/obj -> exhelp curvature
float curvature (string, float, float, float)
			usage

				curvature(<<SOP>>, <<prim_num>>, <<u>>, <<v>>)

			Evaluates the curvature of the surface at the parametric (u,v)
			location. u and v are unit values, defined in the [0,1] interval.

			NOTE:

				if the primitive is a mesh, u and v are defined in terms of its
				number of rows and columns.

			related

			  - unituv

			  - primuv

			  - primduv

			  - normal

Link to comment
Share on other sites

perfect!, Thank you

MD

Sure, you can either use the Measure SOP and output curvature as attributes on geometry, or use the "curvature" expression:

/obj -> exhelp curvature
float curvature (string, float, float, float)
			usage

				curvature(<<SOP>>, <<prim_num>>, <<u>>, <<v>>)

			Evaluates the curvature of the surface at the parametric (u,v)
			location. u and v are unit values, defined in the [0,1] interval.

			NOTE:

				if the primitive is a mesh, u and v are defined in terms of its
				number of rows and columns.

			related

			  - unituv

			  - primuv

			  - primduv

			  - normal

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...