
Fri, 06/19/2009 - 13:08
Forums:
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?
Fri, 06/19/2009 - 13:14
Hi Marco,
you might be looking for this:
http://www.opencascade.org/org/forum/thread_15684/
Pawel
Fri, 06/19/2009 - 13:20
One of the last posts in http://www.opencascade.org/org/forum/thread_14748/ could be the answer you need (what deals with transformations).
Fri, 06/19/2009 - 17:23
Thank you Pawel and Paul.
I missed "points->SetValue(i, points->Value(i).Transformed(location.Transformation()));"
now it works fine :)