Grasshopper

algorithmic modeling for Rhino

Thought this was rather a simple problem, but it's obviously not!

This works fine inside a c# component: 

private void RunScript(List<System.Object> OBJ, ref object A)
{

foreach(System.Object myObj in OBJ)
{

if(myObj is Mesh) {...} else if(myObj is Curve) {...} else if(myObj is Point3d) {...}

}

Nevertheless, reproducing this inside a custom component seems to elude my powers...

Any hints, tips and tricks? I'm banging my head on this since quite a while...

Cheers!

Views: 159

Replies are closed for this discussion.

Replies to This Discussion

Please ignore above question, it's stupid. The approach works! 

I was just setting up my params with AddMeshParameter, as such conversion was failing, etc. etc. 

(facepalm)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service