Grasshopper

algorithmic modeling for Rhino

I am making a Grasshopper component with c#. Can someone help me?
How can I convert the geometry data of Rhino to OpenNurbs geometry in C# Project?

For Example
Line lin1 = new Line(Point1,Point2); <---Rhinocommon.dll

Line lin2 = new Line(); <---OpenNurbs(Rhino3dmIO.dll)

lin2 = lin1;

Is there a way to convert the data?

Views: 637

Replies to This Discussion

RhinoCommon should be a superset of Rhino3dmIO, so why do you need both?

I want to send a Rhino geometry data from Grasshopper to standalone program(Winform) via TCP or MMF. In this case, how can a stand-alone program(Rhino3dmIO) import RhinoCommon data? Is type casting impossible?

I'd serialize the geometry to OpenNurbs data, then deserialize it on the other end. That way neither side has to be aware of what SDK the other is using. You can either serialize individual shapes, or you can populate a 3dm file with the objects and serialize that.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service