half-edge.c (401B)
1 2 3 #include "half-edge.h" 4 5 // NOTE: end = start(next(e)) 6 7 inline u32 he_start(struct half_edge *he) 8 { 9 return he->start; 10 } 11 12 inline struct half_edge *he_next(struct half_edge *edges, struct half_edge *he) 13 { 14 return &edges[he->next]; 15 } 16 17 inline u32 he_end(struct half_edge *edges, struct half_edge *he) 18 { 19 return he_start(he_next(edges, he)); 20 } 21 22 inline u32 he_prev_vert(struct half_edge *he) 23 { 24 }