You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
shape_set_center() moves shape such that its centre is at the specified XYZ
shape_center() returns function capable of returning each centre coordinate
Roughly proposed behaviour:
Scale about centre
Rotate about centre
Remove flip; just use rotate
shape_set_center() to move_center() (a custom point of transformation that differs from "true" center of the shape cannot be specified)
shape_center() to get_center()
Notes:
A subtraction, by its nature, changes what the centre of the resulting shape is. Trying to set centre on the new solid may yield unexpected results. It could be up to the user to create higher level alignment or custom "point of transformation" abstractions by using their own calculations alongside provided functions like bounding_box()
It could also be up to the user to implement convenience functions such as scaling on all axes by the same factor, or setting the center of one shape to that of another