"generate a rocket using openSCAD" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "generate a rocket using openSCAD" answered properly. Developers are finding an appropriate answer about generate a rocket using openSCAD related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like generate a rocket using openSCAD. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on generate a rocket using openSCAD.
generate a rocket using openSCAD
// increase the visual detail
$fn = 100;
// the main body :
// a cylinder
rocket_d = 30; // 3 cm wide
rocket_r = rocket_d / 2;
rocket_h = 100; // 10 cm tall
cylinder(d = rocket_d, h = rocket_h);
// the head :
// a cone
head_d = 40; // 4 cm wide
head_r = head_d / 2;
head_h = 40; // 4 cm tall
// prepare a triangle
tri_base = head_r;
tri_height = head_h;
tri_points = [[0, 0],
[tri_base, 0],
[0, tri_height]];
// rotation around X-axis and then 360° around Z-axis
// put it on top of rocket's body
translate([0,0,rocket_h])
rotate_extrude(angle = 360)
polygon(tri_points);
// the wings :
// 3x triangles
wing_w = 2; // 2 mm thick
many = 3; // 3x wings
wing_l = 40; // length
wing_h = 40; // height
wing_points = [[0,0],[wing_l,0],[0,wing_h]];
module wing() {
// let it a bit inside the main body
in_by = 1; // 1 mm
// set it up on the rocket's perimeter
translate([rocket_r - in_by,0,0])
// set it upright by rotating around X-axis
rotate([90,0,0])
// set some width and center it
linear_extrude(height = wing_w,center = true)
// make a triangle
polygon(wing_points);
}
for (i = [0: many - 1])
rotate([0, 0, 360 / many * i])
wing();
Source: en.wikibooks.org
All those coders who are working on the Whatever based application and are stuck on generate a rocket using openSCAD can get a collection of related answers to their query. Programmers need to enter their query on generate a rocket using openSCAD related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about generate a rocket using openSCAD for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of generate a rocket using openSCAD while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "generate a rocket using openSCAD". Visit this developer's friendly online web community, CodeProZone, and get your queries like generate a rocket using openSCAD resolved professionally and stay updated to the latest Whatever updates.