1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-23 02:41:19 +00:00

Add inner wall to lid to fixate on housing

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-11 14:51:10 +01:00
parent 63f1a828ac
commit 55d97f7e02
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 411 additions and 61 deletions

View file

@ -6,4 +6,4 @@ In case you have use for those models thankfully to Github you can preview all m
| Model | Source | Version | Title | | Model | Source | Version | Title |
| ----- | ------ | ------- | ----- | | ----- | ------ | ------- | ----- |
| [`sonoff_dev_housing.stl`](sonoff_dev_housing.stl) | [`sonoff_dev_housing.jscad`](sonoff_dev_housing.jscad) | 0.2.4 | Sonoff DEV box for lamp post | | [`sonoff_dev_housing.stl`](sonoff_dev_housing.stl) | [`sonoff_dev_housing.jscad`](sonoff_dev_housing.jscad) | 0.2.5 | Sonoff DEV box for lamp post |

View file

@ -1,7 +1,7 @@
/* /*
* title : Sonoff DEV box for lamp post * title : Sonoff DEV box for lamp post
* author : Knut Ahlers * author : Knut Ahlers
* revision : 0.2.4 * revision : 0.2.5
*/ */
// All measurements in mm // All measurements in mm
@ -150,11 +150,25 @@ function main() {
).translate([(boardSize + innerSpace + wall + 5) * -0.5, 0, (innerSpaceHeight + wall) / 2]), ).translate([(boardSize + innerSpace + wall + 5) * -0.5, 0, (innerSpaceHeight + wall) / 2]),
// Lid // Lid
union(
difference(cube({ size: [ difference(cube({ size: [
boardSize + innerSpace + wall * 2, boardSize + innerSpace + wall * 2,
boardSize + innerSpace + wall * 2, boardSize + innerSpace + wall * 2,
wall, wall,
], center: true })).translate([(boardSize + innerSpace + wall + 5) * 0.5, 0, wall / 2]), ], center: true })),
difference(
cube({ size: [
boardSize + innerSpace,
boardSize + innerSpace,
wall,
], center: true }),
cube({ size: [
boardSize + innerSpace - 2 * wall,
boardSize + innerSpace - 2 * wall,
wall,
], center: true })
).translate([0, 0, wall])
).translate([(boardSize + innerSpace + wall + 5) * 0.5, 0, wall / 2]),
] ]
} }

View file

@ -2981,20 +2981,6 @@ vertex -62.75 -30.5 0
vertex -62.75 -29 0 vertex -62.75 -29 0
endloop endloop
endfacet endfacet
facet normal 0 0 -1
outer loop
vertex 62.75 30.5 0
vertex 62.75 -30.5 0
vertex 1.75 -30.5 0
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 62.75 30.5 0
vertex 1.75 -30.5 0
vertex 1.75 30.5 0
endloop
endfacet
facet normal 0 1 0 facet normal 0 1 0
outer loop outer loop
vertex -61.25 -27 18.5 vertex -61.25 -27 18.5
@ -6049,20 +6035,6 @@ endloop
endfacet endfacet
facet normal 0 -1 0 facet normal 0 -1 0
outer loop outer loop
vertex 62.75 -30.5 0
vertex 62.75 -30.5 1.5
vertex 1.75 -30.5 1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 62.75 -30.5 0
vertex 1.75 -30.5 1.5
vertex 1.75 -30.5 0
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -1.75 -30.5 0 vertex -1.75 -30.5 0
vertex -1.75 -30.5 2.5 vertex -1.75 -30.5 2.5
vertex -5.25 -30.5 2.5 vertex -5.25 -30.5 2.5
@ -7447,20 +7419,6 @@ vertex -62.75 30.5 0
vertex -62.75 30.5 2.5 vertex -62.75 30.5 2.5
endloop endloop
endfacet endfacet
facet normal 0 1 0
outer loop
vertex 62.75 30.5 1.5
vertex 62.75 30.5 0
vertex 1.75 30.5 0
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 62.75 30.5 1.5
vertex 1.75 30.5 0
vertex 1.75 30.5 1.5
endloop
endfacet
facet normal 1 0 0 facet normal 1 0 0
outer loop outer loop
vertex -61.25 29 0 vertex -61.25 29 0
@ -14885,6 +14843,20 @@ facet normal -1 0 0
outer loop outer loop
vertex 1.75 -30.5 0 vertex 1.75 -30.5 0
vertex 1.75 -30.5 1.5 vertex 1.75 -30.5 1.5
vertex 1.75 -29 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 1.75 -30.5 0
vertex 1.75 -29 1.5
vertex 1.75 29 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 1.75 -30.5 0
vertex 1.75 29 1.5
vertex 1.75 30.5 1.5 vertex 1.75 30.5 1.5
endloop endloop
endfacet endfacet
@ -14906,21 +14878,385 @@ facet normal 1 0 0
outer loop outer loop
vertex 62.75 -30.5 0 vertex 62.75 -30.5 0
vertex 62.75 30.5 1.5 vertex 62.75 30.5 1.5
vertex 62.75 29 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 62.75 -30.5 0
vertex 62.75 29 1.5
vertex 62.75 -29 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 62.75 -30.5 0
vertex 62.75 -29 1.5
vertex 62.75 -30.5 1.5 vertex 62.75 -30.5 1.5
endloop endloop
endfacet endfacet
facet normal 0 -1 0
outer loop
vertex 1.75 -30.5 0
vertex 62.75 -30.5 0
vertex 62.75 -30.5 1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 1.75 -30.5 0
vertex 62.75 -30.5 1.5
vertex 1.75 -30.5 1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 1.75 30.5 0
vertex 1.75 30.5 1.5
vertex 62.75 30.5 1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 1.75 30.5 0
vertex 62.75 30.5 1.5
vertex 62.75 30.5 0
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 1.75 -30.5 0
vertex 1.75 30.5 0
vertex 62.75 30.5 0
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 1.75 -30.5 0
vertex 62.75 30.5 0
vertex 62.75 -30.5 0
endloop
endfacet
facet normal 0 0 1 facet normal 0 0 1
outer loop outer loop
vertex 1.75 -30.5 1.5
vertex 62.75 -30.5 1.5 vertex 62.75 -30.5 1.5
vertex 62.75 -29 1.5
vertex 61.25 -29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 62.75 -30.5 1.5
vertex 61.25 -29 1.5
vertex 3.25 -29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 62.75 -30.5 1.5
vertex 3.25 -29 1.5
vertex 1.75 -29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 62.75 -30.5 1.5
vertex 1.75 -29 1.5
vertex 1.75 -30.5 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 59.75 -27.5 1.5
vertex 59.75 27.5 1.5
vertex 4.75 27.5 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 59.75 -27.5 1.5
vertex 4.75 27.5 1.5
vertex 4.75 -27.5 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 3.25 -29 1.5
vertex 3.25 29 1.5
vertex 1.75 29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 3.25 -29 1.5
vertex 1.75 29 1.5
vertex 1.75 -29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 62.75 -29 1.5
vertex 62.75 29 1.5
vertex 61.25 29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 62.75 -29 1.5
vertex 61.25 29 1.5
vertex 61.25 -29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 3.25 29 1.5
vertex 61.25 29 1.5
vertex 62.75 29 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 3.25 29 1.5
vertex 62.75 29 1.5
vertex 62.75 30.5 1.5 vertex 62.75 30.5 1.5
endloop endloop
endfacet endfacet
facet normal 0 0 1 facet normal 0 0 1
outer loop outer loop
vertex 1.75 -30.5 1.5 vertex 3.25 29 1.5
vertex 62.75 30.5 1.5 vertex 62.75 30.5 1.5
vertex 1.75 30.5 1.5 vertex 1.75 30.5 1.5
endloop endloop
endfacet endfacet
facet normal 0 0 1
outer loop
vertex 3.25 29 1.5
vertex 1.75 30.5 1.5
vertex 1.75 29 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 3.25 -29 1.5
vertex 3.25 -29 3
vertex 3.25 -27.5 3
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 3.25 -29 1.5
vertex 3.25 -27.5 3
vertex 3.25 27.5 3
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 3.25 -29 1.5
vertex 3.25 27.5 3
vertex 3.25 29 3
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 3.25 -29 1.5
vertex 3.25 29 3
vertex 3.25 29 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 61.25 -29 1.5
vertex 61.25 29 1.5
vertex 61.25 29 3
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 61.25 -29 1.5
vertex 61.25 29 3
vertex 61.25 27.5 3
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 61.25 -29 1.5
vertex 61.25 27.5 3
vertex 61.25 -27.5 3
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 61.25 -29 1.5
vertex 61.25 -27.5 3
vertex 61.25 -29 3
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 3.25 -29 1.5
vertex 61.25 -29 1.5
vertex 61.25 -29 3
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 3.25 -29 1.5
vertex 61.25 -29 3
vertex 3.25 -29 3
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 3.25 29 1.5
vertex 3.25 29 3
vertex 61.25 29 3
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 3.25 29 1.5
vertex 61.25 29 3
vertex 61.25 29 1.5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 4.75 27.5 1.5
vertex 4.75 27.5 3
vertex 4.75 -27.5 3
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 4.75 27.5 1.5
vertex 4.75 -27.5 3
vertex 4.75 -27.5 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 59.75 -27.5 3
vertex 59.75 27.5 3
vertex 59.75 27.5 1.5
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 59.75 -27.5 3
vertex 59.75 27.5 1.5
vertex 59.75 -27.5 1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 4.75 -27.5 3
vertex 59.75 -27.5 3
vertex 59.75 -27.5 1.5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 4.75 -27.5 3
vertex 59.75 -27.5 1.5
vertex 4.75 -27.5 1.5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 59.75 27.5 1.5
vertex 59.75 27.5 3
vertex 4.75 27.5 3
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 59.75 27.5 1.5
vertex 4.75 27.5 3
vertex 4.75 27.5 1.5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 61.25 -29 3
vertex 61.25 -27.5 3
vertex 59.75 -27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 61.25 -29 3
vertex 59.75 -27.5 3
vertex 4.75 -27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 61.25 -29 3
vertex 4.75 -27.5 3
vertex 3.25 -27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 61.25 -29 3
vertex 3.25 -27.5 3
vertex 3.25 -29 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.75 -27.5 3
vertex 4.75 27.5 3
vertex 3.25 27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.75 -27.5 3
vertex 3.25 27.5 3
vertex 3.25 -27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 61.25 -27.5 3
vertex 61.25 27.5 3
vertex 59.75 27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 61.25 -27.5 3
vertex 59.75 27.5 3
vertex 59.75 -27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.75 27.5 3
vertex 59.75 27.5 3
vertex 61.25 27.5 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.75 27.5 3
vertex 61.25 27.5 3
vertex 61.25 29 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.75 27.5 3
vertex 61.25 29 3
vertex 3.25 29 3
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 4.75 27.5 3
vertex 3.25 29 3
vertex 3.25 27.5 3
endloop
endfacet
endsolid csg.js endsolid csg.js