Click or drag to resize

ExtrudedPolylineTriangulatorCompute Method (CentralBody, IEnumerableCartesian, Double, Double, WindingOrder)

Computes an extrusion of positions on the specified centralBody with a constant bottomAltitude and topAltitude.

Namespace:  AGI.Foundation.Geometry.Discrete
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 22.2.414.0 (22.2.414.0)
public static ExtrudedPolylineTriangulatorResult Compute(
	CentralBody centralBody,
	IEnumerable<Cartesian> positions,
	double bottomAltitude,
	double topAltitude,
	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 bottom altitude, in meters, above the ellipsoid.
Type: SystemDouble
The extrusion's top 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.
ArgumentExceptionbottomAltitude must be less than or equal to topAltitude.
UnsupportedCaseExceptionpositionsWindingOrder must be a valid enumeration value in WindingOrder.

An extrusion along positions on the specified centralBody is computed with a constant bottomAltitude and topAltitude above the ellipsoid. Each position in positions is extruded along its detic surface normal.

The extrusion does not need to be attached to the ellipsoid, hence bottomAltitude is not required to be 0.

positionsWindingOrder is used to compute normals for the resulting mesh. If this is unknown, use Compute(CentralBody, IEnumerableCartesian, Double, Double).

See Also