Grasshopper

algorithmic modeling for Rhino

What is the easiest method to find the torsion of a given curve in GH?

Views: 751

Replies to This Discussion

Anyone?
Looking into it...

--
David Rutten
david@mcneel.com
Seattle, WA
Seems that in order to compute the torsion, you need the first, second and third derivative of the curve. There's no way to get these in RhinoCommon at the moment. I just added some overloads to the Curve.DerivativeAt() method so that you can specify the number of derivatives you want, but this won't be available in Rhino5 until the next wip, and it won't be available in Rhino4 until the next Grasshopper release.

In the meantime, you could try to approximate the torsion by sampling the curve around the parameter you're interested in, then try to come up with a decent value.

Out of curiosity, what are you trying to accomplish?

--
David Rutten
david@mcneel.com
Seattle, WA
It is part of a formula I am using to construct developable line generators from the curve in R2 and R3 simultaneously.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service