Add comment to add_joined_half_edges

This commit is contained in:
Hanno Braun 2024-08-12 20:43:04 +02:00
parent 36257235bc
commit d80414476a

View File

@ -106,6 +106,10 @@ impl JoinCycle for Cycle {
let half_edges = half_edges
.into_iter()
.circular_tuple_windows()
// If you're confused about the naming of `next_half_edge` and/or
// the relative order of `half_edge`/`next_half_edge`, please refer
// to the documentation of this method. This matches the order it
// expects half-edges in.
.map(|((next_half_edge, _), (half_edge, curve_geom))| {
let half_edge = HalfEdge::unjoined(core)
.update_curve(|_, _| half_edge.curve().clone(), core)