如何在 CadQuery 中拉伸面

使用

cadquery_extrude.py
face_to_extrude.wires().toPending().extrude(...)

完整示例

cadquery_example.py
import cadquery as cq

box = cq.Workplane("XY").box(1, 1, 1)

face_to_extrude = box.faces(">Z")

result = face_to_extrude.wires().toPending().extrude(2, taper=45)

CadQuery 3D model of box with top face extruded upward with 45 degree taper


Check out similar posts by category: CadQuery, Python