extrude.block.center

Syntax

v = extrude.block.center(bp)

Get the center point of a block. For regular (3- or 4-sided) blocks returns the coordinates of the geometric center of the block and for irregular blocks return the geometric center of the largest element in the block.

Returns:v - 2D vector
Arguments:bp - block pointer