Class Hierarchy
AcRxObject AcBrTraverser AcBrLoopVertexTraverser
C++
class AcBrLoopVertexTraverser : public AcBrTraverser;
File
brlvtrav.h
Description
The AcBrLoopVertexTraverser class is the interface class for loop-vertex traversers. It is used to get access to vertices that are at isolated points in a model (that is, singularities, such as the apex of a cone). Although the loop vertex is essentially a 1:1 query, it is isolated to a traverser rather than being offered as a query on the AcBrLoop class, as it represents a special case and is part of the boundary information of a face (via face-loop traversal).
Remarks
The intended use of this class is to find isolated points (that is, single vertex loops), such as those that occur at the apex of a cone; it is not used to find general vertex lists on loops. If there is an edge list on the loop (for example, setLoop() returns eUnsuitableTopology), use the loop to (re)set an AcBrLoopEdgeTraverser instead.
There is no setVertex() function, as there can only be one vertex per loop vertex. To check whether a specific vertex represents an isolated point, it is necessary to cycle through all loops in a brep that can legally be used to (re)set an AcBrLoopVertexTraverser, call getVertex() from this traverser and then invoke isEqualTo() on the reference vertex.
The next() and restart() functions have no effect, and done() is immediately set/reset to kTrue every time setLoop() is called to reset the loop-vertex.
Links
AcBrLoopVertexTraverser Constructor, AcBrLoopVertexTraverser Methods, AcBrLoopVertexTraverser Operators
See Also
AcBrBrepFaceTraverser, AcBrFaceLoopTraverser, AcBrLoopEdgeTraverser, AcBrEntity