Share via


MDLMesh.CreatePlane Method

Definition

Overloads

Name Description
CreatePlane(Vector3, NVector2i, MDLGeometryType, IMDLMeshBufferAllocator)

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

CreatePlane(Vector2, NVector2i, MDLGeometryType, IMDLMeshBufferAllocator)

CreatePlane(Vector3, NVector2i, MDLGeometryType, IMDLMeshBufferAllocator)

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

public static ModelIO.MDLMesh CreatePlane(System.Numerics.Vector3 extent, CoreGraphics.NVector2i segments, ModelIO.MDLGeometryType geometryType, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreatePlane : System.Numerics.Vector3 * CoreGraphics.NVector2i * ModelIO.MDLGeometryType * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

extent
Vector3

The extent of the plane.

segments
NVector2i

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

Applies to

CreatePlane(Vector2, NVector2i, MDLGeometryType, IMDLMeshBufferAllocator)

[Foundation.Export("newPlaneWithDimensions:segments:geometryType:allocator:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static ModelIO.MDLMesh CreatePlane(System.Numerics.Vector2 dimensions, CoreGraphics.NVector2i segments, ModelIO.MDLGeometryType geometryType, ModelIO.IMDLMeshBufferAllocator? allocator);
[<Foundation.Export("newPlaneWithDimensions:segments:geometryType:allocator:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreatePlane : System.Numerics.Vector2 * CoreGraphics.NVector2i * ModelIO.MDLGeometryType * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

dimensions
Vector2
segments
NVector2i
geometryType
MDLGeometryType

Returns

Attributes

Applies to