Public Member Functions | |
NormalAttrib (GeomKernelT &_kernel) | |
void | update_vertex_normals () |
A simple heuristic to estimate the vertex normals. | |
void | update_face_normals () |
Compute face normals. | |
const GeomKernelT::PointT & | operator[] (const VertexHandle &_h) const |
const GeomKernelT::PointT & | operator[] (const FaceHandle &_h) const |
const GeomKernelT::PointT | operator[] (const HalfFaceHandle &_h) const |
GeomKernelT::PointT & | operator[] (const VertexHandle &_h) |
GeomKernelT::PointT & | operator[] (const FaceHandle &_h) |
GeomKernelT::PointT | operator[] (const HalfFaceHandle &_h) |
void OpenVolumeMesh::NormalAttrib< GeomKernelT >::update_face_normals | ( | ) |
Compute face normals.
This is accomplished by taking two adjacent half-edges that are incident to the faces and compute their cross product. Note that this method looses accuracy in case the faces in question is not planar.
void OpenVolumeMesh::NormalAttrib< GeomKernelT >::update_vertex_normals | ( | ) |
A simple heuristic to estimate the vertex normals.
This function takes the vertices' surrounding outside face normals into account and computes an average out of it.