This is my code. I want to show the given part of the picture. But that part is reversed. When I add all the polygons belonging to the building, 2 walls of the building are correct and the other 2 walls opposite them are reversed. Is there anyone to help?
const viewer = new Cesium.Viewer(“cesiumContainer”);
const texturedPolygon = viewer.entities.add({
name:
“Extruded textured polygon with per-position heights and custom texture coordinates”,
polygon: {
hierarchy: [
{
“x”: 3986727.999575226,
“y”: 2668827.764959059,
“z”: 4188762.4665817455
},
{
“x”: 3986739.1600780976,
“y”: 2668822.9680505386,
“z”: 4188768.1690356755
},
{
“x”: 3986733.8500800813,
“y”: 2668819.4134049756,
“z”: 4188762.552352157
},
{
“x”: 3986727.999575226,
“y”: 2668827.764959059,
“z”: 4188762.4665817455
}
],
textureCoordinates: {
positions: [
new Cesium.Cartesian2(0.71630859375, 0),
new Cesium.Cartesian2(0.640869140625, 0.1708984375),
new Cesium.Cartesian2(0.640869140625, 0.00428955070674419),
new Cesium.Cartesian2(0.71630859375, 0)
],
},
perPositionHeight: true,
outline : true,
material: "3_8_0.jpg"
},
});
viewer.zoomTo(viewer.entities);