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

Large filled circles fill the opposite side. #998

Open
pjcozzi opened this issue Jul 31, 2013 · 4 comments
Open

Large filled circles fill the opposite side. #998

pjcozzi opened this issue Jul 31, 2013 · 4 comments

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Jul 31, 2013

Code example:

var circle = new Cesium.Polygon();
circle.setPositions(
   Cesium.Shapes.computeCircleBoundary(
      ellipsoid,
      ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(0, 90.0)), 12500000.0));
primitives.add(circle);
@pjcozzi
Copy link
Contributor Author

pjcozzi commented Apr 1, 2014

Another example:

 var circle = primitives.add(new Cesium.Polygon({
        positions : Cesium.Shapes.computeCircleBoundary(
                ellipsoid,
                ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(0.0, 90.0)),
                10000000.0)
}));

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Nov 25, 2014

@bagnell was this fixed with #2283?

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Dec 1, 2014

@bagnell?

@bagnell
Copy link
Contributor

bagnell commented Dec 1, 2014

No. Here's an update code sample:

var circleInstance = new Cesium.GeometryInstance({
    geometry : new Cesium.CircleGeometry({
        center : Cesium.Cartesian3.fromDegrees(0.0, 90.0),
        radius : 10000000.0,
        vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
    }),
    attributes : {
        color : Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(1.0, 0.0, 0.0, 0.5))
    }
});
scene.primitives.add(new Cesium.Primitive({
    geometryInstances: circleInstance,
    appearance: new Cesium.PerInstanceColorAppearance({
        closed: true
    })
}));

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

3 participants