e907fa88a4
- Created `vertex.md` and `wire.md` to document the Vertex and Wire classes in the SimpleCAD API, detailing their attributes, methods, and usage examples. - Introduced `auto_docs_gen.py` script to automate the extraction of API information from `operations.py` and generate markdown documentation. - Updated `operations.py` to correct a comment regarding the target normal vector in the `helical_sweep_rsolid` function.
854 B
854 B
make_segment_redge
API定义
def make_segment_redge(start: Tuple[float, float, float], end: Tuple[float, float, float]) -> Edge
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))