yt.visualization.plot_modifications.TriangleFacetsCallback

class yt.visualization.plot_modifications.TriangleFacetsCallback(triangle_vertices, plot_args=None)[source]

Intended for representing a slice of a triangular faceted geometry in a slice plot.

Uses a set of triangle_vertices to find all trangles the plane of a SlicePlot intersects with. The lines between the intersection points of the triangles are then added to the plot to create an outline of the geometry represented by the triangles.

Methods