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)
Syntax
public static ExtrudedPolylineTriangulatorResult Compute(
	CentralBody centralBody,
	IEnumerable<Cartesian> bottomPositions,
	IEnumerable<Cartesian> topPositions,
	WindingOrder positionsWindingOrder
)

Parameters

centralBody
Type: AGI.Foundation.CelestialCentralBody
The central body to compute the extrusion on.
bottomPositions
Type: System.Collections.GenericIEnumerableCartesian
The bottom positions, in the centralBody's fixed reference frame.
topPositions
Type: System.Collections.GenericIEnumerableCartesian
The top positions, in the centralBody's fixed reference frame.
positionsWindingOrder
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.
Exceptions
ExceptionCondition
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.
Remarks

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