![]() ![]() I’m still working on trying to understand it. It seems like the difference tag is very particular to what order the code needs to be in. I couldn’t get the difference tag to play nicely with the text to do an engraving, but that’s okay. I also adjusted the distance of the inner difference with the bottom half of the box and made it a little longer so the box lid has a better fit. It should still work to slide into fit with the bottom half. I took the square ring and adjusted the settings of the ring to manually make the outer lid ring. The main difference tag from the lid did not want to apply from the square ring to subtract the difference of the square object to the lid to make the rim. I was able to get the differences to finally work on the extruded squares that I would be making the outer lid ring. The next part I couldn’t get to work quite right. I followed the tutorial from mathcodeprint to finish up making a lid for the other half of the box I made. OpenSCAD Tutorial for Beginners – Model a Toy Brick by mathcodeprint Iterate One of My OpenSCAD Projects ![]() Text(pegtext2, 1.5,halign= "center", valign= "center") Tutorial for code help from mathcodeprint So “BRICKS” needed to be first in that text sequence. Another thing I learned too with the text string is that the first one needs to be the text near the origin (0,0) because OpenSCAD works from the origin and out. I did have some hang ups that took some time to look for mistakes in my code when I was trying to get the text to appear right on top of the cylinder pegs. This was an easy tutorial to follow along. Their position was translated so they can fit in the center of the brick. For this brick size I needed 5 for the inside of the brick. They need a for tag to make a row of pegs. The same goes for the inside cylinder pegs. Tutorial Toy Brick Video Credit: mathcodeprint There are text tag strings also attached with the cylinders because they need to be inside those tags to appear properly on top of the cylinder pegs. The j variable is set to 1 because I just needed an extra row. Messing with the i variable number increases/decreases pegs. These two variables were added into the translate tag for the cylinders. Adjusting the third number in the translate adjusts the spacing between the pegs. There’s two “for” tags that go along with the top cylinders to make the pegs. The top cylinders needed more work to them. I took the difference for the bottom cylinders to make the round pegs that would help hold the brick together with another. Next I made three cylinders (one for the top and two for the bottom). I resized them and used a difference tag to subtract the second one from the first one to make the opening in the brick. I made my own building brick by following along with their video. I followed another tutorial from mathcodeprint on Youtube. OpenSCAD-Project Enclosure-Create round corners with Minkowski Sum by mathcodeprint Second OpenSCAD Design My planned changes for this box would be to go back in and do some final adjustments to the inner rim, make a matching lid, and customize the box by adding text or something else to it.Ĭode for this project and references below. Their videos have been really helpful so far so go check them out!!! I do have a tip when writing this code: Watch your brackets!!! () down to include the difference of the shape to make the inner rim of the box. ![]() I followed mathcodeprint ‘s tutorial on how to make a box because I was struggling with writing code and understanding it. ![]()
0 Comments
Leave a Reply. |