Files
make-cad/docs/api/make_three_point_arc_rwire.md
T
倪旌哲 b80a323445 feat: Add automation scripts for updating API exports and syncing documentation
- Introduced `make_export.py` to automate the update of `__init__.py` with new API functions from `operations.py` and `evolve.py`.
- Implemented function extraction, categorization, and generation of import statements and aliases.
- Added `ragflow_sync.py` for synchronizing SimpleCADAPI documentation with RAGFlow database, including chunking markdown files and managing dataset.
- Updated package version to 1.0.5 in `uv.lock`.
2025-07-24 02:11:44 +08:00

1.2 KiB

make_three_point_arc_rwire

API定义

def make_three_point_arc_rwire(start: Tuple[float, float, float], middle: Tuple[float, float, float], end: Tuple[float, float, float]) -> Wire

来源文件: operations.py

API作用

通过三个点创建圆弧线对象,与make_three_point_arc_redge功能相同, 但返回的是线对象,可以与其他线对象连接或用于构建复杂轮廓。

API参数说明

start

  • 类型: Tuple[float, float, float]
  • 说明: 圆弧的起始点坐标 (x, y, z)

middle

  • 类型: Tuple[float, float, float]
  • 说明: 圆弧上的中间点坐标 (x, y, z), 用于确定圆弧的曲率和方向

end

  • 类型: Tuple[float, float, float]
  • 说明: 圆弧的结束点坐标 (x, y, z)

返回值说明

Wire: 创建的线对象,包含一个通过三点的圆弧

异常

  • ValueError: 当三个点共线或坐标无效时抛出异常

API使用例子

# 创建圆弧线
arc_wire = make_three_point_arc_rwire((0, 0, 0), (1, 1, 0), (0, 2, 0))
# 与直线连接创建复杂轮廓
line = make_segment_rwire((0, 2, 0), (3, 2, 0))
# 然后可以连接arc_wire和line