Grasshopper

algorithmic modeling for Rhino

Hello,

Does anyone know where i can access the conduit that grasshopper is drawing to?

 

Thanks

Views: 499

Replies to This Discussion

Hi Erik,

 

are you developing a custom component (i.e. derived from GH_Component?) or ...?

 

If you want to participate in viewport drawing, override the following methods on GH_Component:

 

IsPreviewCapable

ClippingBox

DrawViewportWires

DrawViewportMeshes

 

You need more info?

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

ok so when i call GH_Component.DrawViewportMeshes() or Grasshopper.Kernel.Types.GH_Brep.DrawViewportMeshes() i need to have a value for GH_PreviewArgs which i cannot find a value for. Are there any default values for this assigned to the active grasshopper document?

I am using a custom component which i want to use to draw a bunch of geomery to the conduit. But i do not want to have this geometry as an output to the component. I have also found GH_PreviewUtil() but i need to draw shaded meshes rather than wireframe.

 

Thank you

Erik

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service