OCC TopExp_Explorer 用法
#include <iostream>
#include <TopoDS_Shape.hxx>
#include <TopExp_Explorer.hxx>
using namespace std;
int main()
{
// Create a TopoDS_Shape object.
TopoDS_Shape shape;
// Create a TopExp_Explorer object and explore the shape.
TopExp_Explorer exp(shape, TopAbs_FACE);
// While there are more faces, print the face's name.
while (exp.More())
{
cout << exp.Current().Name() << endl;
exp.Next();
}
return 0;
}
Enjoy Reading This Article?
Here are some more articles you might like to read next: