[c++]How to Create a cage with polysurface

How to Create a cage with polysurface

Hi @wzh5033,

Can you explain more on what you are trying to do? What do you mean by “cage”?

Thanks,

– Dale

HI Dale:

I’m going to deform the surface from one cage to another.

Can we use Polysurface to make such a target cage?

image.png

Hi @wzh5033,

I don’t have a sample of making a box cage, as you show in your image. I do have a sample of cage editing a polysurface using a control line.

cmdSampleCageEdit.cpp

To create a box morph object just use the ON_NurbsCage::Create override that accepts a bounding box.

– Dale

Hi Dale,
I have this sample attached.

cage as polysurface.3dm (506 KB)