Construct a solid box.
(w: float, l: float, h: float)
| 6407 | |
| 6408 | |
| 6409 | def box(w: float, l: float, h: float) -> Solid: |
| 6410 | """ |
| 6411 | Construct a solid box. |
| 6412 | """ |
| 6413 | |
| 6414 | return _shape( |
| 6415 | BRepPrimAPI_MakeBox( |
| 6416 | gp_Ax2(Vector(-w / 2, -l / 2, 0).toPnt(), Vector(0, 0, 1).toDir()), w, l, h |
| 6417 | ).Shape(), |
| 6418 | Solid, |
| 6419 | ) |
| 6420 | |
| 6421 | |
| 6422 | def cylinder(d: float, h: float) -> Solid: |