changed checks for quality and color (now using specialized templates working with ocf).
This commit is contained in:
parent
e5d07a7d62
commit
ace0fba493
|
@ -472,8 +472,9 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi )
|
||||||
// init defaults
|
// init defaults
|
||||||
VertexType tv;
|
VertexType tv;
|
||||||
//tv.ClearFlags();
|
//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
|
// Descrittori delle strutture
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue