IGeometry
Description
- Derived from
- Extended by
-
GeometryBase abstract
Represents the base geometry of a terrain in terrain-space. The center of the terrain always resides at the coordinate origin in terrain-space.
Public / Methods
ComputeCoordinates
2 overloads
Computes the heightmap coordinates and elevation that correspond to the given position.
Computes the heightmap coordinates that correspond to the given geographic coordinates.
ComputeLatLon
Computes the geographic coordinates that correspond to the given heightmap coordinates.
ComputeNorth
Computes the vertex north-vector for the given heightmap coordinates.
The north-vector is perpendicular to the up-vector and points towards the terrain North Pole, which is defined by the implementing class and can assume different meanings.
ComputePosition
Computes the vertex position that corresponds to the given heightmap coordinates and elevation.
Public / Attributes
Handedness
Returns the handedness of this geometry object.
The handedness of a geometry is taken into account when vertex normal vectors are computed: Normal vectors are computed from vertex positions using a counter-clockwise winding in heightmap space. Since heightmap space is always right-handed, all computed normal vectors must be flipped when the application uses a left-handed world coordinate system.
Extensions
BoundingSphere
2 overloads
Computes the bounding sphere that contains all vertex positions generated by this IGeometry object for elevation values in the given range.
Computes the bounding sphere that contains all vertex positions generated by this IGeometry object for elevation values in the given range.
ComputeCoordinates
Computes the heightmap coordinates and elevation that correspond to the given position.
ComputeDerivative
3 overloads
Computes the partial derivatives of the vertex position that corresponds to the given heightmap coordinates and elevation.
Computes the partial derivatives of the vertex position that corresponds to the given heightmap coordinates and elevation.
Computes the partial derivatives vertex position that corresponds to the given heightmap coordinates and elevation.
ComputeLatLon
2 overloads
Computes the geographic coordinates that correspond to the given heightmap coordinates.
Computes the geographic coordinates that correspond to the given heightmap coordinates.
ComputeLocal
4 overloads
Computes a local coordinate system for the given geographic coordinates.
The coordinate system axes are defined as follows:
-
X+
Aligned with terrain side-vector at the given coordinates.
side = cross(up, north)
.
The side vector points westwards for CartesianHandedness.RightHanded and eastwards for CartesianHandedness.LeftHanded. -
Y+
Aligned with terrain up-vector at the given coordinates. -
Z+
Perpendicular to side-vector and up-vector, pointing northwards.
- See also
Computes a local coordinate system for the given heightmap coordinates.
The coordinate system axes are defined as follows:
-
X+
Aligned with terrain side-vector at the given coordinates.
side = cross(up, north)
.
The side vector points westwards for CartesianHandedness.RightHanded and eastwards for CartesianHandedness.LeftHanded. -
Y+
Aligned with terrain up-vector at the given coordinates. -
Z+
Perpendicular to side-vector and up-vector, pointing northwards.
- See also
Computes a local coordinate system for the given heightmap coordinates.
The coordinate system axes are defined as follows:
-
X+
Aligned with terrain side-vector at the given coordinates.
side = cross(up, north)
.
The side vector points westwards for CartesianHandedness.RightHanded and eastwards for CartesianHandedness.LeftHanded. -
Y+
Aligned with terrain up-vector at the given coordinates. -
Z+
Perpendicular to side-vector and up-vector, pointing northwards.
- See also
Computes a local coordinate system for the given heightmap coordinates.
The coordinate system axes are defined as follows:
-
X+
Aligned with terrain side-vector at the given coordinates.
side = cross(up, north)
.
The side vector points westwards for CartesianHandedness.RightHanded and eastwards for CartesianHandedness.LeftHanded. -
Y+
Aligned with terrain up-vector at the given coordinates. -
Z+
Perpendicular to side-vector and up-vector, pointing northwards.
- See also
ComputeNorth
2 overloads
Computes the vertex north-vector for the given heightmap coordinates.
The north-vector is perpendicular to the up-vector and points towards the terrain North Pole, which is defined by the implementing class and can assume different meanings.
Computes the vertex north-vector for the given heightmap coordinates.
The north-vector is perpendicular to the up-vector and points towards the terrain North Pole, which is defined by the implementing class and can assume different meanings.
ComputePosition
5 overloads
Computes the vertex position that corresponds to the given heightmap coordinates and elevation.
Computes the vertex position that corresponds to the given heightmap coordinates and elevation.
Computes the vertex position that corresponds to the given heightmap coordinates and elevation.
Computes the vertex position that corresponds to the given heightmap coordinates and elevation.
Computes the vertex position that corresponds to the given heightmap coordinates and elevation.