This SOP computes the centroid of each piece of the geometry, or the geometry as a whole. The default behavior is to create a point at the location of each centroid, but the centroid location can also be recorded as an attribute on the geometry.
This SOP can be useful for building constraint networks or converting geometry to a point-based representation.
Specifies which elements of the geometry to compute the centroid for.
Compute the centroid of each primitive.
Compute the centroid for each unique value of the Piece Attribute.
Compute the centroid of the entire geometry.
The name of a string or integer attribute.
Specifies whether the pieces consist of primitives or points.
Specifies how the centroid is computed.
Center of Mass
Computes the center of mass of the geometry in the same manner as the Bullet solver.
Bounding Box Center
Computes the center of the geometry’s bounding box.
Specifies whether to create a point at the center of each piece, or to record the centroid as an attribute on the geometry.
Specifies the name of the attribute to create when Output is Attribute.
Specifies a list of attributes to transfer from the Piece Elements to the generated points. This can also specify detail attributes to transfer to the generated geometry.
Specifies a list of groups to transfer from the Piece Elements to the generated points.