---
name: "rtcNewBVH"
section: "3embree4"
platform: "linux"
package: "embree"
version: "4.4.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rtcNewBVH/3embree4"
---

# rtcNewBVH(3embree4)

### NAME

-

  ```
  rtcNewBVH - creates a new BVH object
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  RTCBVH rtcNewBVH(RTCDevice device);
  ```

### DESCRIPTION

This function creates a new BVH object and returns a handle to this BVH. The BVH object is reference counted with an initial reference count of 1. The handle can be released using the `rtcReleaseBVH` API call.

The BVH object can be used to build a BVH in a user-specified format over user-specified primitives. See the documentation of the `rtcBuildBVH` call for more details.

### EXIT STATUS

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

### SEE ALSO

\[rtcRetainBVH\], \[rtcReleaseBVH\], \[rtcBuildBVH\]
