# extrudedHeightgeometric shapes by vertices with abnormal height information

**URL:** <https://community.cesium.com/t/extrudedheightgeometric-shapes-by-vertices-with-abnormal-height-information/32685>\
**Category:** CesiumJS\
**Created:** [June 5, 2024, 8:17am UTC](https://community.cesium.com/t/extrudedheightgeometric-shapes-by-vertices-with-abnormal-height-information/32685 "2024-06-05T08:17:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![243400623](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/243400623/32/14887_2.png) [@243400623](https://community.cesium.com/u/243400623)\
**Post date:** [June 5, 2024, 8:17am UTC](https://community.cesium.com/t/extrudedheightgeometric-shapes-by-vertices-with-abnormal-height-information/32685/1 "2024-06-05T08:17:09Z")

</div>

```auto
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: new window.Cesium.CallbackProperty(function () {
                return new window.Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArrayHeights([
      -118.4,
      40.4,
      500000,
      -118.4,
      37,
      30000,
      -114.2,
      38.0,
      35000,
      -108.0,
      37,
      30000,
      -108.0,
      40.4,
      50000,
    ]));
            }, false) ,
    perPositionHeight: true,
    extrudedHeight: 10,
    extrudedHeightReference:Cesium.HeightReference.NONE,
    material: "../images/Cesium_Logo_Color.jpg",
  },
});
texturedPolygon.perPositionHeight = true;
texturedPolygon.heightReference = Cesium.HeightReference.RELATIVE_TO_GROUND;
texturedPolygon.extrudedHeightReference = Cesium.HeightReference.NONE;

viewer.zoomTo(viewer.entities); 

```

 ![image](https://global.discourse-cdn.com/cesium/original/3X/a/3/a3a11f6813ce17a90dfb6aa68a3dab8468a4b9f0.jpeg)

I hope he starts from the surface of the graph to calculate the stretching height, rather than starting from the surface of the Earth. The change should be the thickness of the shape

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [June 6, 2024, 3:10pm UTC](https://community.cesium.com/t/extrudedheightgeometric-shapes-by-vertices-with-abnormal-height-information/32685/2 "2024-06-06T15:10:17Z")

</div>

Hi there,

Could you maybe provide a picture of the effect you’re looking to get?
