306 w = p0 * cross(p1, p2)
309 [w, (p0 + p1 + p2) * w]
312 sv =
sum([
for (t = terms) t[0]]),
313 sg =
sum([
for (t = terms) t[1]]),
function sum(v, i1, i2)
Compute the sum of a list of numbers.
function polygon3d_area(c, p, n)
Compute the area of a polygon in a Euclidean 3d-space.
function polyhedron_area(c, f)
Compute the surface area of a polyhedron in a Euclidean 3d-space.
function polyhedron_tf_volume(c, f)
Compute the signed volume of a triangulated polyhedron in a Euclidean 3d-space.
function polyhedron_tf_centroid(c, f)
Compute the center of mass of a triangulated polyhedron in a Euclidean 3d-space.