Skip to content

Commit

Permalink
Add test for issue #3170
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Nov 11, 2015
1 parent 21474ca commit 3be4201
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Specs/Core/EllipsoidalOccluderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ defineSuite([
expect(occluder.isPointVisible(point)).toEqual(false);
});

it('reports not visible when point is directly behind ellipsoid and camera is inside the ellispoid', function() {
var ellipsoid = Ellipsoid.WGS84;
var occluder = new EllipsoidalOccluder(ellipsoid);
occluder.cameraPosition = new Cartesian3(ellipsoid.minimumRadius - 100, 0.0, 0.0);

var point = new Cartesian3(-7000000, 0.0, 0.0);
expect(occluder.isPointVisible(point)).toEqual(false);
});

it('reports visible when point is in front of ellipsoid', function() {
var ellipsoid = Ellipsoid.WGS84;
var occluder = new EllipsoidalOccluder(ellipsoid);
Expand Down

0 comments on commit 3be4201

Please sign in to comment.