Click or drag to resize

ExtrudedPolylineTriangulatorCompute Method (CentralBody, IEnumerableCartesian, IEnumerableCartesian, WindingOrder)

Computes an extrusion between bottomPositions and topPositions on the specified centralBody.

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 Compute(
	CentralBody centralBody,
	IEnumerable<Cartesian> bottomPositions,
	IEnumerable<Cartesian> topPositions,
	WindingOrder positionsWindingOrder


Type: AGI.Foundation.CelestialCentralBody
The central body to compute the extrusion on.
Type: System.Collections.GenericIEnumerableCartesian
The bottom positions, in the centralBody's fixed reference frame.
Type: System.Collections.GenericIEnumerableCartesian
The top positions, in the centralBody's fixed reference frame.
Type: AGI.Foundation.Geometry.DiscreteWindingOrder
The winding order of bottomPositions and topPositions.

Return Value

Type: ExtrudedPolylineTriangulatorResult
A ExtrudedPolylineTriangulatorResult object representing the extrusion, in the centralBody's fixed reference frame.
ArgumentNullExceptioncentralBody, bottomPositions, or topPositions is null.
ArgumentExceptionbottomPositions and topPositions must contain the same number of positions, and at least two each.
ArgumentExceptionbottomPositions and topPositions must have the same winding order.
UnsupportedCaseExceptionpositionsWindingOrder must be a valid enumeration value in WindingOrder.

The extrusion does not need to be attached to the ellipsoid, hence the altitudes for bottomPositions are 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