From 7fc6bc46345f6c1f87395ff26d3153f0e71249dd Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 10 Apr 2025 12:13:39 +0200 Subject: [PATCH] Add doc comment --- experiments/2025-03-18/src/extra/triangulate.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/experiments/2025-03-18/src/extra/triangulate.rs b/experiments/2025-03-18/src/extra/triangulate.rs index 99042bb5c..fd387f1e0 100644 --- a/experiments/2025-03-18/src/extra/triangulate.rs +++ b/experiments/2025-03-18/src/extra/triangulate.rs @@ -85,6 +85,15 @@ fn half_edges_to_points(face: &Face, target: &mut Vec) { ) } +/// # Approximate an half-edge +/// +/// The approximation of an half-edge is the approximation of its curve within +/// the boundary defined by the half-edge's start and end vertices, plus the +/// position of the start vertex. +/// +/// By including the start vertex and not the end vertex, a whole chain of +/// half-edges can be approximated by simply appending the approximations of +/// each half-edge, without the necessity of any deduplication of points. fn approximate_half_edge( HalfEdgeWithEndVertex { half_edge,