<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNGeometryElement/primitiveRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNGeometryElement(py)primitiveRange"
  },
  "title" : "primitiveRange"
}
-->

# primitiveRange

The range of primitives from the geometry element to render.

```
var primitiveRange: NSRange { get set }
```

## Discussion

The default value for this property is an <doc://com.apple.documentation/documentation/Foundation/NSRange-c.struct> whose location is <doc://com.apple.documentation/documentation/Foundation/NSNotFound-4qp9h> and length is zero, indicating that, by default, SceneKit renders the entire set of primitives specified by a geometry element’s data buffer.

You can change a geometry without redefining it by choosing to render only a subset of the primitives specified by a geometry element. To do so, set this property to a subrange of primitive indexes.

---

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)