How to use TopTools_ListIteratorOfListOfShape

TopTools_ListIteratorOfListOfShape


Introduction

TopTools_ListIteratorOfListOfShape is a class in Open CASCADE Technology (OCCT) Library which allows it iterates over the elements of a list of shapes. That is defined in the "TopTools" package which includes a collection of tools for manipulating shapes in OCCT.

Example

Here is an example of how to use the TopTools_ListIteratorOfListOfShape class.

#include <TopoDS_Shape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>

TopTools_ListOfShape shapeList;                     // shape list to explore
TopTools_ListIteratorOfListOfShape itr(shapeList);  // initialize iterator
for (; itr.More(); itr.Next())
{
    const TopoDS_Shape& shape = itr.Value();        // get the shape
}


Post a Comment

Previous Post Next Post