RayZaler 0.1
The free opto-mechanical simulation framework
|
Flat obstacle to the passage of light.
Specialization of OpticalElement
Obstruction is an element that can be used to model arbitrary 2D obscurations in the light path. Usually, Obstruction is instanced with the path of a grayscale PNG image file, in which the intensity of each pixel encodes a transmission probability in that location: shades of gray vary the transmission from no transmission (black) to full transmission (white).
Although there is freedom in the choice of a bit depth of the image, RayZaler will only take into account the 16 most significant bits of the pixel value.
If no path is specified, Obstruction represents a perfectly circular opaque disc. In any case, properties radius
or diameter
can be used to normalize the largest dimension (width or height) of the obstruction shape to a physical size.
Name | Description | Default | Units |
---|---|---|---|
radius | Radius or half-length of the largest obstacle dimension | 0.025 | m |
diameter | Diameter or length of the lrgest obstacle dimension | 0.05 | m |
file | Path to the PNG file containing the shape of the obstace | ||
blue | Blue channel of the solid color of the element | 0.25 | 0..1 |
green | Green channel of the solid color of the element | 0.25 | 0..1 |
red | Red channel of the solid color of the element | 0.25 | 0..1 |
shiny | Specular component intensity | 63 | 0..127 |
specBlue | Blue channel of the specular color of the element | 0.25 | 0..1 |
specGreen | Green channel of the specular color of the element | 0.25 | 0..1 |
specRed | Red channel of the specular color of the element | 0.25 | 0..1 |