honeybee_plus.radiance.geometry.sphere module

Radiance Sphere.

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

class honeybee_plus.radiance.geometry.sphere.Sphere(name, center_pt=None, radius=None, modifier=None)[source]

Bases: honeybee_plus.radiance.geometry.geometrybase.RadianceGeometry

Radiance Sphere.

mod sphere id 0 0 4 xcent ycent zcent radius

center_pt = None
classmethod from_json(geo_json)[source]

Make radiance material from json {

“type”: “sphere”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “center_pt”: {“x”: float, “y”: float, “z”: float}, “radius”: 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 = None
to_json()[source]

Translate radiance material to json {

“type”: “sphere”, // Geometry type “modifier”: {} or void, // Modifier “name”: “”, // Geometry Name “center_pt”: {“x”: float, “y”: float, “z”: float}, “radius”: float

}