#1158 Minor cleanup

master
Marius Kintel 2015-03-03 01:26:25 -05:00
parent 333d402f77
commit ce1e0d9b80
7 changed files with 5 additions and 79 deletions

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -1,37 +0,0 @@
// translate.scad - Example for translate() usage in OpenSCAD
echo(version=version());
module example_translate()
{
translate([0, 0, -120]) {
difference() {
cylinder(h = 50, r = 100);
translate([0, 0, 10]) cylinder(h = 50, r = 80);
translate([100, 0, 35]) cube(50, center = true);
}
for (i = [0:5]) {
echo(360*i/6, sin(360*i/6)*80, cos(360*i/6)*80);
translate([sin(360*i/6)*80, cos(360*i/6)*80, 0 ])
cylinder(h = 200, r=10);
}
translate([0, 0, 200])
cylinder(h = 80, r1 = 120, r2 = 0);
}
}
example_translate();
// Written by Clifford Wolf <clifford@clifford.at> and Marius
// Kintel <marius@kintel.net>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to the
// public domain worldwide. This software is distributed without any
// warranty.
//
// You should have received a copy of the CC0 Public Domain
// Dedication along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

View File

@ -1,36 +0,0 @@
// union.scad - Example for union() usage in OpenSCAD
echo(version=version());
module example_union()
{
difference() {
union() {
cube([30, 30, 30], center = true);
cube([40, 15, 15], center = true);
cube([15, 40, 15], center = true);
cube([15, 15, 40], center = true);
}
union() {
cube([50, 10, 10], center = true);
cube([10, 50, 10], center = true);
cube([10, 10, 50], center = true);
}
}
}
example_union();
// Written by Clifford Wolf <clifford@clifford.at> and Marius
// Kintel <marius@kintel.net>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to the
// public domain worldwide. This software is distributed without any
// warranty.
//
// You should have received a copy of the CC0 Public Domain
// Dedication along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

View File

@ -5,19 +5,15 @@
"CSG.scad",
"CSG-modules.scad",
"logo_and_text.scad",
"children.scad",
"children_indexed.scad",
"linear_extrude.scad",
"rotate_extrude.scad",
"surface_image.scad",
"text_on_cube.scad",
"projection.scad",
"surface.scad",
"translate.scad",
"union.scad"
"surface.scad"
],
"Functions": [
"functions.scad",
"list_comprehensions.scad",
"recursion.scad"
],
"Shapes": [
@ -35,6 +31,9 @@
"text.scad"
],
"Advanced": [
"surface_image.scad",
"children.scad",
"children_indexed.scad",
"advance_intersection.scad",
"animation.scad",
"demo_cut.scad",