Page cover

mountainsTopography

Topography is a core geometry type in Cityweft API. It consists of meshes or elevationMaps that represent the terrain surface.

Geometry Type: meshes

{
     "type": "buildings",
     "geometryType": "meshes",
     "meshes": Mesh[]
},

Geometry Type: elevationMaps

circle-info

Recommended to use if possible. ~94% of data saving in comparison to topography in meshes

{
     "type": "buildings",
     "geometryType": "elevationMap",
     "elevationMap": ElevationMap[]
},

What does an Mesh element contain? This is the example:

{
     // The most important element of any meshed geometry for visualization
     "vertices": [x1, y1, z1, x2, y2, z2, ...],
},

What does an ElevationMap element contain? This is the example:

{
     // The most important element of any meshed geometry for visualization
     "elevationMap": [x1, x2, x3, ...],
      "info": {
            "width": 689.8214354910813,
            "height": 948.5044738001429,
            "segmentsWidth": 36,
            "segmentsHeight": 99,
            "moveVector": {
                "x": 201.72051196591372,
                "y": 278.19513356037794
            },
        },
},
Name
Value

width / height

height and width in meters of the topographic array

segmentsWidth / segmentsHeight

number of segments in elevationMap

moveVector

position of elevationMap

circle-exclamation

Mesh: Bumpy geometry, large file size

Plane geometry with elevation maps: Smooth surface, optimized performance and file size

Elevation Map Example in Three.js

Last updated