remove pointless variable
This commit is contained in:
parent
760ccbda5a
commit
73b32f42c6
|
@ -27,8 +27,7 @@ func topPlane() sdf.SDF2 {
|
||||||
buttons = loggedMovement(buttons, v2.Vec{X: top.BoundingBox().Max.X / 2, Y: top.BoundingBox().Max.Y / 4}, "button cluster")
|
buttons = loggedMovement(buttons, v2.Vec{X: top.BoundingBox().Max.X / 2, Y: top.BoundingBox().Max.Y / 4}, "button cluster")
|
||||||
top = sdf.Difference2D(top, buttons)
|
top = sdf.Difference2D(top, buttons)
|
||||||
|
|
||||||
screws := screwHoles()
|
top = sdf.Difference2D(top, screwHoles())
|
||||||
top = sdf.Difference2D(top, screws)
|
|
||||||
|
|
||||||
return top
|
return top
|
||||||
}
|
}
|
||||||
|
@ -55,8 +54,7 @@ func wallsPlane() sdf.SDF2 {
|
||||||
tlCorner := sdf.Transform2D(trCorner, sdf.MirrorY())
|
tlCorner := sdf.Transform2D(trCorner, sdf.MirrorY())
|
||||||
walls = sdf.Union2D(walls, brCorner, blCorner, trCorner, tlCorner)
|
walls = sdf.Union2D(walls, brCorner, blCorner, trCorner, tlCorner)
|
||||||
|
|
||||||
screws := screwHoles()
|
walls = sdf.Difference2D(walls, screwHoles())
|
||||||
walls = sdf.Difference2D(walls, screws)
|
|
||||||
|
|
||||||
return walls
|
return walls
|
||||||
}
|
}
|
||||||
|
@ -64,8 +62,7 @@ func wallsPlane() sdf.SDF2 {
|
||||||
func bottomPlane() sdf.SDF2 {
|
func bottomPlane() sdf.SDF2 {
|
||||||
bottom := sdf.Box2D(v2.Vec{X: BODY_SIZE_X, Y: BODY_SIZE_Y}, BODY_CURVE)
|
bottom := sdf.Box2D(v2.Vec{X: BODY_SIZE_X, Y: BODY_SIZE_Y}, BODY_CURVE)
|
||||||
|
|
||||||
screws := screwHoles()
|
bottom = sdf.Difference2D(bottom, screwHoles())
|
||||||
bottom = sdf.Difference2D(bottom, screws)
|
|
||||||
|
|
||||||
return bottom
|
return bottom
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue