discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

how create the shape of lenses for glasses?

O
oda
Sun, Dec 31, 2017 2:35 PM

I would like to print my glasses.
To do this I have to recreate the shape of the lenses (to subtract them from
the frames of the glasses) but it is very difficult.
can you give me some advice on how to do it?
Thank you in advance,
Oda http://forum.openscad.org/file/t1785/glasses.jpeg

--
Sent from: http://forum.openscad.org/

I would like to print my glasses. To do this I have to recreate the shape of the lenses (to subtract them from the frames of the glasses) but it is very difficult. can you give me some advice on how to do it? Thank you in advance, Oda <http://forum.openscad.org/file/t1785/glasses.jpeg> -- Sent from: http://forum.openscad.org/
NH
nop head
Sun, Dec 31, 2017 3:31 PM

If you have a scanner you can scan the lens and use InkScape to generate a
vector outline. Then use the InkScape OpenScad plugin that exports a
polygon.

On 31 December 2017 at 14:35, oda odaepo@gmail.com wrote:

I would like to print my glasses.
To do this I have to recreate the shape of the lenses (to subtract them
from
the frames of the glasses) but it is very difficult.
can you give me some advice on how to do it?
Thank you in advance,
Oda http://forum.openscad.org/file/t1785/glasses.jpeg

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

If you have a scanner you can scan the lens and use InkScape to generate a vector outline. Then use the InkScape OpenScad plugin that exports a polygon. On 31 December 2017 at 14:35, oda <odaepo@gmail.com> wrote: > I would like to print my glasses. > To do this I have to recreate the shape of the lenses (to subtract them > from > the frames of the glasses) but it is very difficult. > can you give me some advice on how to do it? > Thank you in advance, > Oda <http://forum.openscad.org/file/t1785/glasses.jpeg> > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
C
Chocrates
Sun, Dec 31, 2017 4:29 PM

A less exact way to do it would be to create a polygon roughly the shape you
are after and run the minkowski algorithm on it to round the edges:
http://forum.openscad.org/file/t2113/lens.png

$fn=360;

linear_extrude(1){
minkowski(){
polygon(
points = [
[0,0],
[57.55, 0],
[57.55,32],
[7.55,32]
],
paths = [[0,1,2,3]]
);
circle(r=10, center=true);
}
}

--
Sent from: http://forum.openscad.org/

A less exact way to do it would be to create a polygon roughly the shape you are after and run the minkowski algorithm on it to round the edges: <http://forum.openscad.org/file/t2113/lens.png> $fn=360; linear_extrude(1){ minkowski(){ polygon( points = [ [0,0], [57.55, 0], [57.55,32], [7.55,32] ], paths = [[0,1,2,3]] ); circle(r=10, center=true); } } -- Sent from: http://forum.openscad.org/
RP
Ronaldo Persiano
Sun, Dec 31, 2017 6:28 PM

Rounding polygons are easier done with offset(). To avoid enlarging the
polygon it should used twice.

See:
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Tips_and_Tricks#Rounding_polygons

Rounding polygons are easier done with offset(). To avoid enlarging the polygon it should used twice. See: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Tips_and_Tricks#Rounding_polygons
M
MichaelAtOz
Mon, Jan 1, 2018 5:36 AM

create the shape of lenses for glasses
I would like to print my glasses.

At first glance I though, gee there must be some advances I haven't heard
about if we can now print lenses...


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

> create the shape of lenses for glasses > I would like to print my glasses. At first glance I though, gee there must be some advances I haven't heard about if we can now print lenses... ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/