honeybee_plus.radiance.geometry.ring module

Radiance Ring.

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

class honeybee_plus.radiance.geometry.ring.Ring(name, center_pt=None, radius_inner=None, surface_normal=None, radius_outer=None, modifier=None)[source]

Bases: honeybee_plus.radiance.geometry.geometrybase.RadianceGeometry

Radiance Ring.

A ring is a circular disk given by its center, surface normal, and inner and outer radii:

mod ring id 0 0 8

xcent ycent zcent xdir ydir zdir r0 r1

center_pt = None
classmethod from_json(geo_json)[source]

Make radiance material from json {

“type”: “ring”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “center_pt”: {“x”: float, “y”: float, “z”: float}, “surface_normal”: {“x”: float, “y”: float, “z”: float}, “radius_inner”: float, “radius_outer”: float

}

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

Create a Radiance geometry from a string.

If the geometry has a modifier the modifier material should also be part of the string or should be provided using modifier argument.

radius_inner = None
radius_outer = None
surface_normal = None
to_json()[source]

Translate radiance material to json {

“type”: “ring”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “center_pt”: {“x”: float, “y”: float, “z”: float}, “surface_normal”: {“x”: float, “y”: float, “z”: float}, “radius_inner”: float, “radius_outer”: float

}