Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scale surface mesh properly

  • Loading branch information...
commit e4e622863b04d552488d34354622d1592acbde5b 1 parent 0500c7e
@maxogden authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  index.js
  2. +1 −1  package.json
View
1  index.js
@@ -64,6 +64,7 @@ Mesh.prototype.createWireMesh = function(hexColor) {
Mesh.prototype.createSurfaceMesh = function(material) {
material = material || new THREE.MeshNormalMaterial()
var surfaceMesh = new THREE.Mesh( this.geometry, material )
+ surfaceMesh.scale = this.scale
surfaceMesh.doubleSided = false
this.surfaceMesh = surfaceMesh
return surfaceMesh
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "voxel-mesh",
"description": "generate a three.js mesh from voxel data",
- "version": "0.0.2",
+ "version": "0.0.3",
"main": "index.js",
"repository": {
"type": "git",
Please sign in to comment.
Something went wrong with that request. Please try again.