| 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 | { |
no test coverage detected