pygfx.geometries.box_geometry
- pygfx.geometries.box_geometry(width=1, height=1, depth=1, width_segments=1, height_segments=1, depth_segments=1)
Generate a box (rectangular cuboid).
Creates a box (a rectangular cuboid) of the given size that is centered around the local frame’s origin. Faces may be subdivided by specifying the number of segments along each axis. This will result in all faces parallel to the given axis to be evenly divided into the requested number of segments.
- Parameters:
- Returns:
box – A geometry object containing the requested box shape. Mathematically, it consists of a set of open orientable manifolds.
- Return type: