Code Request: Create Cage, select points


#1

Hi All

Is there any demo/sample code of how to create a cage over an object (by code), then select individual points in that cage to manipulate? (not using command line get)

My search is coming up empty.

Many thanks CB


(Dale Fugier) #2

Hi @ChristopherBotha,

A C++ sample is the best we can do.

https://github.com/mcneel/rhino-developer-samples/blob/6/cpp/SampleCommands/cmdSampleCageEdit.cpp

We are still working to add Cage support to RhinoCommon.

https://mcneel.myjetbrains.com/youtrack/issue/RH-21498

– Dale


#3

thanks. any simple tutorials anywhere on how to wrap just that one cpp call to c#.

im trying to create a “flowable” cage. create the object, cage it, then flow the object, and also flow copies of the cage points, hide original object and have the flowed points update the original cage points and reflow if changed.

its been remarkably difficult to get my head around this one… must be getting old…


(Dale Fugier) #4

Hi @ChristopherBotha,

Take away the ON_MorphControl object creation code and the rest is pretty easy to digest.

We hope to have this stuff wired up for RhinoCommon in Rhino 6.

– Dale