artist.scene.rays
Classes
Initialize the |
Module Contents
- class artist.scene.rays.Rays(ray_directions: torch.Tensor, ray_magnitudes: torch.Tensor)
Initialize the
Raysclass.The rays in
ARTISThave a direction vector and a magnitude. They are used for ray tracing. The direction vector determines the direction of the rays, i.e., the path they are taking through space. The magnitude is important for considering atmospheric losses and cloud coverage. If a ray travels through a cloud, the magnitude changes.Parameters
- ray_directionstorch.Tensor
The direction of the rays. Tensor of shape [number_of_active_heliostats, number_of_rays, number_of_combined_surface_normals_all_facets, 4].
- ray_magnitudestorch.Tensor
The magnitudes of the rays. Tensor of shape [number_of_active_heliostats, number_of_rays, number_of_combined_surface_normals_all_facets].
Raises
- ValueError
If the shapes of the ray directions does not match the shapes of the ray magnitudes.