Does anyone know how to implement Rhino common methods within python scripts ? I see many interesting methods like Curve.CreateFilletCurves but am not sure how they are implemented and all the examples are in VB or C.
Thanks !
Does anyone know how to implement Rhino common methods within python scripts ? I see many interesting methods like Curve.CreateFilletCurves but am not sure how they are implemented and all the examples are in VB or C.
Thanks !
Just import the namespace you are interested in:
import Rhino.Geometry
point = Rhino.Geometry.Point3d(1, 2, 3)
# etc...
See for instance
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Point3d__ctor_4.htm
Unfortunately not all methods have a Python example, but this one has. As you can see the code isn’t that different, barring for the grammatical differences.
Also you can use the source code of the rhinoscriptsyntax module for inspiration
Thanks for the reply I did not know it was that simple ! This opens a whole new door to me !