TopographySurface
This class represents a topographic surface as a collection of nested
TopographyMap objects. The resolution is expected to decrease as one
moves from the most inner map (index 0) to the most outer one,
providing a Level of Detail (LoD).
Constructor
- class TopographySurface(*maps, offset=None)
The maps arguments must be TopographyMap objects. The first map provided is the innermost. Additionally, a global offset can be specified for all elevation values.
Attributes
- TopographySurface.maps: Tuple[TopographyMap]
The sequence of TopographyMap objects describing this surface.
Methods
- TopographySurface.__call__(x, y, grid=None)
Returns the elevation values at coordinates \((x, y)\), including the surface global offset. The x and y arguments can be
floatornumpy.ndarraywith consistent sizes. If grid is set toTrue, elevation values are computed over a grid that corresponds to the outer product of x and y, similar to theTopographyMap.__call__()method.