Editar

Share via


MDLMesh.CreateIcosahedron Method

Definition

Overloads

CreateIcosahedron(Single, Boolean, IMDLMeshBufferAllocator)

Creates a regular icosohedron with the specified radius.

CreateIcosahedron(Vector3, Boolean, MDLGeometryType, IMDLMeshBufferAllocator)

Creates a regular icosahedron from the specified parameters.

CreateIcosahedron(Single, Boolean, MDLGeometryType, IMDLMeshBufferAllocator)

Creates a regular icosahedron from the specified parameters.

CreateIcosahedron(Single, Boolean, IMDLMeshBufferAllocator)

Creates a regular icosohedron with the specified radius.

[Foundation.Export("newIcosahedronWithRadius:inwardNormals:allocator:")]
public static ModelIO.MDLMesh CreateIcosahedron (float radius, bool inwardNormals, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateIcosahedron : single * bool * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

radius
Single

The radius of the icosahedron.

inwardNormals
Boolean

Whether to generate inward-pointing normals.

allocator
IMDLMeshBufferAllocator

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

This parameter can be null.

Returns

Attributes

Applies to

CreateIcosahedron(Vector3, Boolean, MDLGeometryType, IMDLMeshBufferAllocator)

Creates a regular icosahedron from the specified parameters.

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

Parameters

extent
Vector3

The extents of the icosahedron.

inwardNormals
Boolean

Whether to generate inward-pointing normals.

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

CreateIcosahedron(Single, Boolean, MDLGeometryType, IMDLMeshBufferAllocator)

Creates a regular icosahedron from the specified parameters.

[Foundation.Export("newIcosahedronWithRadius:inwardNormals:geometryType:allocator:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 1, ObjCRuntime.PlatformArchitecture.All, null)]
public static ModelIO.MDLMesh CreateIcosahedron (float radius, bool inwardNormals, ModelIO.MDLGeometryType geometryType, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateIcosahedron : single * bool * ModelIO.MDLGeometryType * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

radius
Single

The radius of the icosahedron.

inwardNormals
Boolean

Whether to generate inward-pointing normals.

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