rtcGetGeo...eHalfEdge(3)

πŸ“¦ version 3.13.5, in epel 9, fedora 43, fedora 44

✨ 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