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
Offsetting a face
-
- Posts: 65
- Joined: Tue Jun 18, 2024 6:12 am
Re: Offsetting a face
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
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