Compare commits

...

2 Commits

Author SHA1 Message Date
c5b2d68518 Prototype CPU holder 2022-11-24 11:24:38 -03:00
18a8e9a904 Add power switch hole 2022-11-24 10:30:05 -03:00
5 changed files with 28642 additions and 14 deletions

View File

@ -0,0 +1,31 @@
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")

28310
notebook_nueva/cpu_holder.stl Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12146,16 +12146,58 @@ solid
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 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 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
@ -12732,20 +12774,62 @@ 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.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 -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
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 -1.430000e+02 7.900000e+01 2.300000e+01
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 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
@ -27453,6 +27537,62 @@ 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

View File

@ -54,6 +54,7 @@ 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():
@ -84,6 +85,12 @@ 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")

View File

@ -253,18 +253,60 @@ solid
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 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 1.440000e+02 8.200000e+01 2.300000e+01
vertex 1.400000e+01 8.200000e+01 0.000000e+00
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 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
outer loop
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
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 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 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 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
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
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
outer loop
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
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