mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
added reference
This commit is contained in:
parent
72aae0e42c
commit
e67ba766c8
1 changed files with 3 additions and 1 deletions
4
vnf.scad
4
vnf.scad
|
@ -358,7 +358,9 @@ function vnf_volume(vnf) =
|
||||||
// vol = vnf_centroid(vnf);
|
// vol = vnf_centroid(vnf);
|
||||||
// Description:
|
// Description:
|
||||||
// Returns the centroid of the given manifold VNF. The VNF must describe a valid polyhedron with consistent face direction and
|
// 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) =
|
function vnf_centroid(vnf) =
|
||||||
let(
|
let(
|
||||||
vnf = vnf_triangulate(vnf),
|
vnf = vnf_triangulate(vnf),
|
||||||
|
|
Loading…
Reference in a new issue