From e67ba766c89936d561763df2fa1efe5a88f409f8 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sat, 21 Mar 2020 10:58:57 -0400 Subject: [PATCH] added reference --- vnf.scad | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vnf.scad b/vnf.scad index b0471c4..d8e73bf 100644 --- a/vnf.scad +++ b/vnf.scad @@ -358,7 +358,9 @@ function vnf_volume(vnf) = // vol = vnf_centroid(vnf); // Description: // Returns the centroid of the given manifold VNF. The VNF must describe a valid polyhedron with consistent face direction and -// no holes; otherwise the results are undefined. +// no holes; otherwise the results are undefined. + +// Algorithm from: https://wwwf.imperial.ac.uk/~rn/centroid.pdf function vnf_centroid(vnf) = let( vnf = vnf_triangulate(vnf),