moderngl-window
moderngl-window copied to clipboard
wishes for mglw.geometry module
A few wishes I have for the geometry module:
-
quad_2d
should probably come with anormal
attribute to set the direction of the plane -
quad_2d
has apos
attribute,cube
acenter
attribute.bbox
andsphere
have neither -> select one consistent name and add it to all objects - Rename to either
create_xxx
orXxx
(create_sphere or Sphere) for a more pythonic interface - Rename cube to cuboid/box because it's not a cube
- cube docs are wrong, they talk about
width
,height
, anddepth
keywords but that info is insize
Feel free to add other feedback and I will create a PR when I have some free time.
We can't really rename things, but the other suggestions are reasonable. Instead of renaming there can be alias methods, but let's keep that within reason.