compare same shape

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

yekong yekong's picture

Thank you for your reply!

My questions such as code:

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

BRepPrimAPI_MakeBox tool2(100, 200, 10);
tool2.Build();
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