From 60c32eeeeef71e9fe89a7c5aaa6abaf451374320 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 3 Mar 2014 07:45:00 +0000 Subject: [PATCH] Better comment and renamed a template --- vcg/complex/algorithms/refine.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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