Changed all the MeshType::HasSomething() into the now standard tri::HasSomething(MeshType &m)

This commit is contained in:
Paolo Cignoni 2012-01-20 07:52:22 +00:00
parent 7fb6c417da
commit 58042fda3e
1 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ static void PerVertex(VertexType *v)
static void PerVertex(TetraMeshType &m) static void PerVertex(TetraMeshType &m)
{ {
if( !m.HasPerVertexNormal()) return; if( !HasPerVertexNormal(m)) return;
_ClearNormal(m); _ClearNormal(m);
TriMeshTemp tri_mesh=TriMeshTemp(); TriMeshTemp tri_mesh=TriMeshTemp();
TriConverter <TetraMeshType,TriMeshTemp>tric=TriConverter<TetraMeshType,TriMeshTemp>(); TriConverter <TetraMeshType,TriMeshTemp>tric=TriConverter<TetraMeshType,TriMeshTemp>();
@ -140,7 +140,7 @@ static void PerVertex(TetraMeshType &m)
private: private:
static void _ClearNormal(TetraMeshType &m) static void _ClearNormal(TetraMeshType &m)
{ {
if( !m.HasPerVertexNormal()) return; if( !HasPerVertexNormal(m)) return;
VertexIterator vi; VertexIterator vi;
for(vi=m.vert.begin();vi!=m.vert.end();++vi) for(vi=m.vert.begin();vi!=m.vert.end();++vi)
if( !(*vi).IsD() && (*vi).IsRW() ) if( !(*vi).IsD() && (*vi).IsRW() )
@ -151,7 +151,7 @@ static void _ClearNormal(TetraMeshType &m)
///// The normal of a vertex v is the weigthed average of the normals of the faces incident on v. ///// The normal of a vertex v is the weigthed average of the normals of the faces incident on v.
//static void PerVertexPerFace(ComputeTetraMeshType &m) //static void PerVertexPerFace(ComputeTetraMeshType &m)
//{ //{
// if( !m.HasPerVertexNormal() || !m.HasPerFaceNormal()) return; // if( !HasPerVertexNormal(m) || !HasPerFaceNormal(m)) return;
// //
// //
//} //}