b80a323445
- 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`.
1.0 KiB
1.0 KiB
make_point_rvertex
API定义
def make_point_rvertex(x: float, y: float, z: float) -> Vertex
来源文件: operations.py
API作用
创建三维空间中的几何点,通常用作其他几何对象的构造参数,如作为线段的端点、 圆弧的控制点等。支持当前坐标系变换。
API参数说明
x
- 类型:
float - 说明: X坐标值,用于定义点在X轴方向的位置
y
- 类型:
float - 说明: Y坐标值,用于定义点在Y轴方向的位置
z
- 类型:
float - 说明: Z坐标值,用于定义点在Z轴方向的位置
返回值说明
Vertex: 创建的顶点对象,包含指定坐标的点
异常
- ValueError: 当坐标无效时抛出异常
API使用例子
# 创建原点
origin = make_point_rvertex(0, 0, 0)
# 创建指定坐标的点
point = make_point_rvertex(1.5, 2.0, 3.0)
# 在工作平面中创建点
with SimpleWorkplane((1, 1, 1)):
... local_point = make_point_rvertex(0, 0, 0) # 实际位置为(1, 1, 1)