Condividi tramite


MDLMesh.CreateCapsule Metodo

Definizione

Overload

CreateCapsule(Vector3, Vector2i, MDLGeometryType, Boolean, Int32, IMDLMeshBufferAllocator)
CreateCapsule(Single, Vector2, nuint, nuint, nuint, MDLGeometryType, Boolean, IMDLMeshBufferAllocator)

Crea una capsula dalla larghezza, dall'altezza e dalla profondità contenute in dimensions, con il numero specificato di segmenti e tipo di geometria.

CreateCapsule(Vector3, Vector2i, MDLGeometryType, Boolean, Int32, IMDLMeshBufferAllocator)

[ObjCRuntime.TV(10, 0)]
public static ModelIO.MDLMesh CreateCapsule (OpenTK.Vector3 dimensions, OpenTK.Vector2i segments, ModelIO.MDLGeometryType geometryType, bool inwardNormals, int hemisphereSegments, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateCapsule : OpenTK.Vector3 * OpenTK.Vector2i * ModelIO.MDLGeometryType * bool * int * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parametri

dimensions
Vector3
segments
Vector2i
geometryType
MDLGeometryType
inwardNormals
Boolean
hemisphereSegments
Int32

Restituisce

Attributi

Si applica a

CreateCapsule(Single, Vector2, nuint, nuint, nuint, MDLGeometryType, Boolean, IMDLMeshBufferAllocator)

Crea una capsula dalla larghezza, dall'altezza e dalla profondità contenute in dimensions, con il numero specificato di segmenti e tipo di geometria.

[Foundation.Export("newCapsuleWithHeight:radii:radialSegments:verticalSegments:hemisphereSegments:geometryType:inwardNormals: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 CreateCapsule (float height, OpenTK.Vector2 radii, nuint radialSegments, nuint verticalSegments, nuint hemisphereSegments, ModelIO.MDLGeometryType geometryType, bool inwardNormals, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateCapsule : single * OpenTK.Vector2 * nuint * nuint * nuint * ModelIO.MDLGeometryType * bool * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parametri

height
Single

Altezza della capsula.

radii
Vector2

I raggi della capsula.

radialSegments
System.System.UIntPtr System.unativeint

Numero di segmenti radiali da generare.

verticalSegments
System.System.UIntPtr System.unativeint

Numero di segmenti verticali da generare nel cilindro.

hemisphereSegments
System.System.UIntPtr System.unativeint

Segmenti numerici da generare nei limiti.

geometryType
MDLGeometryType

Se creare triangoli, quadrilateri o linee.

inwardNormals
Boolean

Indica se generare normali verso l'interno.

allocator
IMDLMeshBufferAllocator

Allocatore da usare invece dell'allocatore interno predefinito.

Questo parametro può essere null.

Restituisce

Attributi

Si applica a