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


Type: AGI.Foundation.CelestialCentralBody
The central body to compute the extrusion on.
Type: System.Collections.GenericIEnumerableCartesian
The polyline positions, in the centralBody's fixed reference frame, that should be extruded.
Type: SystemDouble
The extrusion's constant altitude, in meters, above the ellipsoid.
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.
ArgumentNullExceptioncentralBody or positions is null.
ArgumentExceptionpositions must contain at least two elements.
UnsupportedCaseExceptionpositionsWindingOrder must be a valid enumeration value in WindingOrder.

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