Alternatively, e.g., In[130]:= PolyhedronData[{"Prism", 7}, "NetImage"] <Deleted attachment> (But not, e.g., {"Prism", 11}.) In[132]:= PolyhedronData["PentagonalGyrocupolarotunda", "NetGraph"] <Deleted attachment> In[133]:= PolyhedronData[{"Prism", 3}, "NetCoordinates"] Out[133]= {{0, Sqrt[3]/2}, {0, 1/2 (2 + Sqrt[3])}, {1, Sqrt[3]/2}, {1, 1/2 (2 + Sqrt[3])}, {3/2, 0}, {3/2, 1 + Sqrt[3]}, {2, Sqrt[3]/ 2}, {2, 1/2 (2 + Sqrt[3])}, {3, Sqrt[3]/2}, {3, 1/2 (2 + Sqrt[3])}} --rwg On 2015-03-17 15:14, Tom Karzes wrote:
Hi Tom,
I agree it would be nice to be able to save snapshots as files, particularly of the unfolded forms. Ideally it would pop up a little "save as" window which would let you enter a file path to save to, but I don't know of any way to generate an in-memory file in JavaScript and then allow the user to save it locally.
I can privately generate GIF files directly from the polyhedron data, but I agree that a scalable format is preferable. SVG may in fact be ideal for this. One advantage to SVG is that it's a text format, so I suppose I could create a text window and write the SVG content into it, which the user could then manually copy/paste into a local file. It's ugly, but I think it would work as long as the content isn't too large.
The only other thing I can think of would be to set up a server app that would accept client requests and then generate temporary server files which the client could open and save. It seems silly to have to do it that way though, and I'm not sure I want to open up the server to that extent.
If anyone has a better idea for how to do this, I'd love to hear it.
Tom
Tom Knight writes:
That’s very nice!
It would be great if there were an easy way to get a PDF of the unfolded version, which could then be scaled and used to make models.
On Mar 17, 2015, at 1:32 AM, Tom Karzes <karzes@sonic.net> wrote:
Hi folks,
I've put together a simple interactive polyhedron viewer which might be of interest. It requires a web browser that's current enough to support html5, and JavaScript has to be enabled, but that's pretty much it.
Here's the URL:
http://karzes.best.vwh.net/polyhedra/polyhedron.html
You can click-and-drag the individual polyhedra to rotate them, or you can make them spin around automatically.
Some filters are available at the top, based on classification and on rotational symmetry. Please note that the rotational symmetry designations are deliberately broad and imprecise, so please don't flame me for their lack of specificity; it's intentional.
I should add that the click-and-drag functionality won't work with a touch screen, so you'll want to use a real mouse to use the full interface.
Anyway, let me know what you think.
Tom
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun