axis_aligned_bounding_box

This cython module defines the AxisAlignedBoundingBox used internally by the GIANT cpu ray tracer for acceleration purpose.

Use

Typically a user doesn’t directly interact with the objects in this module, since it is primarily used internally by the ray tracer. There are a few use cases though, as documented in the class documentation.

Note that you cannot render an AxisAlignedBoundingBox in an image because the returns from the AxisAlignedBoundingBox.trace() method are not what is required. If you need to render a box consider using triangles to form the sides (the AxisAlignedBoundingBox.vertices attribute can be useful for this purpose).

Classes

AxisAlignedBoundingBox

This class provides an efficient implementation of an axis aligned bounding box.

Function

min_max_to_bounding_box

This function provides a python interface to the internal c function.