Skip to main content

center()

Translate a geometry so that its center of mass is at the origin.

Usage

Source

center(
    geo,
    *,
    in_place=False,
)

Parameters

geo: Geometry

Geometry.

in_place: bool = False
If True, modify geo instead of returning a copy.

Returns

Geometry
The centered geometry.