So, in the last time, beside 3D-printing a learned a lot about
WLED-project. And here is a new idea.
If I can manage to get a pattern like in the attachment (lets assume
5x5cm) in a SVG file.
How could I manage to create a sphere from it? In OpenScad of course.
Thanks a lot
Karl
Aren't SVG files flat? You can't do 3d designs, right? There is no way to
map a flat pattern onto a sphere without introducing some kind of
distortion. I can't tell what the pattern's symmetry is. Maybe it's
icosahedral? If that were the case you could have the triangular pattern
and load it as an svg, extrude it to a shape to cut, translate it to all
the faces of an icosahedron and then you'd cut a (distorted) image of your
original flat pattern tiling the sphere.
Code example using BOSL2, which knows the platonic (and other) solids. So
if you can find the pattern you need to substitute for the "A" in the
example you're off to a start.
include<BOSL2/std.scad>
include<BOSL2/polyhedra.scad>
difference(){
sphere(d=40);
sphere(d=39);
regular_polyhedron("icosahedron", d=40,draw=false)
{
linear_extrude(5)
text("A",halign="center",valign="center");
}
}
[image: image.png]
On Sun, Feb 12, 2023 at 3:32 AM Karl Exler karl.exler@meinklang.cc wrote:
So, in the last time, beside 3D-printing a learned a lot about
WLED-project. And here is a new idea.
If I can manage to get a pattern like in the attachment (lets assume
5x5cm) in a SVG file.
How could I manage to create a sphere from it? In OpenScad of course.
Thanks a lot
Karl
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
If you use sphere_copies()
(with cone_ang=180
) instead of regular_polyhedron()
, you gain more control over number of copies placed, at the cost of exact placement regularity.
-Revar
On Feb 12, 2023, at 4:47 AM, Adrian Mariano <avm4@cornell.edu> wrote:
Aren't SVG files flat? You can't do 3d designs, right? There is no way to map a flat pattern onto a sphere without introducing some kind of distortion. I can't tell what the pattern's symmetry is. Maybe it's icosahedral? If that were the case you could have the triangular pattern and load it as an svg, extrude it to a shape to cut, translate it to all the faces of an icosahedron and then you'd cut a (distorted) image of your original flat pattern tiling the sphere.
Code example using BOSL2, which knows the platonic (and other) solids. So if you can find the pattern you need to substitute for the "A" in the example you're off to a start.
include<BOSL2/std.scad>
include<BOSL2/polyhedra.scad>difference(){
sphere(d=40);
sphere(d=39);
regular_polyhedron("icosahedron", d=40,draw=false)
{
linear_extrude(5)
text("A",halign="center",valign="center");
}
}<image.png>
On Sun, Feb 12, 2023 at 3:32 AM Karl Exler <karl.exler@meinklang.cc> wrote:
So, in the last time, beside 3D-printing a learned a lot about
WLED-project. And here is a new idea.
If I can manage to get a pattern like in the attachment (lets assume
5x5cm) in a SVG file.How could I manage to create a sphere from it? In OpenScad of course.
Thanks a lot
Karl_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org