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

# rtcSetGeometryTessellationRate(3)

### NAME

-

  ```
  rtcSetGeometryTessellationRate - sets the tessellation rate of the
    geometry
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  void rtcSetGeometryTessellationRate(
    RTCGeometry geometry,
    float tessellationRate
  );
  ```

### DESCRIPTION

The `rtcSetGeometryTessellationRate` function sets the tessellation rate (`tessellationRate` argument) for the specified geometry (`geometry` argument). The tessellation rate can only be set for flat curves and subdivision geometries. For curves, the tessellation rate specifies the number of ray-facing quads per curve segment. For subdivision surfaces, the tessellation rate specifies the number of quads along each edge.

### EXIT STATUS

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

### SEE ALSO

\[RTC\_GEOMETRY\_TYPE\_CURVE\], \[RTC\_GEOMETRY\_TYPE\_SUBDIVISION\]
