Files
make-cad/docs/api/part_function.md
T
2026-08-15 16:17:11 +08:00

18 lines
601 B
Markdown

# part
## API Definition
```python
def part(func: Callable[_P, _R] | None = None, *, id: str | None = None, revision: str = '1.0.0', inputs: Sequence[FileInput] = (), cache: CachePolicy | Mapping[str, Any] | str | None = None, project_root: str | Path | None = None, tolerance_profile: str = 'simplecad-default') -> Callable[[Callable[_P, _R]], Callable[_P, PartBuildResult]] | Callable[_P, PartBuildResult]
```
*Source: build/part_builder.py*
## Import Surface
- top-level: `from simplecadapi import part`
## Description
Decorate one synchronous builder as a cached single-solid product part.