+ +
+ +
+

solidLib.primitives module

+
+
+solidLib.primitives.pill(ps: List[List[float]], r, segments: int = 36)[source]
+

create a pill around given points

+
+ +
+
+solidLib.primitives.rcube(dim: Iterable[float], radius: float, segments: int = 32)[source]
+

creates a cube with rounded corners

+_images/round_box.png +
+
Parameters
+
    +
  • dim – cube dimensions to base box on.

  • +
  • radius – box radius.

  • +
  • segments – circular object segments

  • +
+
+
+
+ +
+
+solidLib.primitives.round_box(x_dim: float, y_dim: float, z_dim: float, radius: float, segments: int = 32)[source]
+

creates a round box with radius r

+
+
Parameters
+

x_dim (float) –

.

+

+
+
+
+

Important

+

deprecated

+
+_images/round_box.png +
+ +
+
+solidLib.primitives.round_flat_box(x: float, y: float, z: float, r: float, segments: int = 32)[source]
+

creates a round box with radius r and flat top/bottom

+_images/round_flat_box.png +
+ +
+ + +
+ + +
+ + +
+ +