honeybee_plus.radiance.material.glow module

Radiance Glow Material.

http://radsite.lbl.gov/radiance/refer/ray.html#Glow

class honeybee_plus.radiance.material.glow.Glow(name, red=0.0, green=0.0, blue=0.0, max_radius=0.0, modifier='void')[source]

Bases: honeybee_plus.radiance.material.materialbase.RadianceMaterial

Create glow material.

name

Material name as a string. The name should not have whitespaces or special characters.

red

A positive value for the Red channel of the glow (default: 0).

green

A positive value for the Green channel of the glow (default: 0).

blue

A positive value for the Blue channel of the glow (default: 0).

max_radius

a maximum radius for shadow testing (default: 0). If maxrad is zero, then the surface will never be tested for shadow, although it may participate in an interreflection calculation. If maxrad is negative, then the surface will never contribute to scene illumination. Glow sources will never illuminate objects on the other side of an illum surface. This provides a convenient way to illuminate local light fixture geometry without overlighting nearby objects.

blue = None

A positive value for the Blue channel of the glow

classmethod from_json(rec_json)[source]

Make radiance material from json {

“name”: “”, // Material Name “red”: float, // A positive value for the Red channel of the glow “green”: float, // A positive value for the Green channel of the glow “blue”: float, // A positive value for the Blue channel of the glow “radius”: float // Maximum radius for shadow testing

}

classmethod from_string(material_string, modifier=None)[source]

Create a Radiance material from a string.

If the material has a modifier the modifier material should also be partof the string or should be provided using modifier argument.

green = None

A positive value for the Green channel of the glow

max_radius = None

Maximum radius for shadow testing

red = None

A positive value for the Red channel of the glow

to_json()[source]

Translate radiance material to json {

“type”: “glow”, // Material type “name”: “”, // Material Name “red”: float, // A positive value for the Red channel of the glow “green”: float, // A positive value for the Green channel of the glow “blue”: float, // A positive value for the Blue channel of the glow “radius”: float // Maximum radius for shadow testing

}

class honeybee_plus.radiance.material.glow.WhiteGlow(name='white_glow')[source]

Bases: honeybee_plus.radiance.material.glow.Glow

A white glow material.

Use this material for multi-phase daylight studies.