几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】brep traversal (http://www.dimcax.com/hust/showthread.php?t=15274)

yang686526 2009-05-04 05:01 PM

【转帖】brep traversal
 
brep traversal
brep traversal
hello,
i'm confused about the various kinds od ...next...() functions on odbrcoedge.
i would like to knot how to get from a coedge to the next coedge around a loop and how to get from an edge to the firstcoedge() to the "next" coedge for the edge ( the other coedge at a seam).
can somebody explain where these functions take you?
odbrcoedge::circularnext();
odbrcoedge::circularnextincoedgearoundedgelist();
odbrcoedge::circularnextinstartingvertexlist();
odbrcoedge::noncircularnext();
thanks,
lowell
do not use next.... functions of odbrcoedge. it are for internal use only.
please, read the documentation about odbrloopcoedgetraverser. check next code :
odbrloop loop;
........................
odbrloopcoedgetraverser loopcoedgetrav;
loopcoedgetrav.set(loop);
while(!loopcoedgetrav.done())
{
loopcoedgetrav.next();
}
odbrloop loop;
........................
odbrloopcoedgetraverser loopcoedgetrav;
loopcoedgetrav.set(loop);
while(!loopcoedgetrav.done())
{
odbrcoedge coe;
loopcoedgetrav.getcoedge(coe);
loopcoedgetrav.next();
}
also check odbrbrepfacetraverser and odbrfacelooptraverser.
thank you. i somehow missed finding odbredgecoedgetraverser. it makes sense now.
lowell


所有的时间均为北京时间。 现在的时间是 08:38 PM.