from cqmore import Workplane from cqmore.curve import archimedeanSpiral, circle from cqmore.polygon import regularPolygon, star from random import randint, choice import cadquery as cq import functools as fnc import itertools as it def makeTriangle(self, width, height, x_offset=0, y_offset=0): return ( self.moveTo(x_offset - (width), y_offset) .makePolygon( [ (0, 0, 0), (width, height, 0), (width * 2, 0, 0), ] ) .cutBlind(30) .clean() )