RayTraces

class raytracing.RayTraces(rayTraces=None)

Bases: object

A collection of ray traces from tracing multiple input rays.

When many rays are propagated through an optical system (e.g. via traceManyNative), the result is a list of traces — one per input ray. This class wraps that list with the same interface as CompactRaytraces.

Parameters:

rayTraces (list of RayTrace, optional) – The individual traces to collect.

property lastRays

The last ray from each trace, as a Rays collection.

Methods

__init__([rayTraces])

Inherited Methods

Attributes

lastRays

The last ray from each trace, as a Rays collection.