Collection is minibase shapes with magnet cutouts. The code for these is very simple most of these are just a loft operation.
- diameter: float
- height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
result = circle(
diameter = 25,
height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2
)
- x_diameter: float
- y_diameter: float
- height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
result = ellipse(
x_diameter=52,
y_diameter=90,
height=3,
taper=-1,
render_magnet = True,
magnet_diameter=3,
magnet_height=2
)
- diameter: float
- height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
result = hexagon(
diameter = 25,
height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2
)
Utility function for making the magnet cutouts for the bases.
- shape_height: float
- magnet_diameter: float
- magnet_height: float
- length: float
- width: float
- height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
result = rectangle(
length = 25,
width = 25,
height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2
)
- length: float
- width: float
- height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
result = slot(
length = 24,
width = 50,
height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2
)
- diameter: float
- base_height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
- detail_height: float
- uneven_height: float
- peak_count: tuple[int,int]|int
- segments: int
- seed: str
import cadquery as cq
from cqterrain.minibase import circle_uneven
ex_base = circle_uneven(
diameter = 45,
base_height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2,
detail_height = 3,
uneven_height = 4,
peak_count = (9,10),
segments = 6,
seed="red"
)
show_object(ex_base)
- length: float
- width: float
- base_height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
- detail_height: float
- uneven_height: float
- peak_count: tuple[int,int]|int
- segments: int
- seed: str
import cadquery as cq
from cqterrain.minibase import ellipse_uneven
ex_base = ellipse_uneven(
length = 40,
width = 40,
base_height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2,
detail_height = 3,
uneven_height = 4,
peak_count = (9,10),
segments = 6,
seed="red"
)
show_object(ex_base)
- diameter: float
- base_height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
- detail_height: float
- uneven_height: float
- peak_count: tuple[int,int]|int
- segments: int
- seed: str
import cadquery as cq
from cqterrain.minibase import hexagon_uneven
ex_base = hexagon_uneven(
diameter = 45,
base_height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2,
detail_height = 3,
uneven_height = 4,
peak_count = (9,10),
segments = 6,
seed="red"
)
show_object(ex_base)
- length: float
- width: float
- base_height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
- detail_height: float
- uneven_height: float
- peak_count: tuple[int,int]|int
- segments: int
- seed: str
import cadquery as cq
from cqterrain.minibase import rectangle_uneven
ex_base = rectangle_uneven(
length = 40,
width = 40,
base_height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2,
detail_height = 3,
uneven_height = 4,
peak_count = (9,10),
segments = 6,
seed="red"
)
show_object(ex_base)
- length: float
- width: float
- base_height: float
- taper: float
- render_magnet: bool
- magnet_diameter: float
- magnet_height: float
- detail_height: float
- uneven_height: float
- peak_count: tuple[int,int]|int
- segments: int
- seed: str
import cadquery as cq
from cqterrain.minibase import slot_uneven
ex_base = slot_uneven(
length = 75,
width = 25,
base_height = 3,
taper = -1,
render_magnet = True,
magnet_diameter = 3,
magnet_height = 2,
detail_height = 3,
uneven_height = 4,
peak_count = (9,10),
segments = 6,
seed="red"
)
show_object(ex_base)