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

Function rtcAttachGeometry

kernels/common/rtcore.cpp:2252–2265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2250 }
2251
2252 RTC_API unsigned int rtcAttachGeometry (RTCScene hscene, RTCGeometry hgeometry)
2253 {
2254 Scene* scene = (Scene*) hscene;
2255 Geometry* geometry = (Geometry*) hgeometry;
2256 RTC_CATCH_BEGIN;
2257 RTC_TRACE(rtcAttachGeometry);
2258 RTC_VERIFY_HANDLE(hscene);
2259 RTC_VERIFY_HANDLE(hgeometry);
2260 if (scene->device != geometry->device)
2261 throw_RTCError(RTC_ERROR_INVALID_ARGUMENT,"inputs are from different devices");
2262 return scene->bind(RTC_INVALID_GEOMETRY_ID,geometry);
2263 RTC_CATCH_END2(scene);
2264 return -1;
2265 }
2266
2267 RTC_API void rtcAttachGeometryByID (RTCScene hscene, RTCGeometry hgeometry, unsigned int geomID)
2268 {

Callers 15

test.cppFile · 0.85
createTriangulatedSphereFunction · 0.85
createGroundPlaneFunction · 0.85
device_initFunction · 0.85
addCubeFunction · 0.85
addGroundPlaneFunction · 0.85
initializeSceneFunction · 0.85
initializeSceneFunction · 0.85
addSphereFunction · 0.85
addTriangleCubeFunction · 0.85
addQuadCubeFunction · 0.85
addSubdivCubeFunction · 0.85

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected