rtcGetGeo...sHalfEdge(3)

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

πŸ’… rtcGetGeometryPreviousHalfEdge β€” bestie edition ✨

ok so we're in the Embree Ray Tracing Kernels 3 manual, and today's main character is rtcGetGeometryPreviousHalfEdge(3). buckle up πŸŽ€


🌸 NAME 🌸

rtcGetGeometryPreviousHalfEdge β€” it hands you the previous half edge. that's the whole job. she's employed, she's booked, she's serving 🫢


✨ SYNOPSIS ✨

#include <embree3/rtcore.h>

unsigned int rtcGetGeometryPreviousHalfEdge(
  RTCGeometry geometry,
  unsigned int edgeID
);

πŸ¦‹ DESCRIPTION πŸ¦‹

okok so rtcGetGeometryPreviousHalfEdge returns the ID of the previous half edge of the half edge you point at with the edgeID argument. like, the one that comes right before it in the loop πŸ”

for instance, in the example down below, the previous half edge of e6 is e5. no cap, that's literally it πŸ’€

⚠️ real talk: this function can only be used for subdivision geometries. do not try her anywhere else, she will not show up πŸ™ˆ

and here's the cute part: because all topologies of a subdivision geometry share the same face buffer, this function does not depend on the topology ID. one buffer, every topology, shared vibes, no drama πŸ’–


πŸ’€ EXIT STATUS πŸ’€

if it fails, an error code gets set, and you can go query that with rtcGetDeviceError. so if something's giving nothing, that's where the tea is β˜•


πŸ‘‘ SEE ALSO πŸ‘‘

  • [rtcGetGeometryFirstHalfEdge]
  • [rtcGetGeometryFace]
  • [rtcGetGeometryOppositeHalfEdge]
  • [rtcGetGeometryNextHalfEdge]
  • [rtcGetGeometryPreviousHalfEdge]

and that's the whole page bestie, go read your half edges 🌈

rtcGetGeo...sHalfEdge(3) β€” brought to you by Embree Ray Tracing Kernels 3, mwah, stan the ray tracing kernels πŸ’…βœ¨

πŸ“¦ where this page comes from