Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

reversing a face normal (by modifying the geometry)

reversing a face normal (by modifying the geometry)
Mauro Mariotti 2012/12/27 22:20
Hello all,

Given a stand-alone face (that is, not inside a shell) I need to reverse it, but not the easy way (changing the topological orientation of the TopoDS_Face).
I have to modify its surface, e.g. by calling Geom_Surface::UReverse(), so that if one gets the surface from the face and evaluates its normal, without considering the face's topological orientation., the normal will be reversed.
This implies that the p-curves and vertexes must be re-computed.

Any suggestions?

A long way could be:
1) Geom_Surface::UReverse()
2) Mirror the p-curves inside the edges with respect to a vertical axis (which can be u = 0 or something else, depending on the surface, I am afraid)
3) Mirror the u parameters inside the vertexes
4) Create a new face from the modified geometries

Maybe another way is to use BRepTools_Modifier, by defining an appropriate BRepTools_Modification, but I am not sure it manages this sort of changes in the p-curves and vertexes.

Thanks a lot.
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map