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

Function rtcSetGeometryUserPrimitiveCount

kernels/common/rtcore.cpp:1723–1735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 13

addUserGeometrySphereFunction · 0.85
addUserGeometryEmptyMethod · 0.85
runMethod · 0.85
createLazyObjectFunction · 0.85
createAnalyticalSpheresFunction · 0.85
createPointsFunction · 0.85
rebuild_bvhFunction · 0.85
createInstanceFunction · 0.85
createTriangulatedSphereFunction · 0.85
createClothSheetFunction · 0.85
createInstanceFunction · 0.85
createAnalyticalSphereFunction · 0.85

Calls 2

getTypeMethod · 0.45
setNumPrimitivesMethod · 0.45

Tested by

no test coverage detected