Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

rtcDetachGeometry using RTCGeometry

Burr__Adam
Beginner
387 Views

Is there a reason that rtcDetachGeometry that accepts a geomID int instead of an RTCGeometry pointer? It seems to break the pattern set by rtcAttachGeometry/rtcAttachGeometryByID but maybe I'm misunderstanding the API. I'm working with a dynamic scene and I'm retaining the RTCGeometry but not the geomID, per docs:

Best store the geometry handle inside your scene representation (and release it in the destructor) and access the handle directly instead of calling rtcGetGeometry.


It wouldn't be a big deal to retain the geomID as well if necessary, this question is more out of curiosity. Thanks!

0 Kudos
1 Solution
SvenW_Intel
Moderator
387 Views

As I think about it I cannot give you a good reason why it is that way. We will add a second call where you can also provide the RTCGeometry.

View solution in original post

1 Reply
SvenW_Intel
Moderator
388 Views

As I think about it I cannot give you a good reason why it is that way. We will add a second call where you can also provide the RTCGeometry.

Reply