Skip to content

Instantly share code, notes, and snippets.

import cadquery as cq
from cqindustry import Base
from cadqueryhelper import series, shape
import math
class Walkway(Base):
def __init__(self):
super().__init__()
self.length = 75
self.width = 50
import cadquery as cq
import math
# Making an obelisk in cadquery and cq-editor
def pillar(
points=[(0,0),(0,12.5),(2,12.5) ,(4,4), (4,0)],
extrude=10,
faces=4,
intersect=True
import cadquery as cq
import math
import random
def custom_item(length, width, height):
log('custom item')
return (
cq.Workplane("XY")
.box(length-1, width-1, height)
.chamfer(0.5)
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
@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
):