Compare commits
No commits in common. "c5b2d68518e379fefd77a9d7bd9772a43172045a" and "85d4fb661f3e372c40973b45f7db50a32c811ab8" have entirely different histories.
c5b2d68518
...
85d4fb661f
@ -1,31 +0,0 @@
|
||||
import cadquery2 as cq
|
||||
from cadquery2 import exporters
|
||||
|
||||
|
||||
lower_stands = (
|
||||
cq.Sketch()
|
||||
.push([(0,0), (58, 0), (58, 23), (0, 23)])
|
||||
.circle(5, mode="a")
|
||||
)
|
||||
|
||||
higher_stands = (
|
||||
cq.Sketch()
|
||||
.push([(0,0), (58, 0), (58, 23), (0, 23)])
|
||||
.circle(2.65, mode="a")
|
||||
)
|
||||
|
||||
model = (
|
||||
cq.Workplane("XY")
|
||||
.workplane()
|
||||
.box(75, 40, 2)
|
||||
.faces(">Z")
|
||||
.workplane(centerOption="CenterOfBoundBox")
|
||||
.center(-29, -11.5)
|
||||
.placeSketch(lower_stands)
|
||||
.extrude(3)
|
||||
.workplane()
|
||||
.placeSketch(higher_stands)
|
||||
.extrude(8)
|
||||
)
|
||||
|
||||
exporters.export(model, "cpu_holder.stl")
|
File diff suppressed because it is too large
Load Diff
@ -12146,58 +12146,16 @@ solid
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
vertex -1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex -1.440000e+02 8.200000e+01 2.300000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex -1.440000e+02 8.200000e+01 0.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex -1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex -1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex -1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 9.996988e-01 2.454123e-02 0.000000e+00
|
||||
@ -12774,62 +12732,20 @@ solid
|
||||
vertex 1.430000e+02 -2.250000e+01 3.750000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex -1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex -1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex -1.430000e+02 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex -1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
vertex -1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex -1.430000e+02 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex -1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.430000e+02 7.900000e+01 2.300000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex -1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex -1.430000e+02 3.416526e+01 5.099136e+00
|
||||
@ -27537,62 +27453,6 @@ solid
|
||||
vertex -1.430000e+02 -7.900000e+01 1.442611e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 0.000000e+00 1.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 0.000000e+00 -1.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -0.000000e+00 -1.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
|
||||
outer loop
|
||||
vertex 1.460000e+02 -2.250000e+01 3.750000e+00
|
||||
|
@ -54,7 +54,6 @@ battery_holder = (
|
||||
|
||||
power_in = cq.Sketch().circle(5, mode="a")
|
||||
usb_in = cq.Sketch().trapezoid(13, 5.5, 90, mode="a")
|
||||
switch_in = cq.Sketch().trapezoid(13.5, 8, 90, mode="a")
|
||||
|
||||
|
||||
def model():
|
||||
@ -85,12 +84,6 @@ def model():
|
||||
.center(-height / 2 + shell_t + 50, -5)
|
||||
.placeSketch(usb_in)
|
||||
.cutBlind(-shell_t)
|
||||
# Hole for power switch
|
||||
.faces(">Y")
|
||||
.workplane(centerOption="CenterOfBoundBox")
|
||||
.center(-height / 2 + shell_t + 50, 0)
|
||||
.placeSketch(switch_in)
|
||||
.cutBlind(-shell_t)
|
||||
# Slanted mounting pillars on the kbd top
|
||||
.faces(">Z")
|
||||
.workplane(centerOption="CenterOfBoundBox")
|
||||
|
@ -253,58 +253,16 @@ solid
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.400000e+01 8.200000e+01 2.300000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 1.400000e+01 8.200000e+01 0.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 1.400000e+01 8.200000e+01 2.300000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 1.400000e+01 8.200000e+01 0.000000e+00
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 1.400000e+01 8.200000e+01 2.300000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 1.400000e+01 8.200000e+01 0.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.440000e+02 8.200000e+01 0.000000e+00
|
||||
vertex 1.400000e+01 8.200000e+01 0.000000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.400000e+01 8.200000e+01 2.300000e+01
|
||||
vertex 1.440000e+02 8.200000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 9.996988e-01 2.454123e-02 0.000000e+00
|
||||
@ -1140,60 +1098,18 @@ solid
|
||||
vertex 1.430000e+02 -2.250000e+01 3.750000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.400000e+01 7.900000e+01 2.300000e+01
|
||||
vertex 1.400000e+01 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.400000e+01 7.900000e+01 3.000000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 1.400000e+01 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.400000e+01 7.900000e+01 2.300000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 1.400000e+01 7.900000e+01 2.300000e+01
|
||||
vertex 1.400000e+01 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
|
||||
facet normal -0.000000e+00 -1.000000e+00 -0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.400000e+01 7.900000e+01 2.300000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 1.430000e+02 7.900000e+01 2.300000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -1.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.430000e+02 7.900000e+01 3.000000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 1.400000e+01 7.900000e+01 3.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1.000000e+00 0.000000e+00 0.000000e+00
|
||||
@ -1700,62 +1616,6 @@ solid
|
||||
vertex 1.451111e+02 8.166294e+01 0.000000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 0.000000e+00 1.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 7.500000e+00
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1.000000e+00 0.000000e+00 0.000000e+00
|
||||
outer loop
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 7.500000e+00
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.000000e+00 0.000000e+00 -1.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 8.200000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.000000e+00 -0.000000e+00 -1.000000e+00
|
||||
outer loop
|
||||
vertex 3.575000e+01 8.200000e+01 1.550000e+01
|
||||
vertex 3.575000e+01 7.900000e+01 1.550000e+01
|
||||
vertex 2.225000e+01 7.900000e+01 1.550000e+01
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 9.997373e-01 -2.292180e-02 0.000000e+00
|
||||
outer loop
|
||||
vertex 1.459979e+02 -8.009166e+01 1.433060e+01
|
||||
|
Loading…
Reference in New Issue
Block a user