mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 07:17:27 +02:00
added reference
This commit is contained in:
2
vnf.scad
2
vnf.scad
@@ -359,6 +359,8 @@ function vnf_volume(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),
|
||||||
|
Reference in New Issue
Block a user