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

# rtcInvokeIntersectFilterFromGeometry(3embree4)

### NAME

-

  ```
  rtcInvokeIntersectFilterFromGeometry - invokes the
    intersection filter function from the geometry
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  void rtcInvokeIntersectFilterFromGeometry(
    const struct RTCIntersectFunctionNArguments* args,
    const struct RTCFilterFunctionNArguments* filterArgs
  );
  ```

### DESCRIPTION

The `rtcInvokeIntersectFilterFromGeometry` function can be called inside an `RTCIntersectFunctionN` user geometry callback function to invoke the intersection filter registered to the geometry. For this an `RTCFilterFunctionNArguments` structure must be created (see `rtcSetGeometryIntersectFilterFunction`) which basically consists of a valid mask, a hit packet to filter, the corresponding ray packet, and the packet size. After the invocation of `rtcInvokeIntersectFilterFromGeometry`, only rays that are still valid (valid mask set to -1) should update a hit.

### EXIT STATUS

For performance reasons this function does not do any error checks, thus will not set any error flags on failure.

### SEE ALSO

\[rtcInvokeOccludedFilterFromGeometry\], \[rtcSetGeometryIntersectFunction\]
