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

Function rtcAttachGeometryByID

kernels/common/rtcore.cpp:2267–2280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2265 }
2266
2267 RTC_API void rtcAttachGeometryByID (RTCScene hscene, RTCGeometry hgeometry, unsigned int geomID)
2268 {
2269 Scene* scene = (Scene*) hscene;
2270 Geometry* geometry = (Geometry*) hgeometry;
2271 RTC_CATCH_BEGIN;
2272 RTC_TRACE(rtcAttachGeometryByID);
2273 RTC_VERIFY_HANDLE(hscene);
2274 RTC_VERIFY_HANDLE(hgeometry);
2275 RTC_VERIFY_GEOMID(geomID);
2276 if (scene->device != geometry->device)
2277 throw_RTCError(RTC_ERROR_INVALID_ARGUMENT,"inputs are from different devices");
2278 scene->bind(geomID,geometry);
2279 RTC_CATCH_END2(scene);
2280 }
2281
2282 RTC_API void rtcDetachGeometry (RTCScene hscene, unsigned int geomID)
2283 {

Callers 6

runMethod · 0.85
device_initFunction · 0.85
commitMethod · 0.85
ConvertSceneFunction · 0.85
createInstanceFunction · 0.85
addInstancesFunction · 0.85

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected