Grasshopper

algorithmic modeling for Rhino

existence of rhinocommon counterparts for GH components for porting purposes

Dear reader,

We are at the verge of "porting" partial grasshopper definitions and clusters to actual code build against the rhinocommon API. We are trying to assess the risks to some degree. The main question is whether we have used GH components that don't have a rhinocommon counterpart. If so, can those components be easily written with the rhinocommon API or do we require extra effort?

Is there a table containing GH component <=> rhinocommon methods/properties?

We have recursively scanned our definitions/clusters for used grasshopper components (Name) and categorized them. Just to give you an idea, below you'll find a subset of what I think are rhino/cad specific components that we use. Most of them are very obvious but some of them I'm not really sure. I'm interested in the ones that are not covered by rhinocommon.

Area
Area Moments
Boundary Surfaces
Bounding Box
Box Properties
Box Rectangle
Brep Closest Point
Brep Edges
Circle
Circle CNR
Closed
Connect Curves
Construct Point
Curve | Line
Curve | Plane
Curve Closest Point
Curve Proximity
Curve To Polyline
Deconstruct
Deconstruct Box
Deconstruct Brep
Distance
Divide Curve
Divide Length
End Points
Evaluate Curve
Evaluate Length
Evaluate Surface
Explode
Extend Curve
Flip Curve
Join Curves
Line
Loft
Move
Offset
Plane Closest Point
Point In Brep
Point In Curve
Point Polar
Polygon Center
PolyLine
Rectangle
Seam
Shatter
Sub Curve
Surface Closest Point
To Polar
Unit Z
Vector 2Pt
Vector XYZ
Volume
XY Plane

Views: 1116

Replies to This Discussion

Check the API to see what is there or not.
Thanks Michael, I will do that. Currently, I'm quite familiar with the GH components but not quite with the API. I noticed that some things are just named differently or require "preparations" beforehand. So at this stage if I'm unable to figure something out I don't know whether it's because I just don't understand how things are setup with the API or it just doesn't exist in Rhinocommon.

I hope someone can glimpse at the list and points out which ones need more attention. This would be easy for an expert in both grasshopper and the rhinocommon API, I imagine. Having this information can help a lot for planning the whole porting exercise of our grasshopper "code base". Our code base is becoming to big to maintain and build on with grasshopper components.

Area: http://developer.rhino3d.com/api/RhinoCommonWin/html/Overload_Rhino... - additionally many classes have "get area" methods
Area Moments: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet...
Boundary Surfaces: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... 
Bounding Box: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet... - additionally many classes have "get bounding box" methods
Box Properties: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet... - See properties section
Box Rectangle: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... - or use a rectangle and then extrude
Brep Closest Point: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Brep Edges: http://developer.rhino3d.com/api/RhinoCommonWin/html/P_Rhino_Geomet...
Circle: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet...
Circle CNR: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Closed: http://developer.rhino3d.com/api/RhinoCommonWin/html/P_Rhino_Geomet...
Connect Curves: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Construct Point: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Curve | Line: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... - convert line to curve first
Curve | Plane: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Curve Closest Point: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Curve Proximity: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Curve To Polyline: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... or http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Deconstruct: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet... - See properties for X, Y, and Z
Deconstruct Box: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet... - See properties for Plane, X, Y, and Z
Deconstruct Brep: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet... - See properties for Faces, Edges, and Vertices
Distance: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Divide Curve: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Divide Length: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
End Points: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet... - See properties for PointAtStart and PointAtEnd
Evaluate Curve: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Evaluate Length: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Evaluate Surface: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Explode: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Extend Curve: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Flip Curve: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Join Curves: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Line: http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_Geomet...
Loft: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Move: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Offset: http://developer.rhino3d.com/api/RhinoCommonWin/html/Overload_Rhino...
Plane Closest Point: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Point In Brep: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Point In Curve: http://developer.rhino3d.com/api/RhinoCommonWin/html/Overload_Rhino...
Point Polar: http://www.grasshopper3d.com/forum/topics/how-to-convert-a-point-fr... - No method for it, it is just simple math
Polygon Center: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
PolyLine: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Rectangle: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Seam: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Shatter: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Sub Curve: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... and http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... - alternatively this: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Surface Closest Point: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
To Polar: I believe this one is a series of things for Polar math like the Point Polar. measuring angles, distance, etc.
Unit Z: http://developer.rhino3d.com/api/RhinoCommonWin/html/P_Rhino_Geomet...
Vector 2Pt: This is just simple vector math like:  Vector3d = destination point - origin point
Vector XYZ: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...
Volume: http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet... - Additionally some things like boxes have a volume property
XY Plane: http://developer.rhino3d.com/api/RhinoCommonWin/html/P_Rhino_Geomet...

What the … thanks man! Just a short list of the more "problematic" ones would have been fine. I would have digged in those myself then to set the priority. All these links however are more then I ever expected. I think you saved us a lot of time and hope I haven't wasted too much of yours.

Sure thing, Hope it helps!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service