discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

It is always fine if one can combine two or more hobbys

KE
Karl Exler
Sun, Feb 12, 2023 8:30 AM

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

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
AM
Adrian Mariano
Sun, Feb 12, 2023 12:47 PM

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

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 >
RD
Revar Desmera
Mon, Feb 13, 2023 10:10 PM

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