Quantcast
Channel: Extensions - SketchUp Community
Viewing all articles
Browse latest Browse all 3627

Polyhedra and Ruby script

$
0
0

@AlanF wrote:

I didn't know whether to categorise this post as Extensions or Ruby API, so I just put it in Pro as a catch-all.
I was browsing around for freebie generators in connection with this thread and I came across this rather nice program.
http://gsolaar.sourceforge.net/

It will create all kinds of polyhedra, either by specifying the number of sides, or by entering the requisite Wythoff symbol (which in the case of the truncated icosahedron is 2 5|3...it seems there are several possible polyhedra with 34 faces.)

Anyhow, the program seems to export either as a pattern for a paper model...or as a SketchUp Ruby script. The only problem is that the script isn't working on V2016. I'm not sure whether it's syntax errors or just old Ruby 1. Certainly, the UI part of the code seems to be looking for the Plugins menu, suggesting it's a little old.
Any gurus out there want to take a look at this. I figured it might be quite useful if a workflow could be established. Here's the script for the illustrated figure.
IcosahedralConvexIsogonalPolyhedron.rb (12.2 KB)

Posts: 9

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 3627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>