MDLMesh.CreateCapsule 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateCapsule(Vector3, Vector2i, MDLGeometryType, Boolean, Int32, IMDLMeshBufferAllocator) | |
CreateCapsule(Single, Vector2, nuint, nuint, nuint, MDLGeometryType, Boolean, IMDLMeshBufferAllocator) |
使用指定的區段和幾何種類,從中 |
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
參數
- dimensions
- Vector3
- segments
- Vector2i
- geometryType
- MDLGeometryType
- inwardNormals
- Boolean
- hemisphereSegments
- Int32
- allocator
- IMDLMeshBufferAllocator
傳回
- 屬性
適用於
CreateCapsule(Single, Vector2, nuint, nuint, nuint, MDLGeometryType, Boolean, IMDLMeshBufferAllocator)
使用指定的區段和幾何種類,從中 dimensions
所包含的寬度、高度和深度,建立一個擷取容器。
[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
參數
- height
- Single
擷取者的高度。
- radii
- Vector2
擷取的弧度。
- radialSegments
- System.System.UIntPtr System.unativeint
要產生的星形線段數目。
- verticalSegments
- System.System.UIntPtr System.unativeint
在圓柱中產生的垂直線段數目。
- hemisphereSegments
- System.System.UIntPtr System.unativeint
在上限中產生的數目區段。
- geometryType
- MDLGeometryType
是否要建立三角形、四邊形或線條。
- inwardNormals
- Boolean
是否產生內指法線。
傳回
- 屬性