Method
add_light
(
self,
name,
location, # node location in parent
rotation=None, # node rotation in parent frame
direction=None, # direction delegate callable
wavelength=None, # wavelength delegate callable
position=None, # position delegate callable
)
Source from the content-addressed store, hash-verified
| 258 | ) |
| 259 | |
| 260 | def add_light( |
| 261 | self, |
| 262 | name, |
| 263 | location, # node location in parent |
| 264 | rotation=None, # node rotation in parent frame |
| 265 | direction=None, # direction delegate callable |
| 266 | wavelength=None, # wavelength delegate callable |
| 267 | position=None, # position delegate callable |
| 268 | ): |
| 269 | self._user_lights.append( |
| 270 | { |
| 271 | "name": name, |
| 272 | "location": location, |
| 273 | "rotation": rotation, |
| 274 | "direction": direction, |
| 275 | "wavelength": wavelength, |
| 276 | "position": position, |
| 277 | } |
| 278 | ) |
| 279 | |
| 280 | def add_solar_cell(self, facets): |
| 281 | if not isinstance(facets, (list, tuple, set)): |