高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|