photonmap.Loader.LoadEnvironment
Functions
|
Adds a PlantGL Shape of the room to the Photon Mapping scene. |
|
Adds a PlantGL Shape of the room to the Photon Mapping scene. |
Module Contents
- photonmap.Loader.LoadEnvironment.addEnvironment(scene, sh, w, materialsR: dict, materialsS: dict, materialsT: dict, is_only_lamp=False)[source]
Adds a PlantGL Shape of the room to the Photon Mapping scene.
Parameters
- scenelibphotonmap_core.Scene
The photon mapping scene used to run the simulation
- shShape
The plantGL Shape to add
- wint
The wavelength of the light to simulate.
- materialsRdict
The materials reflection dictionary
- materialsSdict
The materials specularity dictionary
- materialsTdict
The materials transmission dictionary
- is_only_lampbool
If True, add only the lamps and captors, If False, add all the objects in room
- photonmap.Loader.LoadEnvironment.addLightDirectionPgl(sc, scale_factor)[source]
Adds a PlantGL Shape of the room to the Photon Mapping scene.
Parameters
- scLscene
The plantgl scene
- scale_factorint
The size of geometries. The vertices of geometries is recalculated by dividing their coordinates by this value
Returns
A PlantGL Scene with the hemisphere of each surface