Function placeGeometryOnGround

  • Places a geometry on to the ground (or terrain). The geometry is changed in place. This function will set the layout to a respective 3D layout.

    Parameters

    • geometry: Geometry
    • scene: Scene
    • heightReference: CLAMP_TO_GROUND | CLAMP_TO_TERRAIN

      clamp to ground will use scene.getHeightMostDetailed, terrain will use sampleTerrainMostDetailed using the scenes terrain provider

    Returns Promise<void>