Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Transformation/centre changes #33

@Cloud7050

Description

@Cloud7050

Current behaviour:

  • Scale moves about origin
  • Rotate moves about origin
  • Flip moves about origin
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions