Click or drag to resize

ExtrudedPolylineTriangulatorComputeSingleConstantAltitude Method (CentralBody, IEnumerableCartesian, 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.2.419.0 (24.2.419.0)
Syntax
public static ExtrudedPolylineTriangulatorResult ComputeSingleConstantAltitude(
	CentralBody centralBody,
	IEnumerable<Cartesian> positions,
	double altitude,
	WindingOrder positionsWindingOrder
)

Parameters

centralBody
Type: AGI.Foundation.CelestialCentralBody
The central body to compute the extrusion on.
positions
Type: System.Collections.GenericIEnumerableCartesian
The polyline positions, in the centralBody's fixed reference frame, that should be extruded.
altitude
Type: SystemDouble
The extrusion's constant altitude, in meters, above the ellipsoid.
positionsWindingOrder
Type: AGI.Foundation.Geometry.DiscreteWindingOrder
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, IEnumerableCartesian, Double).

See Also