Programming a Box Morph - Grasshopper2024-03-28T10:56:04Zhttps://www.grasshopper3d.com/forum/topics/programming-a-box-morph?commentId=2985220%3AComment%3A588851&feed=yes&xn_auth=noWell,
this really doesn't sou…tag:www.grasshopper3d.com,2012-05-03:2985220:Comment:5888512012-05-03T09:42:01.882ZKarl Weckerhttps://www.grasshopper3d.com/profile/KarlWecker
<p>Well,</p>
<p>this really doesn't sound easy.</p>
<p>It's always hard to let a program do something, it wasn't intended to do.</p>
<p>Maybe I'll try to rs.command() some panelling tool functionalities. (While hoping the box morph will be implemented into Rhino Common in the near future)</p>
<p></p>
<p>Thanks</p>
<p>- Karl</p>
<p>Well,</p>
<p>this really doesn't sound easy.</p>
<p>It's always hard to let a program do something, it wasn't intended to do.</p>
<p>Maybe I'll try to rs.command() some panelling tool functionalities. (While hoping the box morph will be implemented into Rhino Common in the near future)</p>
<p></p>
<p>Thanks</p>
<p>- Karl</p> Hi Karl,
my own Box Morph al…tag:www.grasshopper3d.com,2012-05-02:2985220:Comment:5884852012-05-02T20:27:14.021ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Hi Karl,</p>
<p></p>
<p>my own Box Morph algorithm is written inside the component, in order to use a component outside of the Grasshopper context, you'd need to instantiate it and call the SolveInstance() function while supplying proper Data Access. This is not easy.</p>
<p></p>
<p>There has been talk in the past about making it easier to call component functionality, but I'm not entirely sure all 3rd party developers would be OK with that. </p>
<p></p>
<p>It's certainly possible to…</p>
<p>Hi Karl,</p>
<p></p>
<p>my own Box Morph algorithm is written inside the component, in order to use a component outside of the Grasshopper context, you'd need to instantiate it and call the SolveInstance() function while supplying proper Data Access. This is not easy.</p>
<p></p>
<p>There has been talk in the past about making it easier to call component functionality, but I'm not entirely sure all 3rd party developers would be OK with that. </p>
<p></p>
<p>It's certainly possible to reference a GHA file in some other project, since GHA is just a dll with a different extension. However there is no guarantee that the functionality provided by the components in that dll can also be easily accessed in other ways. </p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p> Thank you David,
that's proba…tag:www.grasshopper3d.com,2012-05-02:2985220:Comment:5883202012-05-02T13:46:52.335ZKarl Weckerhttps://www.grasshopper3d.com/profile/KarlWecker
<p>Thank you David,</p>
<p>that's probably the reason why it's not available for Rhino Python Script, but for Rhino Script. Very unfortunate.</p>
<p></p>
<p>My question would be: Is it somehow possible to call the functionality of a componente via .Net?- without using (the incredible) user interface?</p>
<p>(Since internally, that's probably what you are doing in GH. You have a function "Box Morph " and call it through your UI.)</p>
<p>I was thinking somthing like</p>
<p>- referencing the…</p>
<p>Thank you David,</p>
<p>that's probably the reason why it's not available for Rhino Python Script, but for Rhino Script. Very unfortunate.</p>
<p></p>
<p>My question would be: Is it somehow possible to call the functionality of a componente via .Net?- without using (the incredible) user interface?</p>
<p>(Since internally, that's probably what you are doing in GH. You have a function "Box Morph " and call it through your UI.)</p>
<p>I was thinking somthing like</p>
<p>- referencing the grasshopper dlls in addition to RhinoCommon, System-Collections, etc.</p>
<p>- call the function while pass it the 3 Parameters (Rhino.Geometry, BoundingBox1, BoundingBox2)</p>
<p>- go on working with the code.</p>
<p></p>
<p>Thanks</p>
<p>- Karl</p>
<p></p> BoxMorph is implemented insid…tag:www.grasshopper3d.com,2012-04-30:2985220:Comment:5870842012-04-30T17:19:16.539ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>BoxMorph is implemented inside Grasshopper, there isn't a single RhinoCommon class/method for this. Basically I declared a new class that derives from Rhino.Geometry.SpaceMorph and then overrode the MorphPoint method to supply custom morphing logic.</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>
<p>BoxMorph is implemented inside Grasshopper, there isn't a single RhinoCommon class/method for this. Basically I declared a new class that derives from Rhino.Geometry.SpaceMorph and then overrode the MorphPoint method to supply custom morphing logic.</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>