photonmap.Reader.ReadRADGeo

Functions

cylinder_vertices(start, end, rayon)

Generate the geometry of a cylinder

read_rad(file, scale_factor, invert_normals)

Parse a radiance file (https://radsite.lbl.gov/radiance/framed.html) to a make a plantGL Scene

Module Contents

photonmap.Reader.ReadRADGeo.cylinder_vertices(start, end, rayon)[source]

Generate the geometry of a cylinder

Parameters

start: Vec3

The center of the first circle of cylinder

end: Vec3

The center of the second circle of cylinder

rayon: float

The radius of these two circles

Returns

A array of vertices of an cylinder

photonmap.Reader.ReadRADGeo.read_rad(file: str, scale_factor: int, invert_normals: bool)[source]

Parse a radiance file (https://radsite.lbl.gov/radiance/framed.html) to a make a plantGL Scene

Parameters

file: str

the rad filename

scale_factor: int

The size of geometries. The vertices of geometries is recalculated by dividing their coordinates by this value

invert_normals: bool

whether to invert the normals or not.

Returns

A plantGL Scene.