Skip to content

Commit

Permalink
If invalid mesh, return geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Jul 24, 2013
1 parent a3d17fe commit f4e5e09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var createAOMesh = require('ao-mesher')

module.exports = function(arr, geometry) {
var vert_data = createAOMesh(arr)
if (!vert_data) return geometry

var triangles = 12 * arr.shape[0] * arr.shape[1] * arr.shape[2]
geometry.attributes = {
Expand Down

0 comments on commit f4e5e09

Please sign in to comment.