I guess it depends on what kind of DB you have. If you have a top level TopoDS_Shape, you can use TopoDS_Iterator to iterate over its subshapes or TopExp_Explorer to perform a more controlled iteration. For each TopoDS_Shape, you can look at the ShapeType to see if it is a solid, face, edge, etc. You can access the underlying geometry of faces, edges, and vertexes with the functions in BRep_Tool.
Wed, 03/07/2007 - 18:40
Nobody knows the solution, please ?
Wed, 03/07/2007 - 19:17
I guess it depends on what kind of DB you have. If you have a top level TopoDS_Shape, you can use TopoDS_Iterator to iterate over its subshapes or TopExp_Explorer to perform a more controlled iteration. For each TopoDS_Shape, you can look at the ShapeType to see if it is a solid, face, edge, etc. You can access the underlying geometry of faces, edges, and vertexes with the functions in BRep_Tool.