DiscussionsIssue archiveOther usage issues

Archived discussion

Face by face triangulation

Other usage issuesFri, 06/19/2009 - 13:083 replies

Browse this forum
QuestionAuthor

Hi all! I need to write an export from occ to a format that contains the geometric and triangulation information of a shape. For this i iterate through the faces of the shape and create for every face a triangulation like in the triangulation sample.
But the result looks like this: http://imgur.com/X1EMS.jpg
But it should look like this: http://imgur.com/uMpp6.jpg
I have the triangulation of every face i want, but the faces are not at the correct position. So i think i need to make the shape "absolut", "final" or something like that, so that all faces get moved to their final position before i start the triangulation.
Does somebody know how i can do this?

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Marco,

you might be looking for this:

http://www.opencascade.org/org/forum/thread_15684/

Commenter-1

02Commenter-2

One of the last posts in http://www.opencascade.org/org/forum/thread_14748/ could be the answer you need (what deals with transformations).

03Commenter-3

Thank you Pawel and Paul.
I missed "points->SetValue(i, points->Value(i).Transformed(location.Transformation()));"
now it works fine :)