diff --git a/vcg/complex/algorithms/refine.h b/vcg/complex/algorithms/refine.h index 2d333d1a..60df3004 100644 --- a/vcg/complex/algorithms/refine.h +++ b/vcg/complex/algorithms/refine.h @@ -846,19 +846,20 @@ class EdgeSplSphere } }; -/*! -* Triangle split -*/ - template -struct CenterPoint : public std::unary_function +struct CenterPointBarycenter : public std::unary_function { typename TRIMESH_TYPE::CoordType operator()(typename TRIMESH_TYPE::FacePointer f){ return vcg::Barycenter(*f); } }; -template +/// \brief Triangle split +/// Simple templated function for splitting a triangle with a internal point. +/// It can be templated on a CenterPoint class that is used to generate the position of the internal point. + + +template > void TriSplit(typename TRIMESH_TYPE::FacePointer f, typename TRIMESH_TYPE::FacePointer f1,typename TRIMESH_TYPE::FacePointer f2, typename TRIMESH_TYPE::VertexPointer vB, CenterPoint Center) @@ -928,7 +929,6 @@ void TriSplit(typename TRIMESH_TYPE::FacePointer f, } } - } // namespace tri } // namespace vcg