Merge remote-tracking branch 'origin/master' into libtess2

master
Marius Kintel 2015-01-15 14:47:13 -05:00
commit 9087369863
37 changed files with 971 additions and 32 deletions

View File

@ -11,3 +11,15 @@ intersection()
linear_extrude(height = 100, center = true, convexity= 3)
import(file = "advance_intersection.dxf");
}
// 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

@ -31,3 +31,15 @@ module demo_cut()
translate([ -30, 0, 0 ]) demo_proj();
translate([ +30, 0, 0 ]) demo_cut();
// 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

@ -75,3 +75,15 @@ translate([ 30, 0, 0 ])
nut();
spring();
// 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,6 +1,4 @@
// Menger Sponge
// By Nathan Hellweg, Emmett Lalish and Marius Kintel May 13, 2013
// CC-BY-SA license
// Size of edge of sponge
D=100;
@ -32,3 +30,14 @@ difference() {
rotate([45, atan(1/sqrt(2)), 0]) menger();
translate([0,0,-D]) cube(2*D, center=true);
}
// Written by Nathan Hellweg, Emmett Lalish and Marius Kintel May 13, 2013
//
// 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

@ -8,3 +8,14 @@ intersection_for(i = [
])
rotate(i) cube([100, 20, 20], center = true);
// 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

@ -43,3 +43,14 @@ module example006()
example006();
// 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,6 +1,4 @@
// Example for offset() usage
// (c) 2014 Torsten Paul
// CC-BY-SA 4.0
// offset.scad - Example for offset() usage in OpenSCAD
$fn = 40;
@ -31,3 +29,16 @@ translate([0, 0, foot_height]) {
%cylinder(r = 14, h = 100);
%translate([0, 0, 100]) sphere(r = 30);
// Written in 2014 by Torsten Paul <Torsten.Paul@gmx.de>
//
// 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

@ -20,3 +20,15 @@ module clock_hour_words(word_offset=20.0,word_height=2.0) {
}
clock_hour_words(word_offset=16.0,word_height=5.0);
// 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

@ -22,3 +22,15 @@ for (i = [1:4])
}
}
}
// 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

@ -0,0 +1,28 @@
echo(version=version());
module LetterBlock(letter, size=30) {
difference() {
translate([0,0,size/4])
cube([size,size,size/2], center=true);
translate([0,0,size/6])
linear_extrude(height=size, convexity=3)
text(letter,
size=size*22/30,
font="Tahoma",
halign="center",
valign="center");
}
}
LetterBlock("M");
// Written by 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,3 +1,5 @@
// difference_cube.scad - Example for difference() usage in OpenSCAD
echo(version=version());
module difference_cube()
@ -10,3 +12,16 @@ module difference_cube()
difference_cube();
// 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,3 +1,5 @@
// difference_sphere.scad - Example for difference() usage in OpenSCAD
echo(version=version());
module difference_sphere()
@ -25,3 +27,16 @@ module difference_sphere()
difference_sphere();
// 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,3 +1,5 @@
// intersection.scad - Example for intersection() usage in OpenSCAD
echo(version=version());
module example_intersection()
@ -22,3 +24,16 @@ module example_intersection()
example_intersection();
// 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,6 +1,4 @@
// Example for text() usage
// (c) 2014 Torsten Paul
// CC-BY-SA 4.0
// logo_and_text.scad - Example for text() usage in OpenSCAD
echo(version=version());
@ -46,3 +44,15 @@ translate([110, 0, 80]) {
translate([160, 0, -40]) black() t("Solid 3D CAD Modeller");
}
// Written in 2014 by Torsten Paul <Torsten.Paul@gmx.de>
//
// 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,3 +1,5 @@
// surface.scad - Example for surface() usage in OpenSCAD
//
// surface.dat generated using octave:
// d = (sin(1:0.2:10)' * cos(1:0.2:10)) * 10;
// save("surface.dat", "d");
@ -13,3 +15,17 @@ intersection()
surface(file = "surface.dat",
center = true, convexity = 5);
}
// 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,6 +1,4 @@
// Example for text() usage
// (c) 2014 Torsten Paul
// CC-BY-SA 4.0
// text_on_cube.scad - Example for text() usage in OpenSCAD
echo(version=version());
@ -38,3 +36,16 @@ difference() {
translate([0, 0, o]) letter("\u263A");
translate([0, 0, -o - letter_height]) letter("\u263C");
}
// Written in 2014 by Torsten Paul <Torsten.Paul@gmx.de>
//
// 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,3 +1,5 @@
// translate.scad - Example for translate() usage in OpenSCAD
echo(version=version());
module example_translate()
@ -19,3 +21,17 @@ module example_translate()
}
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,3 +1,5 @@
// union.scad - Example for union() usage in OpenSCAD
echo(version=version());
module example_union()
@ -19,3 +21,16 @@ module example_union()
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/>.

121
examples/COPYING-CC0.txt Normal file
View File

@ -0,0 +1,121 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.

View File

@ -64,3 +64,14 @@ translate([0, 0, -10])
// cutview();
// 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

@ -29,3 +29,14 @@ intersection()
import(file = "fan_view.dxf", layer = "fan_side", origin = fan_side_center);
}
// 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

@ -31,3 +31,15 @@ difference()
import(file = "text.dxf", layer = "X");
}
}
// 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/>.

450
examples/Shapes/M.stl Normal file
View File

@ -0,0 +1,450 @@
solid OpenSCAD_Model
facet normal -1 0 0
outer loop
vertex -15 15 0
vertex -15 -15 0
vertex -15 -15 15
endloop
endfacet
facet normal -1 -0 -0
outer loop
vertex -15 15 15
vertex -15 15 0
vertex -15 -15 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 6.88264 -10.8438 15
vertex -6.49335 -10.8438 15
vertex 15 -15 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -9.24535 11.3642 15
vertex -15 15 15
vertex -9.24535 -10.8438 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 5.72964 11.3642 15
vertex -5.22034 11.3642 15
vertex 0.351639 -0.977737 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -15 15 15
vertex -15 -15 15
vertex -9.24535 -10.8438 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -5.22034 11.3642 15
vertex -15 15 15
vertex -9.24535 11.3642 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 15 15 15
vertex -15 15 15
vertex -5.22034 11.3642 15
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 9.82664 11.3642 15
vertex 15 15 15
vertex 5.72964 11.3642 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 15 15 15
vertex -5.22034 11.3642 15
vertex 5.72964 11.3642 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.82664 -10.8438 15
vertex 15 15 15
vertex 9.82664 11.3642 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 15 -15 15
vertex 9.82664 -10.8438 15
vertex 6.88264 -10.8438 15
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 15 -15 15
vertex 15 15 15
vertex 9.82664 -10.8438 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -15 -15 15
vertex 15 -15 15
vertex -6.49335 -10.8438 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -6.49335 -10.8438 15
vertex 1.07065 -4.69974 15
vertex -0.726349 -4.69974 15
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 6.88264 -10.8438 15
vertex 6.88264 8.29724 15
vertex 1.07065 -4.69974 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -15 -15 15
vertex -6.49335 -10.8438 15
vertex -9.24535 -10.8438 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 6.88264 -10.8438 15
vertex 1.07065 -4.69974 15
vertex -6.49335 -10.8438 15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -6.49335 8.29724 15
vertex -6.49335 -10.8438 15
vertex -0.726349 -4.69974 15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 15 -15 15
vertex 15 -15 0
vertex 15 15 0
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 15 15 15
vertex 15 -15 15
vertex 15 15 0
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 15 15 0
vertex -15 15 0
vertex -15 15 15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 15 15 15
vertex 15 15 0
vertex -15 15 15
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 15 -15 0
vertex -15 -15 0
vertex -15 15 0
endloop
endfacet
facet normal -0 -0 -1
outer loop
vertex 15 15 0
vertex 15 -15 0
vertex -15 15 0
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -15 -15 15
vertex -15 -15 0
vertex 15 -15 0
endloop
endfacet
facet normal -0 -1 -0
outer loop
vertex 15 -15 15
vertex -15 -15 15
vertex 15 -15 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -6.49335 8.29724 5
vertex -9.24535 -10.8438 5
vertex -6.49335 -10.8438 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -6.49335 8.29724 5
vertex -9.24535 11.3642 5
vertex -9.24535 -10.8438 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 1.07065 -4.69974 5
vertex 0.351639 -0.977737 5
vertex -0.726349 -4.69974 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.351639 -0.977737 5
vertex -6.49335 8.29724 5
vertex -0.726349 -4.69974 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex -5.22034 11.3642 5
vertex -9.24535 11.3642 5
vertex -6.49335 8.29724 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.82664 -10.8438 5
vertex 6.88264 8.29724 5
vertex 6.88264 -10.8438 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.82664 11.3642 5
vertex 6.88264 8.29724 5
vertex 9.82664 -10.8438 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 9.82664 11.3642 5
vertex 5.72964 11.3642 5
vertex 6.88264 8.29724 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 6.88264 8.29724 5
vertex 0.351639 -0.977737 5
vertex 1.07065 -4.69974 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 5.72964 11.3642 5
vertex 0.351639 -0.977737 5
vertex 6.88264 8.29724 5
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.351639 -0.977737 5
vertex -5.22034 11.3642 5
vertex -6.49335 8.29724 5
endloop
endfacet
facet normal 0.914058 0.405584 0
outer loop
vertex -0.726349 -4.69974 5
vertex -6.49335 8.29724 5
vertex -6.49335 8.29724 15
endloop
endfacet
facet normal 0.914058 0.405584 0
outer loop
vertex -0.726349 -4.69974 15
vertex -0.726349 -4.69974 5
vertex -6.49335 8.29724 15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 1.07065 -4.69974 5
vertex -0.726349 -4.69974 5
vertex -0.726349 -4.69974 15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 1.07065 -4.69974 15
vertex 1.07065 -4.69974 5
vertex -0.726349 -4.69974 15
endloop
endfacet
facet normal -0.912882 0.408223 0
outer loop
vertex 6.88264 8.29724 5
vertex 1.07065 -4.69974 5
vertex 1.07065 -4.69974 15
endloop
endfacet
facet normal -0.912882 0.408223 0
outer loop
vertex 6.88264 8.29724 15
vertex 6.88264 8.29724 5
vertex 1.07065 -4.69974 15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.88264 -10.8438 15
vertex 6.88264 -10.8438 5
vertex 6.88264 8.29724 5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 6.88264 8.29724 15
vertex 6.88264 -10.8438 15
vertex 6.88264 8.29724 5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 9.82664 -10.8438 5
vertex 6.88264 -10.8438 5
vertex 6.88264 -10.8438 15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 9.82664 -10.8438 15
vertex 9.82664 -10.8438 5
vertex 6.88264 -10.8438 15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 9.82664 11.3642 5
vertex 9.82664 -10.8438 5
vertex 9.82664 -10.8438 15
endloop
endfacet
facet normal -1 -0 -0
outer loop
vertex 9.82664 11.3642 15
vertex 9.82664 11.3642 5
vertex 9.82664 -10.8438 15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 5.72964 11.3642 15
vertex 5.72964 11.3642 5
vertex 9.82664 11.3642 5
endloop
endfacet
facet normal -0 -1 -0
outer loop
vertex 9.82664 11.3642 15
vertex 5.72964 11.3642 15
vertex 9.82664 11.3642 5
endloop
endfacet
facet normal 0.916746 -0.399471 0
outer loop
vertex 0.351639 -0.977737 15
vertex 0.351639 -0.977737 5
vertex 5.72964 11.3642 5
endloop
endfacet
facet normal 0.916746 -0.399471 0
outer loop
vertex 5.72964 11.3642 15
vertex 0.351639 -0.977737 15
vertex 5.72964 11.3642 5
endloop
endfacet
facet normal -0.911421 -0.411475 -0
outer loop
vertex -5.22034 11.3642 15
vertex -5.22034 11.3642 5
vertex 0.351639 -0.977737 5
endloop
endfacet
facet normal -0.911421 -0.411475 -0
outer loop
vertex 0.351639 -0.977737 15
vertex -5.22034 11.3642 15
vertex 0.351639 -0.977737 5
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -9.24535 11.3642 15
vertex -9.24535 11.3642 5
vertex -5.22034 11.3642 5
endloop
endfacet
facet normal -0 -1 -0
outer loop
vertex -5.22034 11.3642 15
vertex -9.24535 11.3642 15
vertex -5.22034 11.3642 5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex -9.24535 -10.8438 15
vertex -9.24535 -10.8438 5
vertex -9.24535 11.3642 5
endloop
endfacet
facet normal 1 0 0
outer loop
vertex -9.24535 11.3642 15
vertex -9.24535 -10.8438 15
vertex -9.24535 11.3642 5
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -6.49335 -10.8438 5
vertex -9.24535 -10.8438 5
vertex -9.24535 -10.8438 15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex -6.49335 -10.8438 15
vertex -6.49335 -10.8438 5
vertex -9.24535 -10.8438 15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -6.49335 8.29724 5
vertex -6.49335 -10.8438 5
vertex -6.49335 -10.8438 15
endloop
endfacet
facet normal -1 -0 -0
outer loop
vertex -6.49335 8.29724 15
vertex -6.49335 8.29724 5
vertex -6.49335 -10.8438 15
endloop
endfacet
endsolid OpenSCAD_Model

View File

@ -1,10 +1,5 @@
// chopped_blocks.stl is derived from Mblock.stl
// (c) 2009 Will Langford licensed under
// the Creative Commons - GNU GPL license.
// http://www.thingiverse.com/thing:753
//
// Jonas Pfeil converted the file to binary
// STL and duplicated its content.
// chopped_blocks.stl is derived from Basics/LetterBlock.scad
// The exported STL was converted to binary using MeshLab
echo(version=version());
@ -21,7 +16,7 @@ module blk2() {
}
module chop() {
translate([ -14, 0, 0 ])
translate([ -18, 0, 0 ])
import(file = "chopped_blocks.stl", convexity = 12);
}
@ -36,3 +31,14 @@ difference() {
}
}
// 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/>.

Binary file not shown.

View File

@ -13,3 +13,14 @@ for (i = [-100:5:+100]) {
translate([ i, 0, -30 ]) cylinder(r1 = 6, r2 = 2, h = get_cylinder_h(i)*3);
}
// 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

@ -27,3 +27,14 @@ module shape()
// linear_extrude(convexity = 10, center = true)
shape();
// 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

@ -16,3 +16,15 @@ polyhedron(
[4, 0, 3]
]
);
// 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

@ -36,3 +36,14 @@ module roundedBox(size, radius, sidesonly)
translate([-15,0,0])roundedBox([20,30,40], 5, true);
translate([15,0,0]) roundedBox([20,30,40], 5, false);
// 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,6 +1,4 @@
// example012.stl is Mblock.stl, (c) 2009 Will Langford
// licensed under the Creative Commons - GNU GPL license.
// http://www.thingiverse.com/thing:753
// M.stl is generated from Basics/LetterBlock.scad
echo(version=version());
@ -8,6 +6,18 @@ difference()
{
sphere(20);
translate([ -2.92, 0.5, +20 ]) rotate([180, 0, 180])
import("sphere.stl", convexity = 5);
translate([ 0, 0.5, +20 ]) rotate([180, 0, 180])
import("M.stl", convexity = 5);
}
// 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

@ -156,3 +156,14 @@ if (mode == "exploded")
if (mode == "assembled")
assembled();
// 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

@ -13,8 +13,8 @@
* MDI
* FIXME: Windows cmd-line fixes
* Qt5, retina
* SVG import/export
* AMF import/export
* SVG export
* AMF export
* Color schemes for viewer and editor can be user-edited
* Improved editor
* Splash screen

View File

@ -299,6 +299,8 @@ void QGLView::mouseReleaseEvent(QMouseEvent*)
bool QGLView::save(const char *filename)
{
// Force reading from front buffer. Some configurations will read from the back buffer here.
glReadBuffer(GL_FRONT);
QImage img = grabFrameBuffer();
return img.save(filename, "PNG");
}

View File

@ -1753,6 +1753,8 @@ void MainWindow::csgRender()
}
if (viewActionAnimate->isChecked() && e_dump->isChecked()) {
// Force reading from front buffer. Some configurations will read from the back buffer here.
glReadBuffer(GL_FRONT);
QImage img = this->qglview->grabFrameBuffer();
QString filename;
double s = this->e_fsteps->text().toDouble();

View File

@ -0,0 +1,15 @@
group() {
group();
group() {
difference() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 7.5], [0, 0, 0, 1]]) {
cube(size = [30, 30, 15], center = true);
}
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 5], [0, 0, 0, 1]]) {
linear_extrude(height = 30, center = false, convexity = 3, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
text(text = "M", size = 22, spacing = 1, font = "Tahoma", direction = "ltr", language = "en", script = "latin", halign = "center", valign = "center", $fn = 0, $fa = 12, $fs = 2);
}
}
}
}
}

View File

@ -17,7 +17,7 @@ group() {
}
}
group() {
multmatrix([[1, 0, 0, -14], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
multmatrix([[1, 0, 0, -18], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
import(file = "chopped_blocks.stl", layer = "", origin = [0, 0], scale = 1, convexity = 12, $fn = 0, $fa = 12, $fs = 2);
}
}
@ -36,7 +36,7 @@ group() {
}
}
group() {
multmatrix([[1, 0, 0, -14], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
multmatrix([[1, 0, 0, -18], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
import(file = "chopped_blocks.stl", layer = "", origin = [0, 0], scale = 1, convexity = 12, $fn = 0, $fa = 12, $fs = 2);
}
}
@ -55,7 +55,7 @@ group() {
}
}
group() {
multmatrix([[1, 0, 0, -14], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
multmatrix([[1, 0, 0, -18], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
import(file = "chopped_blocks.stl", layer = "", origin = [0, 0], scale = 1, convexity = 12, $fn = 0, $fa = 12, $fs = 2);
}
}
@ -74,7 +74,7 @@ group() {
}
}
group() {
multmatrix([[1, 0, 0, -14], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
multmatrix([[1, 0, 0, -18], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
import(file = "chopped_blocks.stl", layer = "", origin = [0, 0], scale = 1, convexity = 12, $fn = 0, $fa = 12, $fs = 2);
}
}

View File

@ -2,9 +2,9 @@ group() {
group();
difference() {
sphere($fn = 0, $fa = 12, $fs = 2, r = 20);
multmatrix([[1, 0, 0, -2.92], [0, 1, 0, 0.5], [0, 0, 1, 20], [0, 0, 0, 1]]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0.5], [0, 0, 1, 20], [0, 0, 0, 1]]) {
multmatrix([[-1, 0, 0, 0], [0, 1, 0, 0], [0, 0, -1, 0], [0, 0, 0, 1]]) {
import(file = "sphere.stl", layer = "", origin = [0, 0], scale = 1, convexity = 5, $fn = 0, $fa = 12, $fs = 2);
import(file = "M.stl", layer = "", origin = [0, 0], scale = 1, convexity = 5, $fn = 0, $fa = 12, $fs = 2);
}
}
}