Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Geometry center

Calculates the center of the input primitives.


Inputs

  • geometry

    • Accepts a single geometry connection (unless the SHIFT key is held).
  • mode

    • Sets the mode in which this node calculates the center of the input primitives. This can be center (the midpoint of the geometry bounds) or centroid (the average of the points within the geometry).
  • output opposite

    • Sets whether to invert the output geometry center or not.

Outputs

  • center

    • The vector value of the calculated geometry center of all input primitives.
  • centerX

    • The x value of the calculated geometry center of all input primitives.
  • centerY

    • The y value of the calculated geometry center of all input primitives.
  • centerZ

    • The z value of the calculated geometry center of all input primitives.
  • primitive centers

    • The list of vector values of the geometry centers of each individual input primitive.

Notes

  • Other names for this node include: GeometryCentroid, Centroid, and Barycenter.

Examples