<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderContextStandalone/makeMeshPart(resource:indexOffset:indexCount:primitive:windingOrder:bounds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer31LowLevelRenderContextStandaloneC12makeMeshPart8resource11indexOffset0M5Count9primitive12windingOrder6boundsAA0dejK0CAA0deJ8ResourceC_S2iSo16MTLPrimitiveTypeVSo10MTLWindingVAA17BoundingSphereBoxVtKF"
  },
  "title" : "makeMeshPart(resource:indexOffset:indexCount:primitive:windingOrder:bounds:)"
}
-->

# makeMeshPart(resource:indexOffset:indexCount:primitive:windingOrder:bounds:)

Creates a mesh part that selects a contiguous range of indices from a mesh resource.

```
final func makeMeshPart(resource: LowLevelMeshResource, indexOffset: Int, indexCount: Int, primitive: MTLPrimitiveType, windingOrder: MTLWinding, bounds: BoundingSphereBox) throws -> LowLevelMeshPart
```

## Parameters

`resource`

The mesh resource whose index and vertex buffers this part draws from.

`indexOffset`

The byte offset of the first index within the index buffer.

`indexCount`

The number of indices to use for this part.

`primitive`

The geometric primitive type to use when rendering.

`windingOrder`

The winding order that identifies front-facing polygons.

`bounds`

The model-space bounding volume for this part.

## Return Value

A newly created [`LowLevelMeshPart`](/documentation/RealityKit/LowLevelMeshPart).

## Discussion> Throws: An error if the index range falls outside the resource’s index buffer.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)