rtcGetGeo...eHalfEdge(3)
β¨ NAME β¨
rtcGetGeometryOppositeHalfEdge β returns the opposite half edge π«Ά
π SYNOPSIS π
#include <embree3/rtcore.h>
unsigned int rtcGetGeometryOppositeHalfEdge(
RTCGeometry geometry,
unsigned int topologyID,
unsigned int edgeID
);
π¦ DESCRIPTION π¦
okay bestie, so rtcGetGeometryOppositeHalfEdge hands you back the ID of the opposite half edge of the half edge you point at β that's your edgeID argument, living inside the topology you named with topologyID. Like, you tell it which edge, and it tells you which edge is on the other side. bestie behavior honestly π
so for example, in the following example the opposite half edge of e6 is e16. iconic pairing, no notes. β¨
heads up tho: an opposite half edge does not exist if the half edge you asked about has either no neighboring face, or more than 2 neighboring faces. and in those cases? the function just returns the same edge edgeID right back at you. so like, don't be shocked if you get your own input back β that's the vibe, that's the answer. π
also important: this function can only be used for subdivision geometries. and it depends on the topology, because the topologies of a subdivision geometry have different index buffers assigned. so yeah, topologyID is not decorative, it's doing real work. periodt. π
π EXIT STATUS π
if something goes wrong, an error code gets set, and you can go query it with rtcGetDeviceError. so if the numbers are giving nonsense, check there first bestie π
π SEE ALSO π
[rtcGetGeometryFirstHalfEdge][rtcGetGeometryFace][rtcGetGeometryOppositeHalfEdge][rtcGetGeometryNextHalfEdge][rtcGetGeometryPreviousHalfEdge]
okay that's the whole page, you're so welcome π this was rtcGetGeo...eHalfEdge(3) from Embree Ray Tracing Kernels 3 β go forth and traverse those half edges, you absolute main character π¦β¨
π¦ where this page comes from
- epel 9: embree 3.13.5-4.el9 Β· Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 Β· Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms