Upravit

Sdílet prostřednictvím


MDLMesh.CreatePlane Method

Definition

Overloads

CreatePlane(Vector3, Vector2i, MDLGeometryType, IMDLMeshBufferAllocator)

Creates a planar region centered at the origin, aligned with the X-Z plane, with the specified dimensions.

CreatePlane(Vector2, Vector2i, MDLGeometryType, IMDLMeshBufferAllocator)

CreatePlane(Vector3, Vector2i, MDLGeometryType, IMDLMeshBufferAllocator)

Creates a planar region centered at the origin, aligned with the X-Z plane, with the specified dimensions.

[ObjCRuntime.TV(10, 0)]
public static ModelIO.MDLMesh CreatePlane (OpenTK.Vector3 extent, OpenTK.Vector2i segments, ModelIO.MDLGeometryType geometryType, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreatePlane : OpenTK.Vector3 * OpenTK.Vector2i * ModelIO.MDLGeometryType * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

extent
Vector3

The extent of the plane.

segments
Vector2i

The number of divisions to create in each dimension.

geometryType
MDLGeometryType

Whether to create triangles, quadrilaterals, or lines.

allocator
IMDLMeshBufferAllocator

The allocator to use instead of the default, internal allocator.

This parameter can be null.

Returns

Attributes

Applies to

CreatePlane(Vector2, Vector2i, MDLGeometryType, IMDLMeshBufferAllocator)

[Foundation.Export("newPlaneWithDimensions:segments:geometryType:allocator:")]
public static ModelIO.MDLMesh CreatePlane (OpenTK.Vector2 dimensions, OpenTK.Vector2i segments, ModelIO.MDLGeometryType geometryType, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreatePlane : OpenTK.Vector2 * OpenTK.Vector2i * ModelIO.MDLGeometryType * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

dimensions
Vector2
segments
Vector2i
geometryType
MDLGeometryType
allocator
IMDLMeshBufferAllocator

To be added.

This parameter can be null.

Returns

Attributes

Applies to