From ace0fba493e723a3ffc207231dccc66a05a9e9e2 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Sun, 28 Jun 2009 22:42:42 +0000 Subject: [PATCH] changed checks for quality and color (now using specialized templates working with ocf). --- wrap/io_trimesh/import_ply.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index 8387f58e..6a12abf8 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -472,9 +472,10 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) // init defaults VertexType tv; //tv.ClearFlags(); - if( VertexType::HasQuality() ) tv.Q()=(typename OpenMeshType::VertexType::QualityType)1.0; - if( VertexType::HasColor() ) tv.C()=Color4b(Color4b::White); - + + if (vcg::tri::HasPerVertexQuality(m)) tv.Q() = (typename OpenMeshType::VertexType::QualityType)1.0; + if (vcg::tri::HasPerVertexColor (m)) tv.C() = Color4b(Color4b::White); + // Descrittori delle strutture //bool isvflags = false; // Il file contiene i flags