Browse Source

PLYExporter: Fix output for MeshLab and Quicklook 3D.

Mugen87 5 years ago
parent
commit
17b0437c6d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/js/exporters/PLYExporter.js
  2. 1 1
      examples/jsm/exporters/PLYExporter.js

+ 1 - 1
examples/js/exporters/PLYExporter.js

@@ -205,7 +205,7 @@ THREE.PLYExporter.prototype = {
 			// faces
 			header +=
 				`element face ${faceCount}\n` +
-				`property list uchar uint${ indexByteCount * 8 } vertex_index\n`;
+				`property list uchar int vertex_index\n`;
 
 		}
 

+ 1 - 1
examples/jsm/exporters/PLYExporter.js

@@ -211,7 +211,7 @@ PLYExporter.prototype = {
 			// faces
 			header +=
 				`element face ${faceCount}\n` +
-				`property list uchar uint${ indexByteCount * 8 } vertex_index\n`;
+				`property list uchar int vertex_index\n`;
 
 		}