Construct a solid cylinder.
(d: float, h: float)
| 6420 | |
| 6421 | |
| 6422 | def cylinder(d: float, h: float) -> Solid: |
| 6423 | """ |
| 6424 | Construct a solid cylinder. |
| 6425 | """ |
| 6426 | |
| 6427 | return _shape( |
| 6428 | BRepPrimAPI_MakeCylinder( |
| 6429 | gp_Ax2(Vector(0, 0, 0).toPnt(), Vector(0, 0, 1).toDir()), d / 2, h, 2 * pi |
| 6430 | ).Shape(), |
| 6431 | Solid, |
| 6432 | ) |
| 6433 | |
| 6434 | |
| 6435 | def sphere(d: float) -> Solid: |