Add manifold check to some properties
This commit is contained in:
parent
a088ee1ba6
commit
1d99071cc2
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.20 2005/12/15 11:20:00 corsini
|
||||||
|
Add vertex-face topology
|
||||||
|
|
||||||
Revision 1.19 2005/12/14 14:05:37 corsini
|
Revision 1.19 2005/12/14 14:05:37 corsini
|
||||||
Adjust comments
|
Adjust comments
|
||||||
|
|
||||||
|
@ -245,7 +248,7 @@ void PrintMeshInfo(MeshInfo &mi)
|
||||||
if (mi.Manifold)
|
if (mi.Manifold)
|
||||||
printf(" Genus: %d \n", mi.Genus);
|
printf(" Genus: %d \n", mi.Genus);
|
||||||
else
|
else
|
||||||
printf(" Genus (n/a)\n");
|
printf(" Genus: N/A \n");
|
||||||
|
|
||||||
// Mesh Type
|
// Mesh Type
|
||||||
if (mi.Regular)
|
if (mi.Regular)
|
||||||
|
@ -475,6 +478,11 @@ int main(int argc, char ** argv)
|
||||||
// ORIENTATION
|
// ORIENTATION
|
||||||
if (mi.Manifold)
|
if (mi.Manifold)
|
||||||
tri::Clean<CMesh>::IsOrientedMesh(m, mi.Oriented, mi.Orientable);
|
tri::Clean<CMesh>::IsOrientedMesh(m, mi.Oriented, mi.Orientable);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mi.Oriented = false;
|
||||||
|
mi.Orientable = false;
|
||||||
|
}
|
||||||
|
|
||||||
// VOLUME (require a closed oriented manifold)
|
// VOLUME (require a closed oriented manifold)
|
||||||
if ((mi.Manifold)&&(mi.Oriented)&&(!mi.numholes))
|
if ((mi.Manifold)&&(mi.Oriented)&&(!mi.numholes))
|
||||||
|
@ -490,7 +498,13 @@ int main(int argc, char ** argv)
|
||||||
mi.numcomponents, mi.count_e);
|
mi.numcomponents, mi.count_e);
|
||||||
|
|
||||||
// REGULARITY
|
// REGULARITY
|
||||||
|
if (mi.Manifold)
|
||||||
tri::Clean<CMesh>::IsRegularMesh(m, mi.Regular, mi.Semiregular);
|
tri::Clean<CMesh>::IsRegularMesh(m, mi.Regular, mi.Semiregular);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mi.Regular = false;
|
||||||
|
mi.Semiregular = false;
|
||||||
|
}
|
||||||
|
|
||||||
// DUPLICATED VERTICES
|
// DUPLICATED VERTICES
|
||||||
mi.dv = tri::Clean<CMesh>::RemoveDuplicateVertex(m);
|
mi.dv = tri::Clean<CMesh>::RemoveDuplicateVertex(m);
|
||||||
|
|
Loading…
Reference in New Issue