PrimitiveFactoryCreatePolygon Method |
Creates a polygon triangle mesh.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static TriangleMeshPrimitive CreatePolygon(
CentralBody centralBody,
IEnumerable<Cartesian> positions
)
Public Shared Function CreatePolygon (
centralBody As CentralBody,
positions As IEnumerable(Of Cartesian)
) As TriangleMeshPrimitive
public:
static TriangleMeshPrimitive^ CreatePolygon(
CentralBody^ centralBody,
IEnumerable<Cartesian>^ positions
)
static member CreatePolygon :
centralBody : CentralBody *
positions : IEnumerable<Cartesian> -> TriangleMeshPrimitive
Parameters
- centralBody
- Type: AGI.Foundation.CelestialCentralBody
Central body to place the polygon on - positions
- Type: System.Collections.GenericIEnumerableCartesian
Cartesian positions of the polygon
Return Value
Type:
TriangleMeshPrimitiveTriangleMeshPrimitive shaped as a polygon
See Also