Download src/Mod/Material/App/Model.pyi from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/Material/App/Model.pyi
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/Material/App/Model.pyi
-
curl -L -o Model.pyi https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/Material/App/Model.pyi
1.44 kB
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| from __future__ import annotations | |
| from Base.Metadata import export | |
| from Base.BaseClass import BaseClass | |
| from typing import Final, List, Dict | |
| Include="Mod/Material/App/Model.h", | |
| Namespace="Materials", | |
| Constructor=True, | |
| Delete=True, | |
| ) | |
| class Model(BaseClass): | |
| """ | |
| Material model descriptions. | |
| Author: DavidCarter (dcarter@davidcarter.ca) | |
| Licence: LGPL | |
| """ | |
| LibraryName: Final[str] = "" | |
| """Model library name.""" | |
| LibraryRoot: Final[str] = "" | |
| """Model library path.""" | |
| LibraryIcon: Final[bytes] = "" | |
| """Model icon.""" | |
| Name: str = "" | |
| """Model name.""" | |
| Type: str = "" | |
| """Model type.""" | |
| Directory: str = "" | |
| """Model directory.""" | |
| UUID: Final[str] = "" | |
| """Unique model identifier.""" | |
| Description: str = "" | |
| """Description of the model.""" | |
| URL: str = "" | |
| """URL to a detailed description of the model.""" | |
| DOI: str = "" | |
| """Digital Object Identifier (see https://doi.org/)""" | |
| Inherited: Final[List[str]] = [] | |
| """List of inherited models identified by UUID.""" | |
| Properties: Final[Dict[str, str]] = {} | |
| """Dictionary of model properties.""" | |
| def addInheritance(self) -> None: | |
| """ | |
| Add an inherited model. | |
| """ | |
| ... | |
| def addProperty(self) -> None: | |
| """ | |
| Add a model property. | |
| """ | |
| ... | |