Skip to content

Commit

Permalink
Minor detail.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiancalhoun committed Aug 15, 2012
1 parent e1231c7 commit 9cdb211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Scene/Polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,9 @@ define([
meshes.push(this._createMeshFromPositions(this._positions));
}
else if(typeof this._polygonHierarchy !== 'undefined') {
var tangentPlane = EllipsoidTangentPlane.create(this.ellipsoid, this._polygonHierarchy[0]);
var outerPositions2D = tangentPlane.projectPointsOntoPlane(this._polygonHierarchy[0]);
var outerPositions = this._polygonHierarchy[0];
var tangentPlane = EllipsoidTangentPlane.create(this.ellipsoid, outerPositions);
var outerPositions2D = tangentPlane.projectPointsOntoPlane(outerPositions);
for (i = 0; i < this._polygonHierarchy.length; i++) {
meshes.push(this._createMeshFromPositions(this._polygonHierarchy[i], outerPositions2D));
}
Expand Down

0 comments on commit 9cdb211

Please sign in to comment.