- class eradiate.scenes.atmosphere.PlaneParallelGeometry(width=AUTO)#
Plane parallel geometry.
A plane parallel atmosphere is translation-invariant in the X and Y directions. However, Eradiate represents it with a finite 3D geometry consisting of a cuboid. By default, the cuboid’s size is computed automatically; however, it can also be forced by assigning a value to the width field.
- classmethod convert(value)#
Attempt conversion of a value to a
value – Value to attempt conversion of. If a dictionary is passed, its
"type"key is used to route its other entries as keyword arguments to the appropriate subtype’s constructor. If a string is passed, this method calls itself with the parameter
result– If value is a dictionary, the constructed
AtmosphereGeometryinstance is returned. Otherwise, value is returned.
ValueError – A dictionary was passed but the requested type is unknown.