Page 1 of 1

Offsetting a face

Posted: Sun Jul 21, 2024 10:28 pm
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

Re: Offsetting a face

Posted: Mon Jul 22, 2024 7:24 am
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