pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

How to judge that two TopoDS_Shape objects are the same

Open luoyu-123 opened this issue 4 years ago • 2 comments

I generate two entities of the same TopoDS_Shape, the parameters of generating them are the same, how can I judge that they are the same, I use the TopoDS_Shape class IsEqual attribute and IsSame attribute but return false

thank you

luoyu-123 avatar Jun 03 '21 02:06 luoyu-123

Hey,

I am a bit new to OCC but it seems that when creating 2 shapes with the same properties they still has 2 different identifier. A shape is a compound object and not a number such as (2 =2 ) so I guess when creating a new shape it has a unique identifier and maybe that's why the False result.

Have you tried to compare their boundaries and the face-equation ?

ts0ron avatar Jul 25 '21 13:07 ts0ron

@luoyu-123 can you please insert a code snippet

tpaviot avatar Dec 04 '21 07:12 tpaviot