photonmap.Reader.ReadRADGeo
Functions
|
Generate the geometry of a cylinder |
|
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.