honeybee_plus.radiance.material.bsdf module

Radiance BSDF Material.

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

class honeybee_plus.radiance.material.bsdf.BSDF(xmlfile, name=None, up_orientation=None, thickness=None, modifier='void')[source]

Bases: honeybee_plus.radiance.material.materialbase.RadianceMaterial

Radiance BSDF material.

xmlfile

Path to an xml file. Data will not be cached in memory.

up_orientation

(x, y ,z) vector that sets the hemisphere that the BSDF material faces. For materials that are symmetrical about the HBSrf plane (like non-angled venitian blinds), this can be any vector that is not perfectly normal to the HBSrf. For asymmetrical materials like angled veneitan blinds, this variable should be coordinated with the direction the HBSrfs are facing. The default is set to (0.01, 0.01, 1.00), which should hopefully not be perpendicular to any typical HBSrf.

thickness

Optional number to set the thickness of the BSDF material. (default: 0).

modifier

Material modifier (Default: “void”).

property angle_basis

XML file angle basis.

Klems full, Klems half, Klems Quarter or tensor tree

classmethod from_file(xmlfile)[source]
classmethod from_json(json_data)[source]

Make radiance material from json.

{

“modifier”: “”, // material modifier (Default: “void”) “type”: “custom”, // Material type “base_type”: “type”, // Material type “name”: “”, // Material Name “values”: {} // values

}

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 part of the string or should be provided using modifier argument.

to_json()[source]

Translate radiance primitive to json {

“modifier”: “”, // primitive modifier (Default: “void”) “type”: “custom”, // primitive type “base_type”: “type”, // primitive type “name”: “”, // primitive Name “values”: {} // values

}