Add power switch hole

This commit is contained in:
Roberto Alsina 2022-11-24 10:30:05 -03:00
parent 85d4fb661f
commit 18a8e9a904
3 changed files with 301 additions and 14 deletions

View File

@ -12146,16 +12146,58 @@ solid
endfacet 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 outer loop
vertex 1.440000e+02 8.200000e+01 2.300000e+01 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 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 0.000000e+00 vertex -1.440000e+02 8.200000e+01 0.000000e+00
endloop endloop
endfacet 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 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 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 -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 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 endloop
endfacet endfacet
facet normal 9.996988e-01 2.454123e-02 0.000000e+00 facet normal 9.996988e-01 2.454123e-02 0.000000e+00
@ -12732,20 +12774,62 @@ solid
vertex 1.430000e+02 -2.250000e+01 3.750000e+00 vertex 1.430000e+02 -2.250000e+01 3.750000e+00
endloop endloop
endfacet 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 facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
outer loop outer loop
vertex 1.430000e+02 7.900000e+01 2.300000e+01 vertex 1.430000e+02 7.900000e+01 2.300000e+01
vertex -1.430000e+02 7.900000e+01 3.000000e+00 vertex 3.575000e+01 7.900000e+01 1.550000e+01
vertex 1.430000e+02 7.900000e+01 3.000000e+00 vertex 1.430000e+02 7.900000e+01 3.000000e+00
endloop endloop
endfacet 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 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 2.300000e+01 vertex 2.225000e+01 7.900000e+01 7.500000e+00
vertex -1.430000e+02 7.900000e+01 3.000000e+00 vertex -1.430000e+02 7.900000e+01 3.000000e+00
endloop endloop
endfacet 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 facet normal 1.000000e+00 0.000000e+00 0.000000e+00
outer loop outer loop
vertex -1.430000e+02 3.416526e+01 5.099136e+00 vertex -1.430000e+02 3.416526e+01 5.099136e+00
@ -27453,6 +27537,62 @@ solid
vertex -1.430000e+02 -7.900000e+01 1.442611e+01 vertex -1.430000e+02 -7.900000e+01 1.442611e+01
endloop endloop
endfacet 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 facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop outer loop
vertex 1.460000e+02 -2.250000e+01 3.750000e+00 vertex 1.460000e+02 -2.250000e+01 3.750000e+00

View File

@ -54,6 +54,7 @@ battery_holder = (
power_in = cq.Sketch().circle(5, mode="a") power_in = cq.Sketch().circle(5, mode="a")
usb_in = cq.Sketch().trapezoid(13, 5.5, 90, 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(): def model():
@ -84,6 +85,12 @@ def model():
.center(-height / 2 + shell_t + 50, -5) .center(-height / 2 + shell_t + 50, -5)
.placeSketch(usb_in) .placeSketch(usb_in)
.cutBlind(-shell_t) .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 # Slanted mounting pillars on the kbd top
.faces(">Z") .faces(">Z")
.workplane(centerOption="CenterOfBoundBox") .workplane(centerOption="CenterOfBoundBox")

View File

@ -253,18 +253,60 @@ solid
endfacet 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 outer loop
vertex 1.440000e+02 8.200000e+01 2.300000e+01 vertex 1.400000e+01 8.200000e+01 2.300000e+01
vertex 1.440000e+02 8.200000e+01 0.000000e+00 vertex 2.225000e+01 8.200000e+01 7.500000e+00
vertex 1.400000e+01 8.200000e+01 0.000000e+00 vertex 1.400000e+01 8.200000e+01 0.000000e+00
endloop endloop
endfacet 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 outer loop
vertex 1.440000e+02 8.200000e+01 2.300000e+01 vertex 2.225000e+01 8.200000e+01 1.550000e+01
vertex 1.400000e+01 8.200000e+01 0.000000e+00 vertex 2.225000e+01 8.200000e+01 7.500000e+00
vertex 1.400000e+01 8.200000e+01 2.300000e+01 vertex 1.400000e+01 8.200000e+01 2.300000e+01
endloop endloop
endfacet 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 0.000000e+00
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 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 facet normal 9.996988e-01 2.454123e-02 0.000000e+00
outer loop outer loop
vertex 1.459976e+02 8.009814e+01 2.300000e+01 vertex 1.459976e+02 8.009814e+01 2.300000e+01
@ -1098,20 +1140,62 @@ solid
vertex 1.430000e+02 -2.250000e+01 3.750000e+00 vertex 1.430000e+02 -2.250000e+01 3.750000e+00
endloop endloop
endfacet 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 outer loop
vertex 1.430000e+02 7.900000e+01 3.000000e+00 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 2.300000e+01
vertex 1.400000e+01 7.900000e+01 3.000000e+00 vertex 1.400000e+01 7.900000e+01 3.000000e+00
endloop endloop
endfacet 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 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
endloop
endfacet
facet normal 0.000000e+00 -1.000000e+00 -0.000000e+00
outer loop outer loop
vertex 1.430000e+02 7.900000e+01 2.300000e+01 vertex 1.430000e+02 7.900000e+01 2.300000e+01
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 3.000000e+00 vertex 1.430000e+02 7.900000e+01 3.000000e+00
endloop endloop
endfacet 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 facet normal -1.000000e+00 0.000000e+00 0.000000e+00
outer loop outer loop
vertex 1.400000e+01 7.900000e+01 3.000000e+00 vertex 1.400000e+01 7.900000e+01 3.000000e+00
@ -1616,6 +1700,62 @@ solid
vertex 1.451111e+02 8.166294e+01 0.000000e+00 vertex 1.451111e+02 8.166294e+01 0.000000e+00
endloop endloop
endfacet 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 facet normal 9.997373e-01 -2.292180e-02 0.000000e+00
outer loop outer loop
vertex 1.459979e+02 -8.009166e+01 1.433060e+01 vertex 1.459979e+02 -8.009166e+01 1.433060e+01