Cage Edit using c# api

Could anyone guide me how to use ‘Cage Edit’ using c# API?

Hi @sonamkumar.eng,

What does this mean? You want to write your own CageEdit command? Can you clarify what you want to do and why?

Thanks,

– Dale

Hi Dale,

I can deform a mesh using CageEdit command in Rhino GUI. Want to automate same using c# API.

Thanks
-Sonam

Hi @sonamkumar.eng,

CageEdit just creates a morph control object and then turn on it’s grips you can manipulate it’s captive. Which part of this process are you looking to do?

– Dale

Hello Dale,

We would like to morph triangular mesh or subD model using CageEdit. Our goal is to deform the surface model using the control points of CageEdit. We’re doing this using GUI, but would like to automate the process using C# API. Here are the steps:

  1. Create a CageEdit covering the mesh using bounding box control.
  2. User control points of the CageEdit to morph the shape.

Which API should we use to create a CageEdit using bounding box?

How can we move the control points of CageEdit through API?

Thanks
-Sonam

Hi @sonamkumar.eng,

Thanks for the clarification.

RhinoCommon does not have method(s) that allow you to create a morph control object and to capture another Rhino object. This is on the wish list. Your best option here is to just script the CageEdit command.

Here is a simple example:

SampleCsMoveGrips.cs

Let me know if you have further questions.

Thanks,

– Dale

1 Like