discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

rotate around a "virtual axis"

YA
Yona Appletree
Sat, Jun 6, 2015 1:50 AM

Glad to hear it, Emanuele!

I'm glad someone else is getting use out of my geodesic calculations in
OpenSCAD. I was surprised not to find another implementation, and
writing it was a bit of a pain, so I'm happy to save others the pain of
that recursion hell :)

Let me know if there's anything specific you'd like it to do, and I can
try and point you in the right direction or make the changes myself, if
they're simple.

Best,

Yona

Emanuele Spatola mailto:emanuele.spatola@gmail.com
June 5, 2015 at 18:04
Thanks Yona, the "nice_rendering.scad" works perfectly!
The truncated icosahedron has a limited number of faces, I need
something more flexible like the "Goldberg Polyhedra".
I think the code would not change much as in the currently generated
polyhedron the pentagon and hexagon are already there, we just need to
remove some edges.. (said like that it is seems easy :)
I'm already printing it:
https://www.dropbox.com/s/fkh63u84h6vll9g/Screen%20Shot%202015-06-06%20at%2001.49.09.png?dl=0
but in the meantime I'll try to look into your code to see if I can
make it like I need.
I'm working on a rolling ball robot and I still have a lot of other
pieces to design.

Thanks a lot!!

Emanuele


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Yona Appletree mailto:hypher@gmail.com
June 5, 2015 at 13:48
Emanuele,

There's a really fantastic polyhedron set for OpenSCAD available here:
http://kitwallace.co.uk/3d/solid-index.xq

They render like this:
https://www.dropbox.com/s/881dv9jy8l9e2pg/Screenshot%202015-06-05%2013.39.22.png?dl=0
I updated that gist to include an example of how to this -- just run
git pull to grab the new nice_rendering.scad file.

The logic used to generate those is pretty complex, but it's fairly
easy to swap in a new polyhedron. The result looks like this:
https://www.dropbox.com/s/xi0dxp9wjlammj7/Screenshot%202015-06-05%2013.44.12.png?dl=0

If you want just pentagons and hexagons, you can just use the
truncated icosahedron provided here:
http://kitwallace.co.uk/3d/solid-to-scad.xq?id=TruncatedIcosahedron&scad=shell
Which looks like this:
https://www.dropbox.com/s/ooa88h6y0v4meao/Screenshot%202015-06-05%2013.47.18.png?dl=0

Cheers,

Yona

Emanuele Spatola mailto:emanuele.spatola@gmail.com
June 5, 2015 at 12:15
Yona, your design is great!! Thank for sharing it.
I was trying to understand the code, but I have to say I'm quite lost :(
I'd need it to look like this: http://www.thingiverse.com/thing:79337
My idea is for each triangular face, create a pyramid with base the
triangle itself (a bit smaller) and as top the center of the polyhedron.
then subtract all this pyramid from the main polyhedron.
The problem is I have no idea where to start, any suggestion? :)

Thanks,
Emanuele


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Yona Appletree mailto:hypher@gmail.com
June 5, 2015 at 00:40
Emanuele,

Here's another thing that has the hexagons and pentagons calculated:
http://www.thingiverse.com/thing:334955

That thing (and most of the others I've seen) "cheat" in the sense
that they don't actually do face sub-division, which is a bit tricky
to implement in the OpenSCAD language.

I've created a gist,
https://gist.github.com/Yona-Appletree/a03bc32a5c5ca6886e38 with my
implementation of geodesic slicing. The geodesic_example.scad file
contains an example of using the library. You'll have to excuse the
quality of the code... I was just learning OpenSCAD and geodesic math
at the time, so it's kind of funky, but it does work correctly, as far
as I know.

Best,

Yona

Emanuele Spatola mailto:emanuele.spatola@gmail.com
June 4, 2015 at 17:56
After almost a day of failed attempts and research, I found out what I
wanted to create is not physically possible :)
or at least it's not possible just with hexagons, you need to put some
pentagons in the middle.
The name of the polyhedron is Geodesic Sphere dual:
http://en.wikipedia.org/wiki/Geodesic_dome#Chord_factors

the design is not as straightforward as I thought, I found a couple of
.scad sources:
http://www.thingiverse.com/thing:345775
http://www.thingiverse.com/thing:65820
but they are not parametric.

Also turned out openJsC
http://openjscad.org/#examples/sphere.jscadAD has a geodesic sphere
built in:
https://plus.google.com/+ReneKMueller/posts/5hp2CcMRJqu

So now I'm playing with the geodesic sphere source code trying to make
what I need:
http://openjscad.org/#examples/geodesic-sphere.jscad

Thanks to everybody who helped!!

Emanuele


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

Glad to hear it, Emanuele! I'm glad someone else is getting use out of my geodesic calculations in OpenSCAD. I was surprised not to find another implementation, and writing it was a bit of a pain, so I'm happy to save others the pain of that recursion hell :) Let me know if there's anything specific you'd like it to do, and I can try and point you in the right direction or make the changes myself, if they're simple. Best, Yona > Emanuele Spatola <mailto:emanuele.spatola@gmail.com> > June 5, 2015 at 18:04 > Thanks Yona, the "nice_rendering.scad" works perfectly! > The truncated icosahedron has a limited number of faces, I need > something more flexible like the "Goldberg Polyhedra". > I think the code would not change much as in the currently generated > polyhedron the pentagon and hexagon are already there, we just need to > remove some edges.. (said like that it is seems easy :) > I'm already printing it: > https://www.dropbox.com/s/fkh63u84h6vll9g/Screen%20Shot%202015-06-06%20at%2001.49.09.png?dl=0 > but in the meantime I'll try to look into your code to see if I can > make it like I need. > I'm working on a rolling ball robot and I still have a lot of other > pieces to design. > > Thanks a lot!! > > Emanuele > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > Yona Appletree <mailto:hypher@gmail.com> > June 5, 2015 at 13:48 > Emanuele, > > There's a really fantastic polyhedron set for OpenSCAD available here: > http://kitwallace.co.uk/3d/solid-index.xq > > They render like this: > https://www.dropbox.com/s/881dv9jy8l9e2pg/Screenshot%202015-06-05%2013.39.22.png?dl=0 > I updated that gist to include an example of how to this -- just run > git pull to grab the new nice_rendering.scad file. > > The logic used to generate those is pretty complex, but it's fairly > easy to swap in a new polyhedron. The result looks like this: > https://www.dropbox.com/s/xi0dxp9wjlammj7/Screenshot%202015-06-05%2013.44.12.png?dl=0 > > If you want just pentagons and hexagons, you can just use the > truncated icosahedron provided here: > http://kitwallace.co.uk/3d/solid-to-scad.xq?id=TruncatedIcosahedron&scad=shell > Which looks like this: > https://www.dropbox.com/s/ooa88h6y0v4meao/Screenshot%202015-06-05%2013.47.18.png?dl=0 > > Cheers, > > Yona > > Emanuele Spatola <mailto:emanuele.spatola@gmail.com> > June 5, 2015 at 12:15 > Yona, your design is great!! Thank for sharing it. > I was trying to understand the code, but I have to say I'm quite lost :( > I'd need it to look like this: http://www.thingiverse.com/thing:79337 > My idea is for each triangular face, create a pyramid with base the > triangle itself (a bit smaller) and as top the center of the polyhedron. > then subtract all this pyramid from the main polyhedron. > The problem is I have no idea where to start, any suggestion? :) > > Thanks, > Emanuele > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > Yona Appletree <mailto:hypher@gmail.com> > June 5, 2015 at 00:40 > Emanuele, > > Here's another thing that has the hexagons and pentagons calculated: > http://www.thingiverse.com/thing:334955 > > That thing (and most of the others I've seen) "cheat" in the sense > that they don't actually do face sub-division, which is a bit tricky > to implement in the OpenSCAD language. > > I've created a gist, > https://gist.github.com/Yona-Appletree/a03bc32a5c5ca6886e38 with my > implementation of geodesic slicing. The geodesic_example.scad file > contains an example of using the library. You'll have to excuse the > quality of the code... I was just learning OpenSCAD and geodesic math > at the time, so it's kind of funky, but it does work correctly, as far > as I know. > > Best, > > Yona > > Emanuele Spatola <mailto:emanuele.spatola@gmail.com> > June 4, 2015 at 17:56 > After almost a day of failed attempts and research, I found out what I > wanted to create is not physically possible :) > or at least it's not possible just with hexagons, you need to put some > pentagons in the middle. > The name of the polyhedron is Geodesic Sphere dual: > http://en.wikipedia.org/wiki/Geodesic_dome#Chord_factors > > the design is not as straightforward as I thought, I found a couple of > .scad sources: > http://www.thingiverse.com/thing:345775 > http://www.thingiverse.com/thing:65820 > but they are not parametric. > > Also turned out openJsC > <http://openjscad.org/#examples/sphere.jscad>AD has a geodesic sphere > built in: > https://plus.google.com/+ReneKMueller/posts/5hp2CcMRJqu > > So now I'm playing with the geodesic sphere source code trying to make > what I need: > http://openjscad.org/#examples/geodesic-sphere.jscad > > Thanks to everybody who helped!! > > Emanuele > > > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org