DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

compare same shape

Modeling Data and AlgorithmsWed, 06/22/2022 - 15:163 replies

Browse this forum
QuestionAuthor

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

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1
02Author

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!
}

03Author

Is this function difficult? It feels like face recognition