DiscussionsIssue archiveOther usage issues

Archived discussion

opencascade for loop order

Other usage issuesFri, 07/31/2009 - 09:524 replies

Browse this forum
QuestionAuthor

Question: when using TopExp_Explorer to loop all the wires for a particular surface, does it always find the outer wire first?
ie. when using
TopExp_Explorer expw;
for(expw.Init(aface,TopAbs_WIRE);expw.More(); expw.Next())
{

Thank you.

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Author,

I don't think so. You can trace the source code into BRepTools::OuterWire, you will find the outer wire is calculated using 2D bounds.

-Ding

02Commenter-2

Apart from that you can use BRep_Tools.WireExplorer to loop through a wire' vertices & edges in an ordered manner.

03Author

Hi, Cauchy. Thanks for replying, really appreciated.
By the way, im not really sure how to check the source code on a particular part.Could you please tell me how?

Regards
Author

04Commenter-1

Hi Author,

The simple way is to use the class name + .cxx or .hxx to search it, such as BRep_Tool.cxx or BRep_Too.hxx. Another way is to install the document of occ, and use the Reference Documentation.

-Ding