![]() ![]() When you are scaling/resizing an object and you are concerned about its resulting dimensions it is more convenient to use the resize command. Narrowed_spherical_wheel_using_resize.scad resize() You could achieve the same result using the following resize command. The dimensions along the X and Z axis remain the same (20 units) since the scaling factors along these axes are equal to 1. Thus, the resulting dimension of the scaled sphere along the Y axis is 8 units. In the previous example you started with a sphere that has a radius of 10 units (total dimension of 20 units along each axis) and scaled it by a factor of 0.4 along the Y axis. The difference between scale and resize is that when using the scale command, you have to specify the desired scaling factor along each axis but when using the resize command you have to specify the desired resulting dimensions of the object along each axis. ![]() Narrowed_spherical_wheel_using_scale.scad scale()Īnother way to scale objects is by using the resize transformation. Use the scale command to scale the sphere by a factor of 0.4 only along the Y axis. One way to do so is using the scale command.Įxercise Try creating a sphere with a radius of 10 units on a blank model. You can now squish the spheres to give them a more wheel like shape. The idea to use a sphere to create the wheels was nice. Is there still a need to rotate the wheels around the X axis? Is the wheel_width variable still required? Is there any visible change to your model when you modify the value of wheels_turn variable? To do so replace the appropriate cylinder commands with sphere commands. One idea that came to your head was to replace the cylindrical wheels with spherical ones.Įxercise Try making the wheels of your car spherical. The input parameter r corresponds to the radius of the sphere. You should notice that the sphere is created centered on the origin. You can create a sphere using the following command. Another 3D primitive that is available in OpenSCAD is the sphere. So far you have been using the cube and cylinder primitives. It’s time to put your creativity to work and learn more OpenSCAD features! One of them even challenged you to come up with different futuristic wheel designs. You showed the car to your friends and they were quite impressed with your new skills. The sphere primitive and resizing objects ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |