
Thu, 03/26/2009 - 14:13
Forums:
Hi,
Still making my STEP converter, I now have a single TopoDS_Shape for my model.
I would like to run its TopoDS_TShape with their location/orientation to built my scenegraph while running the Shapes.
So I did :
- Mesh the Shape
- get the Tshape for the Shape
- swith the Tshape type and when it is Face, run into triangulation to make my geometry.
But the problem is a Tshape is a list of Shape... so how can I run into the list ?
My goal is to run the STEP file, and rebuild in memory my own scenegraph data structure. For that I need the vertices, the normal, the hierarchy, ...
Thanks.
Vincent.
Tue, 03/31/2009 - 21:50
Hi Vincent,
To explore the children of a shape use TopExp_Explorer or TopoDS_Iterator. See the Modeling Data User's Guide and check this post on my blog.
Roman
---
opencascade.blogspot.com - the Open CASCADE blog