Skip to content

Feature: Names used by packages built on BMO are public #181

Open

Description

@StackEnjoyer

Problem

  • BeamletOpticsGUI reads solved beams and objects through names that are neither exported nor public (checked on master 008144c), listed in the tasks
  • These may change in any release without notice, so the GUI pins BMO tightly and breaks on internal refactorings

Tasks

  • Getters of solved beams and hits are public: intersection, hit_point, hits, object, beams, optical_path_length, intersect3d
  • Getters of objects are public: objects, shape, radius, refractive_index, transmittance, reflectance, numerical_aperture, beam_waist, angle3d
  • Traits are public: shape_trait_of, AbstractShapeTrait, SingleShape, MultiShape, kinematic_trait_of, Movable, Oriented, Directed
  • Abstract types are public: AbstractObject, AbstractSystem, AbstractShape, AbstractBeam, AbstractBeamGroup, AbstractRay, AbstractDetector, AbstractBeamsplitter, AbstractPlateBeamsplitter, AbstractJonesPolarizer, AbstractRefractiveOptic, AbstractReflectiveOptic
  • Hit types are public: Intersection, AbstractRayHit, RayHit, PolarizedRayHit, AbstractDetectorHit, AbstractBeamletHit
  • Each has a docstring in the developer API that states what it returns for every supported type

Notes

  • Already public: the render handle protocol, bounding_sphere_of and the sphere types, PathSegment, the sampling types, AbstractObjectGroup
  • Out of scope: exporting them
  • Open question: is ObjectOrGroup (a Union) worth a public name too?

Activity

  1. self-assigned this
    on Oct 25, 2026
  2. added
    enhancement
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions