Center of Mass (Mesh) (Alpha)¶
Functionality¶
Calculate centers of mass every input mesh (with mass verts or density of materials) and calculate total center of mass:
By edges and density:
Extrapolates lists of mass of vertices:
Using of modifier stack:
Inputs¶
Vertices - or a nested list of vertices that represent separate objects.
Edges - Edges of meshes.
Polygons - Polygons of meshes.
Mass of vertices - Calculate of centers of mass only with vertices (ignore edges and faces). Default value is 1 mass (ex. kg, ton etc.).
Density - Calculate of centers of mass only with edges or faces and ignore vertices. Default value is 1 mass/volume.
Parameters¶
Skip unmanifold centers - True: If some meshes cannot be used to calc centers of mass then skip them. False - show exception
Center mode - select mode to calculate center of mass (Vertices, edges, faces or volumes)
Triangulation - used only for Faces or Volumes mode. Calculations of center of mass do triangulations before calculations.
Output¶
Vertices - Vertices of result meshes
Edges - Edges of result meshes (Triangulated after Face or Volume mode)
Faces - Faces of result meshes (Triangulated after Face or Volume mode)
Center of mass of objects - Center of mass of every input meshes that can be calculated
Total center - If there are any center of mass then this parameter contains center of mass of all meshes (depends of input params Mass of vertices or Density)
Counts, Lengths, Areas, Volumes - params of meshes
Total Counts, Total Lengths, Total Areas, Total Volumes - Total params of meshes
Masses - List of mass of every input meshes (Vertices mode: total summa of vertices mass, Edges mode: multiply length*density, Faces mode: multiply areas*density, Volumes mode: multiply volumes*density)
Mass - Summary mass of all calculated meshes
Mask - Mask of calculated objects. Example: if Mode is Volume and mashes are [cube1, plane1, vertex1, cube2] then mask is [ True, False, False, True]
Examples¶
TODO