MCPcopy Create free account
hub / github.com/RenderKit/embree / setOcclusionFilterFunctionN

Method setOcclusionFilterFunctionN

kernels/common/geometry.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void Geometry::setOcclusionFilterFunctionN (RTCFilterFunctionN filter)
151 {
152 if (!(getTypeMask() & (MTY_TRIANGLE_MESH | MTY_QUAD_MESH | MTY_CURVES | MTY_SUBDIV_MESH | MTY_USER_GEOMETRY | MTY_GRID_MESH)))
153 throw_RTCError(RTC_ERROR_INVALID_OPERATION,"filter functions not supported for this geometry");
154
155 occlusionFilterN = filter;
156 }
157
158 void Geometry::setPointQueryFunction (RTCPointQueryFunction func)
159 {

Callers 1

Calls 1

getTypeMaskFunction · 0.85

Tested by

no test coverage detected