Files
make-cad/docs/api/make_circle_rwire.md
T
倪旌哲 a9d1de7747 Add beartype and ragflow-sdk packages; update simplecadapi version
- Introduced beartype version 0.18.5 with its source and wheel details.
- Added ragflow-sdk version 0.19.1, including dependencies on beartype and requests.
- Updated simplecadapi version from 0.1.2 to 1.0.0.
- Included ragflow-sdk in dev dependencies for testing purposes.
2025-07-07 03:01:09 +08:00

48 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# make_circle_rwire
## API定义
```python
def make_circle_rwire(center: Tuple[float, float, float], radius: float, normal: Tuple[float, float, float] = (0, 0, 1)) -> Wire
```
## API作用
创建圆形线对象,用于构建封闭的圆形轮廓。与make_circle_redge不同,
此函数返回的是线对象,可以直接用于创建面或进行其他线操作。
## API参数说明
### center
- **类型**: `Tuple[float, float, float]`
- **说明**: 圆心坐标 (x, y, z),定义圆的中心位置
### radius
- **类型**: `float`
- **说明**: 圆的半径,必须为正数
### normal
- **类型**: `Tuple[float, float, float], optional`
- **说明**: 圆所在平面的法向量 (x, y, z), 默认为 (0, 0, 1) 表示XY平面
### 返回值
Wire: 创建的线对象,表示一个完整的圆形轮廓
## 异常
- **ValueError**: 当半径小于等于0或其他参数无效时抛出异常
## API使用例子
```python
# 创建标准圆形轮廓
circle_wire = make_circle_rwire((0, 0, 0), 3.0)
# 创建小圆轮廓
small_circle = make_circle_rwire((1, 1, 0), 0.5)
```