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

Quality-of-life improvements #49

@klarh

Description

@klarh

Ideas from discussion with @bdice:

Automatically zoom (more appropriately, set size and pixel_scale) to fit the primitives contained in a scene

Solutions:

  • Add an auto_zoom() method to Scene
  • Add machinery to zoom property setters to auto-zoom when setting prim.zoom = 'auto'

Add a way to access commonly-used orientations (isometric/viewing each face/slightly-off-each-face)

Solutions:

  • Add a plato.rotations module that contains these by name
  • Add machinery to rotation property setters to convert string descriptions into appropriate quaternions

Easier way to access child primitives via Scene objects

Solutions:

  • Add __getitem__ to scenes that searches through the set of contained primitives for the given key (something like 'spheres'/'convex_polyhedra' -> the first primitive of the given type, 'spheres_2' for the second spheres object in the scene, and so on? Also allow querying by draw class/type?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions