Click or drag to resize

SurfaceExtentTriangulator.Compute 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: 24.3.420.0 (24.3.420.0)
Syntax
public static SurfaceTriangulatorResult Compute(
	CentralBody centralBody,
	CartographicExtent extent,
	double altitude,
	double granularity
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body to compute the triangulation on.
extent
Type: AGI.Foundation.Coordinates.CartographicExtent
The extent, in radians, to compute the triangulation for.
altitude
Type: System.Double
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
granularity
Type: System.Double
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.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is null.
ArgumentOutOfRangeExceptionextent south and north must both be between -90 degrees and 90 degrees.
ArgumentExceptiongranularity must be greater than 0.
Remarks
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