honeybee_plus.radiance.geometry.cone module

Radiance Cone.

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

class honeybee_plus.radiance.geometry.cone.Cone(name, center_pt_start=None, radius_start=None, center_pt_end=None, radius_end=None, modifier=None)[source]

Bases: honeybee_plus.radiance.geometry.geometrybase.RadianceGeometry

Radiance Cone.

A cone is a megaphone-shaped object. It is truncated by two planes perpendicular to its axis, and one of its ends may come to a point. It is given as two axis endpoints, and the starting and ending radii:

mod cone id 0 0 8

x0 y0 z0 x1 y1 z1 r0 r1

center_pt_end = None
center_pt_start = None
classmethod from_json(geo_json)[source]

Make radiance material from json {

“type”: “cone”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “center_pt_start”: {“x”: float, “y”: float, “z”: float}, “radius_start”: float, “center_pt_end”: {“x”: float, “y”: float, “z”: float}, “radius_end”: 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.

radius_end = None
radius_start = None
to_json()[source]

Translate radiance material to json {

“type”: “cone”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “center_pt_start”: {“x”: float, “y”: float, “z”: float}, “radius_start”: float, “center_pt_end”: {“x”: float, “y”: float, “z”: float}, “radius_end”: float

}