eradiate.scenes.atmosphere.AtmosphereGeometry
eradiate.scenes.atmosphere.AtmosphereGeometry#
- class eradiate.scenes.atmosphere.AtmosphereGeometry[source]#
Bases:
object
Base class defining the geometry of the atmosphere.
- classmethod convert(value)[source]#
Attempt conversion of a value to a
AtmosphereGeometry
subtype.- Parameters
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{"type": value}
.- Returns
result
– If value is a dictionary, the constructedAtmosphereGeometry
instance is returned. Otherwise, value is returned.- Raises
ValueError – A dictionary was passed but the requested type is unknown.