RenderKit / embree

Embree ray tracing kernels repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtcNewGeometry(device, RTC_GEOMETRY_TYPE_SPHERE_POINT) returns NULL

karkinos-krakatoa opened this issue · comments

Hello,

I hope its not me being dense. But I am having a hard time tracking an issue with a new geometry creation of RTC_GEOMETRY_TYPE_SPHERE_POINT. The code below returns NULL
RTCGeometry pointCloudGeom = rtcNewGeometry(device, RTC_GEOMETRY_TYPE_SPHERE_POINT)

I have tested my current code with different geometry types like RTC_GEOMETRY_TYPE_TRIANGLE and I can confirm that it works. Is there an issue with RTC_GEOMETRY_TYPE_SPHERE_POINT or am I missing something ? Thanks

ps : After checking again, it seems to only work with RTC_GEOMETRY_TYPE_TRIANGLE. Any other geometry type returns a NULL

Yes, it was me being dense. This was the issue --
set(EMBREE_GEOMETRY_POINT OFF CACHE BOOL " " FORCE)

Smh. Forgive me. Closing this issue.