You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following Sandcastle code used to display a floating circle.
However in 1.6 and master, a cylinder appears.
This issue seems related to the packing changes.
varviewer=newCesium.Viewer('cesiumContainer');varprimitives=viewer.scene.primitives;varcenter=newCesium.Cartesian3(2930859.8012761218,2922254.5933887595,5476485.915141216);varradius=648236;varheight=500000;varoutlineGeometry=newCesium.CircleOutlineGeometry({center: center,radius: radius,height: height});varoutColor={red: 1,green: 0,blue: 0,alpha: 1};varcreateColoredPrimitive=function(geometry,color){varcreateInstance=function(geometry,color){returnnewCesium.GeometryInstance({// always update Cesium externs before adding a propertygeometry: geometry,attributes: {color: Cesium.ColorGeometryInstanceAttribute.fromColor(color)}});};varoptions={// always update Cesium externs before adding a propertyflat: true// work with all geometries};varappearance=newCesium.PerInstanceColorAppearance(options);varinstances=createInstance(geometry,color);varprimitive=newCesium.Primitive({// always update Cesium externs before adding a propertygeometryInstances: instances,appearance: appearance});returnprimitive;};primitives.add(createColoredPrimitive(outlineGeometry,outColor));
The text was updated successfully, but these errors were encountered:
Thanks for the report. That's definitely a bug. The workaround for now is to add extrudedHeight : height as a parameter to the geometry. We'll definitely get this fixed for 1.7
`extrudedHeight` was getting defaulted to `0` during the pack/unpack
process, which caused asynchronous geometry to be extruded when it should
have just been at height.
Fixes#2499
Hello,
The following Sandcastle code used to display a floating circle.
However in 1.6 and master, a cylinder appears.
This issue seems related to the packing changes.
The text was updated successfully, but these errors were encountered: