DiscussionsIssue archiveOther usage issues

Archived discussion

Convert triangular mesh to BRep

Other usage issuesWed, 04/05/2017 - 13:566 replies

Browse this forum
QuestionAuthor

Hi,

I am new to OpenCascade. I would like to know whether OCC provides any function to convert triangular mesh to Boundary representation object? If so how can I do it?

Thanks

Discussion

6 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hello Author,

What exactly do you want to achieve? Is it Ok to have a single B-Rep face for each individual triangle? Otherwise, the problem is extremely difficult to solve, and there is no open source solution for that on the earth (afaik).

Kind regards.

02Author

Hi,

Thanks for quick reply. Consider I have a cuboid with all its faces being triangulated. The final output I need is to have only 6 faces of cuboid without triangles. This is just an example. Similar thing should happen with cylinder or sphere. Is it possible to do that?

Thank you

03Commenter-2

Hi,

Unfortunately, such reconstruction is extremely difficult. Commenter-1 is right. OCCT does not provide such a functionality.

Commenter-2

04Author

Hi,

Thanks. Then I have another question, which I will start as a new thread. Thanks again.

05Author

Hi,

Just for curiosity, will the piece of code mentioned here https://www.opencascade.com/content/extracting-boundary-topodsshape help me to solve my problem?

Thanks

06Commenter-2

No, resulting TopoDS_Shape will contain all triangles.

qaqa