diff --git a/fightstick/body3D.go b/fightstick/body3D.go index e967fe9..793912a 100644 --- a/fightstick/body3D.go +++ b/fightstick/body3D.go @@ -53,6 +53,8 @@ func wallFrontLeft() sdf.SDF3 { functionButtons = sdf.Transform3D(functionButtons, sdf.Translate3d(v3.Vec{X: BODY_SIZE_X/4.5 + (WALL_THICKNESS / 2), Y: -BODY_SIZE_Y / 2, Z: 0})) corner = sdf.Difference3D(corner, functionButtons) + corner = sdf.Transform3D(corner, sdf.Rotate3d(v3.Vec{X: 0, Y: 0, Z: 1}, sdf.DtoR(180))) + return corner } diff --git a/fightstick/fightstick b/fightstick/fightstick index c6a87e2..6d17806 100755 Binary files a/fightstick/fightstick and b/fightstick/fightstick differ diff --git a/fightstick/main.go b/fightstick/main.go index 86eb3ba..341b79d 100644 --- a/fightstick/main.go +++ b/fightstick/main.go @@ -15,10 +15,10 @@ func main() { render.RenderDXF(topPlane(), 600, "top.dxf") render.RenderDXF(wallsPlane(), 600, "walls.dxf") render.RenderDXF(wallCorner(), 600, "wallcorner.dxf") - render.ToSTL(wallFrontLeft(), 400, "wallfrontleft.stl", dc.NewDualContouringDefault()) - render.ToSTL(wallFrontRight(), 400, "wallfrontright.stl", dc.NewDualContouringDefault()) - render.ToSTL(wallBackLeft(), 400, "wallbackleft.stl", dc.NewDualContouringDefault()) - render.ToSTL(wallBackRight(), 400, "wallbackright.stl", dc.NewDualContouringDefault()) + render.ToSTL(wallFrontLeft(), 100, "wallfrontleft.stl", dc.NewDualContouringDefault()) + render.ToSTL(wallFrontRight(), 100, "wallfrontright.stl", dc.NewDualContouringDefault()) + render.ToSTL(wallBackLeft(), 100, "wallbackleft.stl", dc.NewDualContouringDefault()) + render.ToSTL(wallBackRight(), 100, "wallbackright.stl", dc.NewDualContouringDefault()) for i, ele := range tops { render.ToSTL(sdf.Extrude3D(ele, 3), 400, "top-"+strconv.Itoa(i)+".stl", dc.NewDualContouringDefault()) }