| 1721 | } |
| 1722 | |
| 1723 | RTC_API void rtcSetGeometryUserPrimitiveCount(RTCGeometry hgeometry, unsigned int userPrimitiveCount) |
| 1724 | { |
| 1725 | Geometry* geometry = (Geometry*) hgeometry; |
| 1726 | RTC_CATCH_BEGIN; |
| 1727 | RTC_TRACE(rtcSetGeometryUserPrimitiveCount); |
| 1728 | RTC_VERIFY_HANDLE(hgeometry); |
| 1729 | |
| 1730 | if (unlikely(geometry->getType() != Geometry::GTY_USER_GEOMETRY)) |
| 1731 | throw_RTCError(RTC_ERROR_INVALID_OPERATION,"operation only allowed for user geometries"); |
| 1732 | |
| 1733 | geometry->setNumPrimitives(userPrimitiveCount); |
| 1734 | RTC_CATCH_END2(geometry); |
| 1735 | } |
| 1736 | |
| 1737 | RTC_API void rtcSetGeometryTimeStepCount(RTCGeometry hgeometry, unsigned int timeStepCount) |
| 1738 | { |
no test coverage detected