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: 25.2.423.0 (25.2.423.0)
Syntaxpublic static SurfaceTriangulatorResult Compute(
CentralBody centralBody,
CartographicExtent extent,
double altitude,
double granularity
)
Public Shared Function Compute (
centralBody As CentralBody,
extent As CartographicExtent,
altitude As Double,
granularity As Double
) As SurfaceTriangulatorResult
public:
static SurfaceTriangulatorResult^ Compute(
CentralBody^ centralBody,
CartographicExtent^ extent,
double altitude,
double granularity
)
static member Compute :
centralBody : CentralBody *
extent : CartographicExtent *
altitude : float *
granularity : float -> SurfaceTriangulatorResult
Parameters
- centralBody
- Type: AGI.Foundation.CelestialCentralBody
The central body to compute the triangulation on. - extent
- Type: AGI.Foundation.CoordinatesCartographicExtent
The extent, in radians, to compute the triangulation for. - altitude
- Type: SystemDouble
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
- granularity
- Type: SystemDouble
The angular separation, in radians, of triangles in the triangulation.
Lower granularities are more precise but create more triangles.
Return Value
Type:
SurfaceTriangulatorResultA
SurfaceTriangulatorResult object representing the triangulation.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | centralBody is null.
|
| ArgumentOutOfRangeException | extent south and north must both be between
-90 degrees and 90 degrees.
|
| ArgumentException | granularity must be greater than 0.
|
Remarks
See Also