ExtrudedPolylineTriangulatorCompute Method (CentralBody, IEnumerableCartesian, IEnumerableCartesian, WindingOrder) |
Namespace: AGI.Foundation.Geometry.Discrete
public static ExtrudedPolylineTriangulatorResult Compute( CentralBody centralBody, IEnumerable<Cartesian> bottomPositions, IEnumerable<Cartesian> topPositions, WindingOrder positionsWindingOrder )
Exception | Condition |
---|---|
ArgumentNullException | centralBody, bottomPositions, or topPositions is null. |
ArgumentException | bottomPositions and topPositions must contain the same number of positions, and at least two each. |
ArgumentException | bottomPositions and topPositions must have the same winding order. |
UnsupportedCaseException | positionsWindingOrder 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).