honeybee_plus.radiance.geometry.polygon module

Radiance Polygon.

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

class honeybee_plus.radiance.geometry.polygon.Polygon(name, points, modifier=None)[source]

Bases: honeybee_plus.radiance.geometry.geometrybase.RadianceGeometry

Radiance Polygon.

A polygon is given by a list of three-dimensional vertices, which are ordered counter-clockwise as viewed from the front side (into the surface normal). The last vertex is automatically connected to the first. Holes are represented in polygons as interior vertices connected to the outer perimeter by coincident edges (seams).

mod polygon id 0 0 3n

x1 y1 z1 x2 y2 z2 … xn yn zn

classmethod from_json(geo_json)[source]

Make radiance material from json {

“type”: “polygon”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “points”: [{“x”: float, “y”: float, “z”: float}, …]

}

classmethod from_string(geometry_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 material to json {

“type”: “polygon”, // Geometry type “modifier”: {} or void, // Modifier “name”: “”, // Geometry Name “points”: [{“x”: float, “y”: float, “z”: float}, …]

}