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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / reversing a face normal (by modifying the geometry)

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.
Mauro
 
 
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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