提交 3dfba94d 编写于 作者: G Garrett Johnson

`excludeProperties` -> `excludeAttributes`

上级 5907d575
......@@ -6,7 +6,7 @@
* var exporter = new THREE.PLYExporter();
*
* // second argument is a list of options
* var data = exporter.parse(mesh, { binar: true, excludeProperties: [ 'color' ] });
* var data = exporter.parse(mesh, { binar: true, excludeAttributes: [ 'color' ] });
*
* Format Definition:
* http://paulbourke.net/dataformats/ply/
......@@ -55,12 +55,12 @@ THREE.PLYExporter.prototype = {
// Default options
var defaultOptions = {
binary: false,
excludeProperties: [] // normal, uv, color, index
excludeAttributes: [] // normal, uv, color, index
};
options = Object.assign( defaultOptions, options );
var excludeProperties = options.excludeProperties;
var excludeAttributes = options.excludeAttributes;
var geomToBufferGeom = new WeakMap();
var includeNormals = false;
var includeColors = false;
......@@ -115,10 +115,10 @@ THREE.PLYExporter.prototype = {
} );
includeNormals = includeNormals && excludeProperties.indexOf( 'normal' ) === - 1;
includeColors = includeColors && excludeProperties.indexOf( 'color' ) === - 1;
includeUVs = includeUVs && excludeProperties.indexOf( 'uv' ) === - 1;
includeIndices = includeIndices && excludeProperties.indexOf( 'index' ) === - 1;
includeNormals = includeNormals && excludeAttributes.indexOf( 'normal' ) === - 1;
includeColors = includeColors && excludeAttributes.indexOf( 'color' ) === - 1;
includeUVs = includeUVs && excludeAttributes.indexOf( 'uv' ) === - 1;
includeIndices = includeIndices && excludeAttributes.indexOf( 'index' ) === - 1;
if ( includeIndices && faceCount !== Math.floor( faceCount ) ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册