discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

lithophane sphere with image

JD
John David
Wed, Mar 27, 2024 2:15 AM

In Revar's img2tex example above, I thought it interesting enough to save
the image and pass it onto a geodesist I know.  He asked some questions
about the world height exaggeration (which might make for some interesting
conversations), BUT it got me to thinking if we could overlay texture/color
maps like the USDA Plant Hardiness Zone Map <
https://planthardiness.ars.usda.gov/>, Level IV ecoregions <
https://www.epa.gov/eco-research/ecoregions>, and the like.  There are
likely MUCH easier ways to do this, but you have me intrigued.

EBo --

On Tue, Mar 26, 2024 at 9:10 PM Sanjeev Prabhakar via Discuss <
discuss@lists.openscad.org> wrote:

May be something like this would be more interesting:
This is done finding the intersecting lines between a sphere a solid
you can download the file from here:
https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad
[image: image.png]


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

In Revar's img2tex example above, I thought it interesting enough to save the image and pass it onto a geodesist I know. He asked some questions about the world height exaggeration (which might make for some interesting conversations), BUT it got me to thinking if we could overlay texture/color maps like the USDA Plant Hardiness Zone Map < https://planthardiness.ars.usda.gov/>, Level IV ecoregions < https://www.epa.gov/eco-research/ecoregions>, and the like. There are likely MUCH easier ways to do this, but you have me intrigued. EBo -- On Tue, Mar 26, 2024 at 9:10 PM Sanjeev Prabhakar via Discuss < discuss@lists.openscad.org> wrote: > May be something like this would be more interesting: > This is done finding the intersecting lines between a sphere a solid > you can download the file from here: > https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad > [image: image.png] > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JD
John David
Wed, Mar 27, 2024 2:24 AM

Gábor, take a look at the background math on implementing Science on the
Sphere https://sos.noaa.gov/.  If I recall correctly, you can take 4 or 5
images spaced 120 degrees apart, with the extra 2 being from above, and
possibly below (depending on the exact placement).  So I think you need at
least a 4'th one to fully cover the sphere, depending on the full 3D
geometry.

On Tue, Mar 26, 2024 at 10:15 PM John David ebo.2112@gmail.com wrote:

In Revar's img2tex example above, I thought it interesting enough to save
the image and pass it onto a geodesist I know.  He asked some questions
about the world height exaggeration (which might make for some interesting
conversations), BUT it got me to thinking if we could overlay texture/color
maps like the USDA Plant Hardiness Zone Map <
https://planthardiness.ars.usda.gov/>, Level IV ecoregions <
https://www.epa.gov/eco-research/ecoregions>, and the like.  There are
likely MUCH easier ways to do this, but you have me intrigued.

EBo --

On Tue, Mar 26, 2024 at 9:10 PM Sanjeev Prabhakar via Discuss <
discuss@lists.openscad.org> wrote:

May be something like this would be more interesting:
This is done finding the intersecting lines between a sphere a solid
you can download the file from here:
https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad
[image: image.png]


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Gábor, take a look at the background math on implementing Science on the Sphere <https://sos.noaa.gov/>. If I recall correctly, you can take 4 or 5 images spaced 120 degrees apart, with the extra 2 being from above, and possibly below (depending on the exact placement). So I think you need at least a 4'th one to fully cover the sphere, depending on the full 3D geometry. On Tue, Mar 26, 2024 at 10:15 PM John David <ebo.2112@gmail.com> wrote: > In Revar's img2tex example above, I thought it interesting enough to save > the image and pass it onto a geodesist I know. He asked some questions > about the world height exaggeration (which might make for some interesting > conversations), BUT it got me to thinking if we could overlay texture/color > maps like the USDA Plant Hardiness Zone Map < > https://planthardiness.ars.usda.gov/>, Level IV ecoregions < > https://www.epa.gov/eco-research/ecoregions>, and the like. There are > likely MUCH easier ways to do this, but you have me intrigued. > > EBo -- > > On Tue, Mar 26, 2024 at 9:10 PM Sanjeev Prabhakar via Discuss < > discuss@lists.openscad.org> wrote: > >> May be something like this would be more interesting: >> This is done finding the intersecting lines between a sphere a solid >> you can download the file from here: >> https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad >> [image: image.png] >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
GM
Gábor Magyar
Wed, Mar 27, 2024 1:25 PM

Hello!

Yes, I want that!

I don't really understand the script either.
How do I find common points of intersection?
How do the 'p' points "emerge" in your script?
img2tex? img2scad? With a different procedure?
The output structure of img2tex is different than in your example,
moreover, it only has 2 decimal places. You are much more accurate.

I would like to place a flat graphic on a horizontal band of an empty
sphere, then highlight it by a few millimeters. Or in another version,
for the inner surface.
As you can see in the picture with the dog.
I did it with a lithophane maker, then called in 3 copies rotated by
120 degrees.
The rendering of this also took several hours, and then the gcode became huge.

MAYBE if I generate the model directly in Openscad, maybe the result
will be smaller and more manageable.

Sanjeev Prabhakar via Discuss discuss@lists.openscad.org ezt írta
(időpont: 2024. márc. 27., Sze, 2:10):

May be something like this would be more interesting:
This is done finding the intersecting lines between a sphere a solid
you can download the file from here:
https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Hello! Yes, I want that! I don't really understand the script either. How do I find common points of intersection? How do the 'p' points "emerge" in your script? img2tex? img2scad? With a different procedure? The output structure of img2tex is different than in your example, moreover, it only has 2 decimal places. You are much more accurate. I would like to place a flat graphic on a horizontal band of an empty sphere, then highlight it by a few millimeters. Or in another version, for the inner surface. As you can see in the picture with the dog. I did it with a lithophane maker, then called in 3 copies rotated by 120 degrees. The rendering of this also took several hours, and then the gcode became huge. MAYBE if I generate the model directly in Openscad, maybe the result will be smaller and more manageable. Sanjeev Prabhakar via Discuss <discuss@lists.openscad.org> ezt írta (időpont: 2024. márc. 27., Sze, 2:10): > > May be something like this would be more interesting: > This is done finding the intersecting lines between a sphere a solid > you can download the file from here: > https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Wed, Mar 27, 2024 3:37 PM

This is created using python language.

I have written functions which can find the intersection line between 2
intersecting solids.

You dont need to learn python but only basics would be required to create
shapes.

I am insisting here that python should be part of openscad, so that
separate software is not required.
Guenther has done some work on this, but it is not official yet it seems.

coming to the point of finding intersection line:

  • 1st step is to create shapes with defined coordinate points in space and
    not through openscad primitives.
  • once the shapes are defined with points in space, then there are a lot of
    possibilities to manipulate these points.

example:
a cylinder is 2 circle placed one above another
[image: image.png]
a sphere is multiple circles with varying diameters which are placed one
above another and so on.
[image: image.png]

now to find intersection line between 2 solids say 's1' and 'c1' (for
sphere and cylinder respectively)
there is a function:
ip_sol2sol(s1,c1)  => see magenta line in below fig.
[image: image.png]

I have written a lot of documentation on these processes and functions
which you can find here (In case you are interested):
https://github.com/sprabhakar2006/openSCAD/blob/main/explanation%20of%20approaches/examples_of_various_functions.pdf

On Wed, 27 Mar 2024 at 18:55, Gábor Magyar via Discuss <
discuss@lists.openscad.org> wrote:

Hello!

Yes, I want that!

I don't really understand the script either.
How do I find common points of intersection?
How do the 'p' points "emerge" in your script?
img2tex? img2scad? With a different procedure?
The output structure of img2tex is different than in your example,
moreover, it only has 2 decimal places. You are much more accurate.

I would like to place a flat graphic on a horizontal band of an empty
sphere, then highlight it by a few millimeters. Or in another version,
for the inner surface.
As you can see in the picture with the dog.
I did it with a lithophane maker, then called in 3 copies rotated by
120 degrees.
The rendering of this also took several hours, and then the gcode became
huge.

MAYBE if I generate the model directly in Openscad, maybe the result
will be smaller and more manageable.

Sanjeev Prabhakar via Discuss discuss@lists.openscad.org ezt írta
(időpont: 2024. márc. 27., Sze, 2:10):

May be something like this would be more interesting:
This is done finding the intersecting lines between a sphere a solid
you can download the file from here:


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

This is created using python language. I have written functions which can find the intersection line between 2 intersecting solids. You dont need to learn python but only basics would be required to create shapes. I am insisting here that python should be part of openscad, so that separate software is not required. Guenther has done some work on this, but it is not official yet it seems. coming to the point of finding intersection line: - 1st step is to create shapes with defined coordinate points in space and not through openscad primitives. - once the shapes are defined with points in space, then there are a lot of possibilities to manipulate these points. example: a cylinder is 2 circle placed one above another [image: image.png] a sphere is multiple circles with varying diameters which are placed one above another and so on. [image: image.png] now to find intersection line between 2 solids say 's1' and 'c1' (for sphere and cylinder respectively) there is a function: ip_sol2sol(s1,c1) => see magenta line in below fig. [image: image.png] I have written a lot of documentation on these processes and functions which you can find here (In case you are interested): https://github.com/sprabhakar2006/openSCAD/blob/main/explanation%20of%20approaches/examples_of_various_functions.pdf On Wed, 27 Mar 2024 at 18:55, Gábor Magyar via Discuss < discuss@lists.openscad.org> wrote: > Hello! > > Yes, I want that! > > I don't really understand the script either. > How do I find common points of intersection? > How do the 'p' points "emerge" in your script? > img2tex? img2scad? With a different procedure? > The output structure of img2tex is different than in your example, > moreover, it only has 2 decimal places. You are much more accurate. > > I would like to place a flat graphic on a horizontal band of an empty > sphere, then highlight it by a few millimeters. Or in another version, > for the inner surface. > As you can see in the picture with the dog. > I did it with a lithophane maker, then called in 3 copies rotated by > 120 degrees. > The rendering of this also took several hours, and then the gcode became > huge. > > MAYBE if I generate the model directly in Openscad, maybe the result > will be smaller and more manageable. > > Sanjeev Prabhakar via Discuss <discuss@lists.openscad.org> ezt írta > (időpont: 2024. márc. 27., Sze, 2:10): > > > > May be something like this would be more interesting: > > This is done finding the intersecting lines between a sphere a solid > > you can download the file from here: > > > https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad > > > > _______________________________________________ > > 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 >
SP
Sanjeev Prabhakar
Sun, Mar 31, 2024 1:57 PM

I have made a youtube video as to how to project a sketch on to a surface

https://youtu.be/UvUdfEuQWQc

On Wed, 27 Mar 2024 at 21:07, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

This is created using python language.

I have written functions which can find the intersection line between 2
intersecting solids.

You dont need to learn python but only basics would be required to create
shapes.

I am insisting here that python should be part of openscad, so that
separate software is not required.
Guenther has done some work on this, but it is not official yet it seems.

coming to the point of finding intersection line:

  • 1st step is to create shapes with defined coordinate points in space and
    not through openscad primitives.
  • once the shapes are defined with points in space, then there are a lot
    of possibilities to manipulate these points.

example:
a cylinder is 2 circle placed one above another
[image: image.png]
a sphere is multiple circles with varying diameters which are placed one
above another and so on.
[image: image.png]

now to find intersection line between 2 solids say 's1' and 'c1' (for
sphere and cylinder respectively)
there is a function:
ip_sol2sol(s1,c1)  => see magenta line in below fig.
[image: image.png]

I have written a lot of documentation on these processes and functions
which you can find here (In case you are interested):

https://github.com/sprabhakar2006/openSCAD/blob/main/explanation%20of%20approaches/examples_of_various_functions.pdf

On Wed, 27 Mar 2024 at 18:55, Gábor Magyar via Discuss <
discuss@lists.openscad.org> wrote:

Hello!

Yes, I want that!

I don't really understand the script either.
How do I find common points of intersection?
How do the 'p' points "emerge" in your script?
img2tex? img2scad? With a different procedure?
The output structure of img2tex is different than in your example,
moreover, it only has 2 decimal places. You are much more accurate.

I would like to place a flat graphic on a horizontal band of an empty
sphere, then highlight it by a few millimeters. Or in another version,
for the inner surface.
As you can see in the picture with the dog.
I did it with a lithophane maker, then called in 3 copies rotated by
120 degrees.
The rendering of this also took several hours, and then the gcode became
huge.

MAYBE if I generate the model directly in Openscad, maybe the result
will be smaller and more manageable.

Sanjeev Prabhakar via Discuss discuss@lists.openscad.org ezt írta
(időpont: 2024. márc. 27., Sze, 2:10):

May be something like this would be more interesting:
This is done finding the intersecting lines between a sphere a solid
you can download the file from here:


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

I have made a youtube video as to how to project a sketch on to a surface https://youtu.be/UvUdfEuQWQc On Wed, 27 Mar 2024 at 21:07, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > This is created using python language. > > I have written functions which can find the intersection line between 2 > intersecting solids. > > You dont need to learn python but only basics would be required to create > shapes. > > I am insisting here that python should be part of openscad, so that > separate software is not required. > Guenther has done some work on this, but it is not official yet it seems. > > coming to the point of finding intersection line: > - 1st step is to create shapes with defined coordinate points in space and > not through openscad primitives. > - once the shapes are defined with points in space, then there are a lot > of possibilities to manipulate these points. > > example: > a cylinder is 2 circle placed one above another > [image: image.png] > a sphere is multiple circles with varying diameters which are placed one > above another and so on. > [image: image.png] > > now to find intersection line between 2 solids say 's1' and 'c1' (for > sphere and cylinder respectively) > there is a function: > ip_sol2sol(s1,c1) => see magenta line in below fig. > [image: image.png] > > I have written a lot of documentation on these processes and functions > which you can find here (In case you are interested): > > https://github.com/sprabhakar2006/openSCAD/blob/main/explanation%20of%20approaches/examples_of_various_functions.pdf > > > On Wed, 27 Mar 2024 at 18:55, Gábor Magyar via Discuss < > discuss@lists.openscad.org> wrote: > >> Hello! >> >> Yes, I want that! >> >> I don't really understand the script either. >> How do I find common points of intersection? >> How do the 'p' points "emerge" in your script? >> img2tex? img2scad? With a different procedure? >> The output structure of img2tex is different than in your example, >> moreover, it only has 2 decimal places. You are much more accurate. >> >> I would like to place a flat graphic on a horizontal band of an empty >> sphere, then highlight it by a few millimeters. Or in another version, >> for the inner surface. >> As you can see in the picture with the dog. >> I did it with a lithophane maker, then called in 3 copies rotated by >> 120 degrees. >> The rendering of this also took several hours, and then the gcode became >> huge. >> >> MAYBE if I generate the model directly in Openscad, maybe the result >> will be smaller and more manageable. >> >> Sanjeev Prabhakar via Discuss <discuss@lists.openscad.org> ezt írta >> (időpont: 2024. márc. 27., Sze, 2:10): >> > >> > May be something like this would be more interesting: >> > This is done finding the intersecting lines between a sphere a solid >> > you can download the file from here: >> > >> https://github.com/sprabhakar2006/openSCAD/blob/main/sphere_with_art.scad >> > >> > _______________________________________________ >> > 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 >> >