![]() |
0.1.8
|
Classes | |
class | PlantArchitecture |
High-level interface for plant architecture modeling and procedural plant generation. More... | |
class | PlantArchitectureError |
Raised when PlantArchitecture operations fail. More... | |
Functions | |
validate_vec3 (value, name, func) | |
validate_vec2 (value, name, func) | |
validate_int2 (value, name, func) | |
str | _resolve_user_path (Union[str, Path] filepath) |
Convert relative paths to absolute paths before changing working directory. | |
_plantarchitecture_working_directory () | |
Context manager that temporarily changes working directory to where PlantArchitecture assets are located. | |
is_plantarchitecture_available () | |
Check if PlantArchitecture plugin is available for use. | |
PlantArchitecture | create_plant_architecture (Context context) |
Create PlantArchitecture instance with context. | |
Variables | |
logger = logging.getLogger(__name__) | |
|
protected |
Context manager that temporarily changes working directory to where PlantArchitecture assets are located.
PlantArchitecture C++ code uses hardcoded relative paths like "plugins/plantarchitecture/assets/textures/" expecting assets relative to working directory. This manager temporarily changes to the build directory where assets are actually located.
RuntimeError | If build directory or PlantArchitecture assets are not found, indicating a build system error. |
Definition at line 85 of file PlantArchitecture.py.
|
protected |
Convert relative paths to absolute paths before changing working directory.
This preserves the user's intended file location when the working directory is temporarily changed for C++ asset access. Absolute paths are returned unchanged.
filepath | File path to resolve (string or Path object) |
Definition at line 65 of file PlantArchitecture.py.
PlantArchitecture pyhelios.PlantArchitecture.create_plant_architecture | ( | Context | context | ) |
Create PlantArchitecture instance with context.
context | Helios Context |
Examples
Definition at line 1409 of file PlantArchitecture.py.
pyhelios.PlantArchitecture.is_plantarchitecture_available | ( | ) |
Check if PlantArchitecture plugin is available for use.
Definition at line 153 of file PlantArchitecture.py.
pyhelios.PlantArchitecture.validate_int2 | ( | value, | |
name, | |||
func ) |
Definition at line 38 of file PlantArchitecture.py.
pyhelios.PlantArchitecture.validate_vec2 | ( | value, | |
name, | |||
func ) |
Definition at line 30 of file PlantArchitecture.py.
pyhelios.PlantArchitecture.validate_vec3 | ( | value, | |
name, | |||
func ) |
Definition at line 22 of file PlantArchitecture.py.
pyhelios.PlantArchitecture.logger = logging.getLogger(__name__) |
Definition at line 48 of file PlantArchitecture.py.