RenderKit / embree

Embree ray tracing kernels repository.
Apache License 2.0
2.32k stars 383 forks source link

rtcNewGeometry(device, RTC_GEOMETRY_TYPE_SPHERE_POINT) returns NULL #445

Closed karkinos-krakatoa closed 1 year ago

karkinos-krakatoa commented 1 year ago

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

karkinos-krakatoa commented 1 year ago

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

Smh. Forgive me. Closing this issue.