| 18 | } |
| 19 | |
| 20 | void Instance::commit() |
| 21 | { |
| 22 | group = getParamObject<Group>("group", groupAPI.ptr); |
| 23 | if (!group) |
| 24 | throw std::runtime_error(toString() + " received NULL 'group'"); |
| 25 | |
| 26 | motionTransform.readParams(*this); |
| 27 | |
| 28 | // Initialize shared structure |
| 29 | getSh()->group = group->getSh(); |
| 30 | getSh()->xfm = motionTransform.transform; |
| 31 | getSh()->rcp_xfm = rcp(getSh()->xfm); |
| 32 | getSh()->motionBlur = motionTransform.motionBlur; |
| 33 | getSh()->userID = getParam<uint32>("id", RTC_INVALID_GEOMETRY_ID); |
| 34 | } |
| 35 | |
| 36 | box3f Instance::getBounds() const |
| 37 | { |
nothing calls this directly
no test coverage detected