You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
459 B
16 lines
459 B
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())
|
|
|