Compartilhar via


MDLMesh.CreateCapsule Método

Definição

Sobrecargas

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

Cria uma cápsula com base na largura, altura e profundidade contidas em dimensions, com o número especificado de segmentos e tipo de 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

Parâmetros

dimensions
Vector3
segments
Vector2i
geometryType
MDLGeometryType
inwardNormals
Boolean
hemisphereSegments
Int32

Retornos

Atributos

Aplica-se a

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

Cria uma cápsula com base na largura, altura e profundidade contidas em dimensions, com o número especificado de segmentos e tipo de 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

Parâmetros

height
Single

A altura da cápsula.

radii
Vector2

O raio da cápsula.

radialSegments
System.System.UIntPtr System.unativeint

O número de segmentos radiais a serem gerados.

verticalSegments
System.System.UIntPtr System.unativeint

O número de segmentos verticais a serem gerados no cilindro.

hemisphereSegments
System.System.UIntPtr System.unativeint

Os segmentos numéricos a serem gerados nas tampas.

geometryType
MDLGeometryType

Se deseja criar triângulos, quadriláteros ou linhas.

inwardNormals
Boolean

Se deve gerar normais que apontam para dentro.

allocator
IMDLMeshBufferAllocator

O alocador a ser usado em vez do alocador interno padrão.

Esse parâmetro pode ser null.

Retornos

Atributos

Aplica-se a