yt.utilities.lib.primitives module¶
This file contains definitions of the various primitives that can be used by the Cython ray-tracer for unstructured mesh rendering. To define a new primitive type, you need to define a struct that represents it. You also need to provide three functions:
A function that computes the intersection between a given ray and a given primitive.
A function that computes the centroid of the primitive type.
A function that computes the axis-aligned bounding box of a given primitive.