Przeglądaj źródła

- TriangulateProcess: use ear cutting for quads. This fixes [3429812] (http://sourceforge.net/tracker/?func=detail&aid=3429812&group_id=226462&atid=1067632).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1153 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 13 lat temu
rodzic
commit
4b61e27590
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      code/TriangulateProcess.cpp

+ 2 - 2
code/TriangulateProcess.cpp

@@ -216,7 +216,7 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh)
 
 
 			face.mIndices = NULL;
 			face.mIndices = NULL;
 			continue;
 			continue;
-		} 
+		} /* does not handle concave quads
 		// optimized code for quadrilaterals
 		// optimized code for quadrilaterals
 		else if ( face.mNumIndices == 4) {
 		else if ( face.mNumIndices == 4) {
 			aiFace& nface = *curOut++;
 			aiFace& nface = *curOut++;
@@ -233,7 +233,7 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh)
 
 
 			face.mIndices = NULL;
 			face.mIndices = NULL;
 			continue;
 			continue;
-		}
+		} */
 		else
 		else
 		{
 		{
 			// A polygon with more than 3 vertices can be either concave or convex.
 			// A polygon with more than 3 vertices can be either concave or convex.