One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

LowLevelMesh.Part

struct · iOS 18.0+ · SDK 27.1

struct Part

An object that describes a range of primitives to display, and their material index.

Members (11)

get · iOS 18.0+

indexCount

TypeScript
get indexCount(): Promise<number>
Swift declaration
var indexCount: Int

The number of indices to use for this part.

set · iOS 18.0+

indexCount

TypeScript
setIndexCount(value: number): Promise<void>
Swift declaration
var indexCount: Int

The number of indices to use for this part.

init · iOS 18.0+

init

TypeScript
static init(indexOffset: number, indexCount: number, topology: _Metal_MTLPrimitiveType, materialIndex: number, bounds: BoundingBox): Promise<LowLevelMesh_Part>
Swift declaration
init(indexOffset: Int = 0, indexCount: Int = 0, topology: MTLPrimitiveType = .triangle, materialIndex: Int = 0, bounds: BoundingBox)

Creates a low-level mesh part. - Parameters: - indexOffset: The offset, in bytes, of the first index. - indexCount: The number of indices to use for this part. - topology: The geometric primitive to use when rendering this part. - materialIndex: The material index this part associates with. - bounds: The model-space bounding box of the part.

get · iOS 18.0+

indexOffset

TypeScript
get indexOffset(): Promise<number>
Swift declaration
var indexOffset: Int

The offset, in bytes, of the first index.

set · iOS 18.0+

indexOffset

TypeScript
setIndexOffset(value: number): Promise<void>
Swift declaration
var indexOffset: Int

The offset, in bytes, of the first index.

get · iOS 18.0+

materialIndex

TypeScript
get materialIndex(): Promise<number>
Swift declaration
var materialIndex: Int

The material index this part associates with.

set · iOS 18.0+

materialIndex

TypeScript
setMaterialIndex(value: number): Promise<void>
Swift declaration
var materialIndex: Int

The material index this part associates with.

get · iOS 18.0+

bounds

TypeScript
get bounds(): Promise<BoundingBox>
Swift declaration
var bounds: BoundingBox

The model-space bounding box of this part. RealityKit uses this bounding box for culling the mesh against the active camera. Take care to maintain the bounds of each mesh part so that it completely contains the part's geometry. Otherwise, RealityKit may not render your meshes correctly. - Note: On visionOS, if these bounds don't completely contain the part's geometry, you might see pixelated passthrough artifacts on the mesh due to inaccurate depth reprojection. Provide a correct bounding box for your virtual content, or if the mesh is animated by a shader, make the bounding box more conservative.

set · iOS 18.0+

bounds

TypeScript
setBounds(value: BoundingBox): Promise<void>
Swift declaration
var bounds: BoundingBox

The model-space bounding box of this part. RealityKit uses this bounding box for culling the mesh against the active camera. Take care to maintain the bounds of each mesh part so that it completely contains the part's geometry. Otherwise, RealityKit may not render your meshes correctly. - Note: On visionOS, if these bounds don't completely contain the part's geometry, you might see pixelated passthrough artifacts on the mesh due to inaccurate depth reprojection. Provide a correct bounding box for your virtual content, or if the mesh is animated by a shader, make the bounding box more conservative.

get · iOS 18.0+

topology

TypeScript
get topology(): Promise<_Metal_MTLPrimitiveType>
Swift declaration
var topology: MTLPrimitiveType

The geometric primitive to use when rendering this part.

set · iOS 18.0+

topology

TypeScript
setTopology(value: _Metal_MTLPrimitiveType): Promise<void>
Swift declaration
var topology: MTLPrimitiveType

The geometric primitive to use when rendering this part.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →