---
name: "rtcSetGeometryUserPrimitiveCount"
section: "3"
platform: "linux"
package: "libembree-dev"
version: "4.3.3+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtcSetGeometryUserPrimitiveCount"
---

# rtcSetGeometryUserPrimitiveCount(3)

### NAME

-

  ```
  rtcSetGeometryUserPrimitiveCount - sets the number of primitives
    of a user-defined geometry
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  void rtcSetGeometryUserPrimitiveCount(
    RTCGeometry geometry,
    unsigned int userPrimitiveCount
  );
  ```

### DESCRIPTION

The `rtcSetGeometryUserPrimitiveCount` function sets the number of user-defined primitives (`userPrimitiveCount` parameter) of the specified user-defined geometry (`geometry` parameter).

### EXIT STATUS

On failure an error code is set that can be queried using `rtcGetDeviceError`.

### SEE ALSO

\[RTC\_GEOMETRY\_TYPE\_USER\]
