mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-01 17:03:19 +02:00
more fixes
This commit is contained in:
2
vnf.scad
2
vnf.scad
@@ -877,7 +877,7 @@ function vnf_area(vnf) =
|
||||
/// The centroid of a tetrahedron is the average of its vertices.
|
||||
/// The centroid of the total is the volume weighted average.
|
||||
function _vnf_centroid(vnf,eps=EPSILON) =
|
||||
assert(is_vnf(vnf) && len(vnf[0])!=0 )
|
||||
assert(is_vnf(vnf) && len(vnf[0])!=0 && len(vnf[1])!=0,"Invalid or empty VNF given to centroid")
|
||||
let(
|
||||
verts = vnf[0],
|
||||
pos = sum([
|
||||
|
Reference in New Issue
Block a user