1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-23 10:51: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
@ -98,8 +98,8 @@ function main() {
resolution: 100, resolution: 100,
}).translate([lampPostRadius * -1, 0, 0]) }).translate([lampPostRadius * -1, 0, 0])
) )
.rotateY(90) .rotateY(90)
.translate([0, 0, (innerSpaceHeight + wall) / 2]) .translate([0, 0, (innerSpaceHeight + wall) / 2])
), ),
// Inner housing // Inner housing
@ -111,19 +111,19 @@ function main() {
)), )),
// Outer border of power inlet // Outer border of power inlet
cube({ size: [wall, powerInletWidth + wall * 2, powerInletHeight + wall * 2], center: true }) cube({ size: [wall, powerInletWidth + wall * 2, powerInletHeight + wall * 2], center: true })
.translate([
(boardSize + innerSpace + wall) / 2,
powerInletPosY,
(innerSpaceHeight + wall) / 2 - (wall + powerInletHeight / 2),
])
),
// Inner space of power inlet
cube({ size: [wall, powerInletWidth, powerInletHeight], center: true })
.translate([ .translate([
(boardSize + innerSpace + wall) / 2, (boardSize + innerSpace + wall) / 2,
powerInletPosY, powerInletPosY,
(innerSpaceHeight + wall) / 2 - (wall + powerInletHeight / 2), (innerSpaceHeight + wall) / 2 - (wall + powerInletHeight / 2),
]) ])
),
// Inner space of power inlet
cube({ size: [wall, powerInletWidth, powerInletHeight], center: true })
.translate([
(boardSize + innerSpace + wall) / 2,
powerInletPosY,
(innerSpaceHeight + wall) / 2 - (wall + powerInletHeight / 2),
])
), ),
// Board supports // Board supports
@ -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
difference(cube({ size: [ union(
boardSize + innerSpace + wall * 2, difference(cube({ size: [
boardSize + innerSpace + wall * 2, boardSize + innerSpace + wall * 2,
wall, boardSize + innerSpace + wall * 2,
], center: true })).translate([(boardSize + innerSpace + wall + 5) * 0.5, 0, wall / 2]), wall,
], 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