Grasshopper

algorithmic modeling for Rhino

question about how grasshopper writes/transfers 3d mesh information

Hi,

question: how does grasshopper store 3d mesh information?

my research so far has utilised grasshopper geometry to create various forms. these forms are then then exported as obj  files to be used in an external optimisation program. obviously approximating curved grasshopper geometry using polygons in an obj file (must export as a welded polygon mesh) results in the exported file not exactly representing the grasshopper geometry. if the external file cannot handle a large number of polygons then the onj files must be less and less complex therefore becoming less representative of the grasshopper geometry.

in my research i would like to suggest that the optimisation program being used directly reads information from grasshopper (in the same way that a mesh comportment can receive information from another mesh component  rather than have to depend on polygons obj files. my problem is that the optimisation program CAN read obj files since it knows how to read that file format - how is mesh geometry written in grasshopper? so that i can teach the optimisation program to be able to read that.  

i am really hoping for a diagram, example file showing perhaps the text that is used, the coordinate system - anything - even a link to some sort of paper academic paper that i can freely access. does anyone know how i could look inside of a component being used by a mesh i can specify so that i could see how it is written in real time?

i am just doing this as a recommendation so a diagram could be enough to really help me out. i know its a little odd a question but if you know someone who might know i would appreciate it if you forward this to them or tell me how i might contact them?

also any ideas as to another way to avoid obj files or any polygon files would be appreciated- precedent examples would be great too.

thanks

Ken 

Views: 412

Replies to This Discussion

Grasshopper uses the Rhino.Geometry.Mesh type to represent meshes. You can find the entire RhinoCommon SDK documentation online here: http://4.rhino3d.com/5/rhinocommon/

--

David Rutten

david@mcneel.com

Poprad, Slovakia

To be more specific, RhinoCommon is a .NET SDK that wraps around our core C++ SDK. So the actual mesh data is stored in unmanaged memory as a C++ class called ON_Mesh. The Rhino.Geometry.Mesh type has a pointer to this C++ type and knows how to invoke methods on it.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service