Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Removed deprecated THREE.CubeGeometry in favor of THREE.BoxGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Sep 21, 2015
1 parent 4575c0f commit 5643b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meteor/app/client/globe.js
Expand Up @@ -138,7 +138,7 @@ if (Meteor.isClient) {
mesh.scale.set( 1.1, 1.1, 1.1 );
scene.add(mesh);

geometry = new THREE.CubeGeometry(0.75, 0.75, 1);
geometry = new THREE.BoxGeometry(0.75, 0.75, 1);
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-0.5));

point = new THREE.Mesh(geometry);
Expand Down Expand Up @@ -227,7 +227,7 @@ if (Meteor.isClient) {
var phi = (90 - lat) * Math.PI / 180;
var theta = (180 - lng) * Math.PI / 180;

var geometry = new THREE.CubeGeometry(0.75, 0.75, 1);
var geometry = new THREE.BoxGeometry(0.75, 0.75, 1);
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-0.5));

var mypoint = new THREE.Mesh(geometry);
Expand Down

0 comments on commit 5643b6a

Please sign in to comment.