Offsetting a face

Everything DG Kernel: Technical discussions and issues
Post Reply
Frank Costanza
Posts: 1
Joined: Sun Jul 21, 2024 10:26 pm

Offsetting a face

Post by Frank Costanza »

Hello

Suppose I have a 3d box : is it possible : Select a face and drag it ( Move it) along its normal , so to “stretch” the box?: is do how to?"

Thank you
Prashant Kande
Posts: 65
Joined: Tue Jun 18, 2024 6:12 am

Re: Offsetting a face

Post by Prashant Kande »

Hi Frank

Short answer: Have a look at the ShapeMods sample.

It is not so simple, actually. BRep structures are super redundant. If you have curved edges or faces, a lot of things have to stay geometrically in synch: Edges should be inside of faces, vertices inside edges. Different curves for an edge should define same geometry, ...

Luckily, we are creating everything in a program. So, the best way to modify a shape is to delete it and re-run the code which generated it with different parameters. The fact that the underlying objects are different instances should not matter for end user. For the code you could use various indexing and maps to keep track of things.

Regards
Post Reply