Click or drag to resize

SurfacePolygonTriangulator.Compute Method (CentralBody, IEnumerable<Cartesian>, IEnumerable<Cartesian>, Double, Double)

Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified positions with a hole specified by holePositions.

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,
	IEnumerable<Cartesian> positions,
	IEnumerable<Cartesian> holePositions,
	double altitude,
	double granularity
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body to compute the triangulation on.
positions
Type: System.Collections.Generic.IEnumerable<Cartesian>
The positions defining the boundary of the polygon, in the centralBody's fixed reference frame, to triangulate.
holePositions
Type: System.Collections.Generic.IEnumerable<Cartesian>
The positions defining the hole in the polygon, in the centralBody's fixed reference frame.
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 positions in the triangulation. Lower granularities are more precise but create more triangles.

Return Value

Type: SurfaceTriangulatorResult
A SurfaceTriangulatorResult object representing the triangulation, in the centralBody's fixed reference frame.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody, positions, or holePositions is null.
ArgumentExceptionpositions and holePositions must contain at least three elements.
ArgumentExceptiongranularity must be greater than 0.
ArgumentException Could not triangulate. The polygon may cross over itself or it may be too large.
See Also