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:

  1. A function that computes the intersection between a given ray and a given primitive.
  2. A function that computes the centroid of the primitive type.
  3. A function that computes the axis-aligned bounding box of a given primitive.