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`.
874 B
874 B
make_segment_redge
API定义
def make_segment_redge(start: Tuple[float, float, float], end: Tuple[float, float, float]) -> Edge
来源文件: operations.py
API作用
与make_line_redge功能完全相同,提供更直观的函数名称。用于创建两点之间的 直线段,是构建复杂几何形状的基础元素。
API参数说明
start
- 类型:
Tuple[float, float, float] - 说明: 起始点坐标 (x, y, z),定义线段的起点
end
- 类型:
Tuple[float, float, float] - 说明: 结束点坐标 (x, y, z),定义线段的终点
返回值说明
Edge: 创建的边对象,表示连接两点的直线段
API使用例子
# 创建垂直线段
vertical_line = make_segment_redge((0, 0, 0), (0, 0, 5))
# 创建对角线段
diagonal = make_segment_redge((0, 0, 0), (1, 1, 1))