Grasshopper

algorithmic modeling for Rhino

Understanding the difference between coercecurve and curve classes

Hi there

I am new to rhino so please excuse my questions if they kind look dumb !

I would like to know what is the difference between rs.coercecurve() and a Rhino.geometry.curve classe ?

I am having problems with a sweeponerail commande which needs the profile curve to be passed in as a coercecurve one, which left me confused about what is the diffrence between coerce classes(wether they are points, vecters, curves, etc, and the direct rhinoCommon geometry class)

I would also like to understand why is there a fragmentation between a Rhinoscriptsyntax and rhinocommon, while some classes and functions are only available in on but not the other, it is confusing to decide whether to call for a point class from rhinoscriptsyntax or RhinoGeometry

thanks alot

Views: 1599

Replies to This Discussion

The CoerceXXXX() methods are for converting different representations of curves into other representations. They are basically there to help you bridge code that uses different SDKs. The Rhino.Geometry.Curve class (and its subclasses) are the actual curve types in RhinoCommon.

thanks, that make the picture more clear now

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service