Calculate average normal for poly mesh faces. Otherwise an arbitrary triangle is taken

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@309 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2010-03-09 13:32:23 +00:00
parent c0ea2968e3
commit 13204f4afc
4 changed files with 53 additions and 9 deletions

View File

@@ -183,14 +183,21 @@ public:
inline void split(EdgeHandle _eh, VertexHandle _vh)
{ PolyMesh::split(_eh, _vh); }
/// Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
/// Face split (= 1-to-3 split, calls corresponding PolyMeshT function).
inline void split(FaceHandle _fh, const Point& _p)
{ PolyMesh::split(_fh, _p); }
inline void split(FaceHandle _fh, VertexHandle _vh)
{ PolyMesh::split(_fh, _vh); }
/** \name Normal vector computation
*/
//@{
/** Calculate normal vector for face _fh (specialized for TriMesh). */
Normal calc_face_normal(FaceHandle _fh) const;
//@}
};