Is it possible to make CorridorGraphics follow the terrain?


Is it possible to make a corridor following the actual terrain of a map?

I would like to get the green corridor following the terrain, but as you can see in the image above, it only touches the terrain at its highest point.
I currently use the following configuration:

        name: 'Z1',
        corridor: {
          positions: points,
          width: zones.z1.width,
          cornerType: CornerType.MITERED,
          extrudedHeight: zones.z1.height,
          height: 0,
          extrudedHeightReference: HeightReference.RELATIVE_TO_GROUND,
          heightReference: HeightReference.CLAMP_TO_GROUND,
          material: Color.GREEN.withAlpha(0.8),

I appreciate every input on this topic.

Hi @Simon_Prosen,

It’s currently not possible yet. Corridors, polygons and rectangles with extruded height does not clamp to the terrain at the moment. It doesn’t look like there is a feature request for this in CesiumJS yet. Please feel free to open one!