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
Archived discussion
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
Posts are displayed in their archived order.
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
Apart from that you can use BRep_Tools.WireExplorer to loop through a wire' vertices & edges in an ordered manner.
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
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