
Fri, 07/31/2009 - 09:52
Forums:
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.
Fri, 07/31/2009 - 10:25
Hi Kent,
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
Fri, 07/31/2009 - 12:29
Apart from that you can use BRep_Tools.WireExplorer to loop through a wire' vertices & edges in an ordered manner.
Sat, 08/01/2009 - 04:19
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
Kent
Sat, 08/01/2009 - 04:26
Hi Kent,
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