photonmap.Loader.LoadEnvironment ================================ .. py:module:: photonmap.Loader.LoadEnvironment Functions --------- .. autoapisummary:: photonmap.Loader.LoadEnvironment.addEnvironment photonmap.Loader.LoadEnvironment.addLightDirectionPgl Module Contents --------------- .. py:function:: addEnvironment(scene, sh, w, materialsR: dict, materialsS: dict, materialsT: dict, is_only_lamp=False) Adds a PlantGL Shape of the room to the Photon Mapping scene. Parameters ---------- scene : libphotonmap_core.Scene The photon mapping scene used to run the simulation sh : Shape The plantGL Shape to add w : int The wavelength of the light to simulate. materialsR : dict The materials reflection dictionary materialsS : dict The materials specularity dictionary materialsT : dict The materials transmission dictionary is_only_lamp : bool If True, add only the lamps and captors, If False, add all the objects in room .. py:function:: addLightDirectionPgl(sc, scale_factor) Adds a PlantGL Shape of the room to the Photon Mapping scene. Parameters ---------- sc : Lscene The plantgl scene scale_factor : int 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