Construct a solid sphere.
(d: float)
| 6433 | |
| 6434 | |
| 6435 | def sphere(d: float) -> Solid: |
| 6436 | """ |
| 6437 | Construct a solid sphere. |
| 6438 | """ |
| 6439 | |
| 6440 | return _shape( |
| 6441 | BRepPrimAPI_MakeSphere( |
| 6442 | gp_Ax2(Vector(0, 0, 0).toPnt(), Vector(0, 0, 1).toDir()), d / 2, |
| 6443 | ).Shape(), |
| 6444 | Solid, |
| 6445 | ) |
| 6446 | |
| 6447 | |
| 6448 | def torus(d1: float, d2: float) -> Solid: |