DiscussionsIssue archiveOther usage issues

Archived discussion

Shape, TShape and Faces

Other usage issuesThu, 03/26/2009 - 14:131 reply

Browse this forum
QuestionAuthor

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.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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.
Commenter-1

---
opencascade.blogspot.com - the Open CASCADE blog