Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in CorridorGeometry #3320

Closed
hpinkos opened this issue Dec 9, 2015 · 0 comments
Closed

Bug in CorridorGeometry #3320

hpinkos opened this issue Dec 9, 2015 · 0 comments
Assignees

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Dec 9, 2015

image

The CorridorGeometry doesn't line up with the Polyline that has the same points. I suspect the root of the problem is that some of the points are colinear-ish.

var viewer = new Cesium.Viewer('cesiumContainer');

var points = Cesium.Cartesian3.fromDegreesArray([
    15.966388702392578, 46.84194564819336, 
    15.938333511352539, 46.66777801513672,     
    15.8797221183776855, 46.3025016784668, 
    16.390833377838135, 45.80833435058594,
    16.746944427490234, 45.45722198486328, 
    16.940000057220459, 45.26444625854492
]);

for (var i = 0; i < points.length; i++) {
    viewer.entities.add({
        position : points[i],
        point : {
            color : Cesium.Color.YELLOW,
            pixelSize : 10
        }
    });
}

viewer.entities.add({
    corridor : {
        positions : points,       
        width : 50000,
        material : Cesium.Color.BLUEVIOLET.withAlpha(0.5)
    }
});

viewer.entities.add({
    polyline : {
        positions : points,
        width : 2,
        material : Cesium.Color.CYAN
    }
});
@hpinkos hpinkos self-assigned this Dec 9, 2015
hpinkos pushed a commit that referenced this issue Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant