Closed hephaisto closed 5 years ago
This could be good, but what about making it more general? If you want to submit a PR for something like:
def center_on_axes(bounding_box=None, axes=None):
, that would be usable via centered_shape = center_on_axes(bounding_box=[10,5,4], axes=[True, True, False])( my_shape)
, I'd take that gratefully.
I often use cubes that should be centered on one or two axes, but not the other ones. It would be nice to have something like this in the utilities:
This can be used as
to generate a cube that is centered on the Y-Axis, but not on X and Z.
This is basically finished except for the decision where to put it / how to name it I guess.