compare same shape

Hello Team,
How to compare two solid has the same shape.
Thanks in advance!

sOup Enjoyer's picture
yekong yekong's picture

Thank you for your reply!

My questions such as code:

BRepPrimAPI_MakeBox tool1(100, 200, 10);
TopoDS_Solid box1 = tool1.Solid();

BRepPrimAPI_MakeBox tool2(100, 200, 10);
TopoDS_Solid box2 = tool2.Solid();

bool bIsSame = box1.IsPartner(box2); //This function Compares pointers?

//result : bIsSame is false!

yekong yekong's picture

Is this function difficult? It feels like face recognition