Returns the cumulative (weighted) surface area of the polygons in the mesh.
Note: The input polygonal mesh is assumed to contain only planar, convex polygons.
Array of polygonal vertices [3, n].
Polygonal mesh connectivity array.
Array of input auxiliary data (one value per vertex). If present, these values are used to weight a vertex for the purpose of the area computation. The surface area integral will linearly interpolate these values over the surface of each triangle. The default weight is 1.0 which results in the basic polygon area.
If this keyword is present, it will return a three element float vector which corresponds to the first order moments computed with respect to the X, Y and Z axis. The computation is:
where a is the (weighted) area of the triangle and c is the centroid of the triangle, thus
yields the (weighted) centroid of the polygon mesh.
This page has no comments yet. Be the first one!