Select to view content in your preferred language

Bug rendering 3d polygon

2475
3
11-07-2022 09:36 PM
BerwynMcKilligan
New Contributor

the following polygon fill renders incorrectly (the polygon is oriented vertically)

 

BerwynMcKilligan_0-1667885778754.png

 

 

<script>
require([
"esri/Map",
"esri/views/SceneView",
"esri/layers/GraphicsLayer",
"esri/Graphic"
], (Map, SceneView, GraphicsLayer, Graphic) => {
const map = new Map({
basemap: "hybrid"
});

const view = new SceneView({
container: "viewDiv",
map: map,

camera: {
// autocasts as new Camera()
position: {
// autocasts as new Point()
x: -122.7600058172586,
y: 49.01613625727473,
z: 36.28960603238933
},
heading: 63,
tilt: 67.7126064292701
}
});

const graphicsLayer = new GraphicsLayer();
map.add(graphicsLayer);


const polygon = {
type: "polygon", // autocasts as new Polygon()
rings: [
[-122.75920881,49.01650073,10.46],
[-122.75918975212072,49.01648150497291,13.86],
[-122.75918771772683,49.0164794527363,14.11],
[-122.75919250348161,49.01648428046471,15.46],
[-122.75917743373131,49.016469078544624,19.41],
[-122.75916729312918,49.016458849003996,19.46],
[-122.75919081188758,49.01648257403449,23.61],
[-122.75920881,49.01650073,25.46],
[-122.75920881,49.01650073,10.46]
]
};

const fillSymbol = {
type: "simple-fill", // autocasts as new SimpleFillSymbol()
color: [227, 139, 79, 0.8],
outline: {
// autocasts as new SimpleLineSymbol()
color: [255, 255, 255],
width: 2
}
};

const polygonGraphic = new Graphic({
geometry: polygon,
symbol: fillSymbol
});

graphicsLayer.add(polygonGraphic);
});
</script>

3 Replies
VeronikaLanders
Esri Contributor

Unfortunately, this is a current limitation and in our backlog.

Could you please elaborate what you are trying to show with this specific polygon and explain the use case behind? This helps us to prioritize since solving all possible cases is not trivial in 3D.

Thanks a lot for your insights,
Veronika

0 Kudos
BerwynMcKilligan
New Contributor

I am using this to show geotechnical sounding information, displaying measured properties with depth and defining layers at depth, the following example is elevated above the surface for clarity.

BerwynMcKilligan_0-1667957349921.png

or bellow ground 

BerwynMcKilligan_1-1667957608471.png

images are rendered using cesium, looking to implement ArcGIS js 

0 Kudos
GreteSoosalu
Esri Contributor

Hi @BerwynMcKilligan 

We've installed a fix for this in the upcoming 4.28 release that goes out this October. 
Once you can try it out, let us know if you still run into any issues! 

0 Kudos