Click or drag to resize

ExtrudedPolylineTriangulator.ComputeSingleConstantAltitude Method (CentralBody, IEnumerable<Cartesian>, Double, WindingOrder)

Computes an extrusion of positions on the specified centralBody. One side of the extrusion has a constant altitude and the other has the original altitudes from positions.

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 ExtrudedPolylineTriangulatorResult ComputeSingleConstantAltitude(
	CentralBody centralBody,
	IEnumerable<Cartesian> positions,
	double altitude,
	WindingOrder positionsWindingOrder
)

Parameters

centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body to compute the extrusion on.
positions
Type: System.Collections.Generic.IEnumerable<Cartesian>
The polyline positions, in the centralBody's fixed reference frame, that should be extruded.
altitude
Type: System.Double
The extrusion's constant altitude, in meters, above the ellipsoid.
positionsWindingOrder
Type: AGI.Foundation.Geometry.Discrete.WindingOrder
The winding order of positions.

Return Value

Type: ExtrudedPolylineTriangulatorResult
A ExtrudedPolylineTriangulatorResult object representing the extrusion, in the centralBody's fixed reference frame.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody or positions is null.
ArgumentExceptionpositions must contain at least two elements.
UnsupportedCaseExceptionpositionsWindingOrder must be a valid enumeration value in WindingOrder.
Remarks

An extrusion along positions on the specified centralBody is computed with a constant altitude on one side and the original position's altitude on the other. Each position in positions is extruded along its detic surface normal.

For example, if positions represents a polyline with varying altitudes and altitude is 0, the polyline is extruded down to the ellipsoid.

positionsWindingOrder is used to compute normals for the resulting mesh. If this is unknown, use ComputeSingleConstantAltitude(CentralBody, IEnumerable<Cartesian>, Double).

See Also