Forum archiveIssue archiveOther usage issues

Archived discussion

box - faces direction

Other usage issuesThu, 01/15/2004 - 17:042 replies

Browse this forum
QuestionAuthor

I want to export OCC geometries to Open Inventor.

Therefor i use the OCC_COIN3D-viewer interface.

By exporting OCC exports each face of the shape as a SoIndexedTriangleStripSet.

It's no problem to merge the faces to a shape (IndexedTriangleStripSet) but:

The directions of the faces are always "wrong" - faces are directed along the pos. x, y, and z- axis but should be directed "outside" the shape.

Could anybody tell me howto analyse face directions of a shape - is there any function I didn't see till now (in OCC)

thank you for your support

Juergen

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

hello

have a look in the TopoDS_Shape.cdl file.
to check face orientation ::Orientation();
to get the oriented shape ::Oriented(TopAbs_Orientation).

I hope this will help you.

Jerome

02Author

Thank you, but -

there's still a problem

I replaced my orientation-settings by

m_pOCCShape.Orientation(TopAbs_EXTERNAL);

The value never changes , but the export produces the same results like a setting of TopAbs_FORWARD
(same OI verteices and indices)

Juergen