实现声明式装配约束并精简 sandbox 示例

This commit is contained in:
NiJingzhe
2026-03-06 18:00:13 +08:00
parent 1c8c944a5b
commit 037cd4cbb4
24 changed files with 2252 additions and 430 deletions
+13
View File
@@ -0,0 +1,13 @@
# stack_rassembly
## API定义
```python
def stack_rassembly(assembly: Assembly, parts: Sequence[Union[str, PartHandle]], axis: str = 'z', gap: float = 0.0, align: Literal['center', 'start', 'end'] = 'center', justify: Literal['start', 'center', 'end', 'space-between'] = 'start', bounds: Optional[Tuple[PointAnchor, PointAnchor]] = None) -> Assembly
```
*来源文件: constraints.py*
## API作用
Type-2映射:应用 stack 布局并返回新装配对象。