DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

How to merge all the TopoDS_Shape?

Modeling Data and AlgorithmsWed, 01/22/2020 - 15:044 replies

Browse this forum
QuestionAuthor

Hello, 

I read a iges a file, When i opened this file using CAD Asistant I see 94 subshapes. Every face seems as a shape. 

Although i made a Compound with that shapes(BrepBuilder) ,  i can not find adjacent face. 

TopExp::MapShapesAndAncestors(shape,TopAbs_EDGE,TopAbs_Face,MapOfShape);

bool found=TopOpeBrepBuild_Tools:.GetAdjacentFace(,,,);

 

found is returns false even if there are many adjacent faces in the compound.

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

IGES file format has limitations on preserving shape features, and faces connectivity is one of these limitations.
Why are you using IGES (development of standard has stopped in 1996) and not STEP?

02Author

I am using also STEP, i didn't have same problem with STEP before. Is there a way to find adjacent face of the any face in the file as i describe?

03Commenter-1

You may try sewing algorithm (BRepBuilderAPI_Sewing) on your shapes.

04Author

Thank you for your helps