Solid.trace

giant.ray_tracer.shapes.solid:

Solid.trace()

This method computes the intersections between a series of rays and the geometry defined by the class, returning the results as a numpy array with type INTERSECT_DTYPE.

Parameters

rays (Rays) – The rays to trace

Returns

The intersection results as a length n numpy array of type INTERSECT_DTYPE

Return type

np.ndarray