changed checks for quality and color (now using specialized templates working with ocf).

This commit is contained in:
Marco Di Benedetto 2009-06-28 22:42:42 +00:00
parent e5d07a7d62
commit ace0fba493
1 changed files with 4 additions and 3 deletions

View File

@ -472,8 +472,9 @@ 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