Click or drag to resize

ExtrudedPolylineTriangulator.Compute Method (CentralBody, IEnumerable<Cartesian>, 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.3.420.0 (24.3.420.0)
Syntax
public static ExtrudedPolylineTriangulatorResult Compute(
	CentralBody centralBody,
	IEnumerable<Cartesian> positions,
	double bottomAltitude,
	double topAltitude,
	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.
bottomAltitude
Type: System.Double
The extrusion's bottom altitude, in meters, above the ellipsoid.
topAltitude
Type: System.Double
The extrusion's top 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.
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, IEnumerable<Cartesian>, Double, Double).

See Also