Click or drag to resize

SurfaceExtentTriangulatorCompute Method (CentralBody, CartographicExtent, Double, Double)

Computes a triangulation on the specified centralBody for the specified extent.

Namespace:  AGI.Foundation.Geometry.Discrete
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 19.1.398.0 (19.1.398.0)
public static SurfaceTriangulatorResult Compute(
	CentralBody centralBody,
	CartographicExtent extent,
	double altitude,
	double granularity


Type: AGI.Foundation.CelestialCentralBody
The central body to compute the triangulation on.
Type: AGI.Foundation.CoordinatesCartographicExtent
The extent, in radians, to compute the triangulation for.
Type: SystemDouble
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Type: SystemDouble
The angular separation, in radians, of triangles in the triangulation. Lower granularities are more precise but create more triangles.

Return Value

Type: SurfaceTriangulatorResult
A SurfaceTriangulatorResult object representing the triangulation.
ArgumentNullExceptioncentralBody is null.
ArgumentOutOfRangeExceptionextent south and north must both be between -90 degrees and 90 degrees.
ArgumentExceptiongranularity must be greater than 0.
Using SurfaceExtentTriangulator to compute the triangulation for an extent is almost always more efficient than using the more general purpose SurfacePolygonTriangulator with the 4 corners of the extent. Also, SurfacePolygonTriangulator will connect the corners with great arcs which aren't necessarily lines of constant latitude and longitude, which is guaranteed by SurfaceExtentTriangulator.
See Also