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

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