rotate wallFrontLeft

This commit is contained in:
Octopus Octopus 2022-07-03 14:40:46 -05:00
parent 4600fb9640
commit 55cfad28c2
3 changed files with 6 additions and 4 deletions

View File

@ -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
}

Binary file not shown.

View File

@ -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())
}