[Ruby] Geom::BoundingBox#[] alias for #corner() method


#1

Please alias Geom::BoundingBox#corner() as Geom::BoundingBox#[].

Example after selecting a component instance:

mod = Sketchup::active_model
ents = mod.entities
c = mod.selection[0]
b = c.bounds
#
ents.add_face( b[0], b[1], b[3], b[2] )

Currently I have to define a singleton method (where the comment is,) like:

def b.[](arg); self.corner(arg); end

It is more intuitive that the [] method accesses the box’s corners.