Remove dead code
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
part001 = startSketchOn(XY)
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(end = [1, 3.82], tag = $seg01)
|
||||
|> angled(
|
||||
angle = -angleToMatchLengthX(seg01, 3, %),
|
||||
endAbsoluteX = 3,
|
||||
)
|
||||
|> close()
|
||||
|> extrude(length = 10)
|
@ -1,9 +0,0 @@
|
||||
part001 = startSketchOn(XY)
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(end = [1, 3.82], tag = $seg01)
|
||||
|> angledLine(
|
||||
angle = -angleToMatchLengthY(seg01, 3, %),
|
||||
endAbsoluteX = 3,
|
||||
)
|
||||
|> close()
|
||||
|> extrude(length = 10)
|
@ -1,79 +0,0 @@
|
||||
rpizWidth = 30
|
||||
rpizLength = 65
|
||||
|
||||
caseThickness = 1
|
||||
|
||||
border = 4
|
||||
|
||||
screwHeight = 4
|
||||
|
||||
caseWidth = rpizWidth + border * 2
|
||||
caseLength = rpizLength + border * 2
|
||||
caseHeight = 8
|
||||
|
||||
widthBetweenScrews = 23
|
||||
lengthBetweenScrews = 29 * 2
|
||||
|
||||
miniHdmiDistance = 12.4
|
||||
microUsb1Distance = 41.4
|
||||
microUsb2Distance = 54
|
||||
|
||||
miniHdmiWidth = 11.2
|
||||
microUsbWidth = 7.4
|
||||
connectorPadding = 4
|
||||
|
||||
miniHdmiHole = startSketchOn(XY)
|
||||
|> startProfile(at = [0, border + miniHdmiDistance - (miniHdmiWidth / 2)])
|
||||
|> lineTo([
|
||||
0,
|
||||
border + miniHdmiDistance + miniHdmiWidth / 2
|
||||
], %)
|
||||
|> lineTo([
|
||||
1,
|
||||
border + miniHdmiDistance + miniHdmiWidth / 2
|
||||
], %)
|
||||
|> lineTo([
|
||||
1,
|
||||
border + miniHdmiDistance - (miniHdmiWidth / 2)
|
||||
], %)
|
||||
|> close()
|
||||
|
||||
case = startSketchOn(XY)
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(endAbsolute = [caseWidth, 0], tag = $edge1)
|
||||
|> line(endAbsolute = [caseWidth, caseLength], tag = $edge2)
|
||||
|> line(endAbsolute = [0, caseLength], tag = $edge3)
|
||||
|> close(tag = $edge4)
|
||||
|> extrude(length = caseHeight)
|
||||
|> fillet(
|
||||
radius = 1,
|
||||
tags = [
|
||||
getNextAdjacentEdge(edge1),
|
||||
getNextAdjacentEdge(edge2),
|
||||
getNextAdjacentEdge(edge3),
|
||||
getNextAdjacentEdge(edge4)
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
fn m25Screw(x, y, height) {
|
||||
screw = startSketchOn(XY)
|
||||
|> startProfile(at = [0, 0])
|
||||
|> circle(center= [x, y], radius=2.5)
|
||||
|> subtract2d(tool = circle(center= [x, y], radius = 1.25))
|
||||
|> extrude(length = height)
|
||||
return screw
|
||||
}
|
||||
|
||||
m25Screw(x = border + rpizWidth / 2 - (widthBetweenScrews / 2), y = 0 + border + rpizLength / 2 - (lengthBetweenScrews / 2), height = screwHeight)
|
||||
|
||||
m25Screw(x = border + rpizWidth / 2 - (widthBetweenScrews / 2), y = 0 + border + rpizLength / 2 + lengthBetweenScrews / 2, height = screwHeight)
|
||||
|
||||
m25Screw(x = border + rpizWidth / 2 + widthBetweenScrews / 2, y = 0 + border + rpizLength / 2 + lengthBetweenScrews / 2, height = screwHeight)
|
||||
|
||||
m25Screw(x = border + rpizWidth / 2 + widthBetweenScrews / 2, y = 0 + border + rpizLength / 2 - (lengthBetweenScrews / 2), height = screwHeight)
|
||||
|
||||
shell(
|
||||
faces = [END],
|
||||
thickness = caseThickness
|
||||
)
|
@ -1,42 +0,0 @@
|
||||
triangleHeight = 200
|
||||
plumbusLen = 100
|
||||
radius = 80
|
||||
|
||||
triangleLen = 500
|
||||
p = startSketchOn(XY)
|
||||
|> startProfile(at = [0, 0])
|
||||
|> angledLine(angle = 60, length = triangleLen, tag = $a)
|
||||
|> angledLine(angle = 180, length = triangleLen, tag = $b)
|
||||
|> angledLine(angle = 300, length = triangleLen, tag = $c)
|
||||
|> extrude(length = triangleHeight)
|
||||
|
||||
fn circl(@x, face) {
|
||||
return startSketchOn(p, face = face)
|
||||
|> startProfile(at = [x + radius, triangleHeight/2])
|
||||
|> arc(
|
||||
angleStart = 0,
|
||||
angleEnd = 360,
|
||||
radius = radius,
|
||||
tag = $arc_tag,
|
||||
)
|
||||
|> close()
|
||||
}
|
||||
|
||||
c1 = circl(-200, face = c)
|
||||
plumbus1 =
|
||||
c1
|
||||
|> extrude(length = plumbusLen)
|
||||
|> fillet(
|
||||
radius = 5,
|
||||
tags = [c1.tags.arc_tag, getOppositeEdge(c1.tags.arc_tag)]
|
||||
)
|
||||
c2 = circl(200, face = a)
|
||||
plumbus0 =
|
||||
c2
|
||||
|> extrude(length = plumbusLen)
|
||||
|> fillet(
|
||||
radius = 5,
|
||||
tags = [c2.tags.arc_tag, getOppositeEdge(c2.tags.arc_tag)]
|
||||
, %)
|
||||
|
||||
|
Reference in New Issue
Block a user