Skip to content

Instantly share code, notes, and snippets.

View medicationforall's full-sized avatar

James Adams medicationforall

View GitHub Profile

skritch spiteclaw 01

festering skaven 04

krrk the almost-trusted 05

hungering skaven

import random
import cadquery as cq
from cqindustry import Walkway
from cqterrain import tile as terrain_tile, greeble
def __vent_greeble(length, width, height):
t = greeble.vent(length, width, height ,inner_width = height-1,)
return t
tile_styles = [
import random
import cadquery as cq
from cqindustry import Walkway
from cqterrain import tile as terrain_tile, greeble
def __vent_greeble(length, width, height):
t = greeble.vent(length, width, height ,inner_width = height-1,)
return t
tile_styles = [
import cadquery as cq
from cqindustry import Walkway
bp = Walkway()
bp.length = 150
bp.width = 50
bp.height = 6
bp.walkway_chamfer = 3
bp.render_slots = True
from build123d import *
with BuildPart() as p:
Box(160,50,6)
chamfer(p.part.edges().group_by(Axis.Z)[0].filter_by(Axis.X),3)
chamfer(p.part.edges().filter_by(Axis.Z),4.5)
with BuildSketch() as s:
with GridLocations(6,0,25,1):
SlotOverall(38,2.5,rotation=90)
extrude(amount=10,both=True,mode=Mode.SUBTRACT)
with BuildSketch(Plane.XZ.offset(25)) as s2:
@medicationforall
medicationforall / jersey_barrier_example.py
Last active May 29, 2023 01:08
jersey_barrier_example.py
import cadquery as cq
def jersey_shape(
width = 10,
height = 10,
base_height = 2,
middle_width_inset = -2,
middle_height = 2,
top_width_inset = -1
):
import random
import cadquery as cq
from cadqueryhelper import irregular_grid
from cqindustry import Walkway
from cqterrain import tile as terrain_tile
#ig = irregular_grid(
# height=3,
# union_grid=False,
# max_height=10