Editing shape

Technical discussions
Post Reply
Stephen Freedman
Posts: 1
Joined: Wed Nov 15, 2023 12:07 am

Editing shape

Post by Stephen Freedman »

Hi,

I would like to modify an IVertex_DG within an arbitrary entity. Is this possible without reconstructing the shape?
I want to change a single IVertex_DG Vertex's x,y,z values while keeping all references to that vertex.

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: Editing shape

Post by Prashant Kande »

Hi Stephen.

Theoretically it is possible, but it means unsafe low-level reconstruction of the shape. Everything would have to be updated. A BRep shape is very redundant structure.

So practically the answer is no. And there is no much reason for doing this. Is an object new or not is a little blurry question. Have a look at the shape mods sample. An entity has three levels of abstraction, which keep its identity.

In the worst case if you have some maps of vertex hashes or something you just need to a bit of management with temporary old to new maps.

Regards

Post Reply