Skip to content

Commit

Permalink
Merge pull request #50 from AnalyticalGraphicsInc/removeUnusedVertices
Browse files Browse the repository at this point in the history
Added removeUnusedVertices stage
  • Loading branch information
pjcozzi committed May 20, 2016
2 parents 09c7f72 + 5d26fa4 commit 3db3306
Show file tree
Hide file tree
Showing 4 changed files with 890 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/gltf-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var addPipelineExtras = require('../').addPipelineExtras;
var convertDagToTree = require('../').convertDagToTree;
var combineMeshes = require('../').combineMeshes;
var combinePrimitives = require('../').combinePrimitives;
var removeUnusedVertices = require('../').removeUnusedVertices;
var OptimizationStatistics = require('../').OptimizationStatistics;
var Cesium = require('cesium');
var defined = Cesium.defined;
Expand Down Expand Up @@ -79,6 +80,8 @@ fs.readFile(gltfPath, function (err, data) {
combineMeshes(gltf);
combinePrimitives(gltf);

removeUnusedVertices(gltf);

var outputPath = argv.o;
if (!defined(outputPath)) {
// Default output. For example, path/asset.gltf becomes path/asset-optimized.gltf
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ module.exports = {
convertDagToTree : require('./lib/convertDagToTree'),
combineMeshes : require('./lib/combineMeshes'),
combinePrimitives : require('./lib/combinePrimitives'),
removeUnusedVertices : require('./lib/removeUnusedVertices'),
OptimizationStatistics : require('./lib/OptimizationStatistics')
};
Loading

0 comments on commit 3db3306

Please sign in to comment.