Message Boards Message Boards

Using the Polytopes Package on the Wolfram Programming Cloud

Anonymous User
Anonymous User
Posted 10 years ago
Needs["Polytopes`"];
    faces = First /@ First@Normal@PolyhedronData["Dodecahedron", "Faces"];
    radius = InscribedRadius[Polygon[First[faces]]]

I’m trying to run this short program but it doesn’t work. Maybe I’m doing something wrong.

POSTED BY: Anonymous User

The Polytopes package does not support general polygons, only the ones listed in

http://reference.wolfram.com/language/Polytopes/tutorial/Polytopes.html

In this case, radius should be just

In[4]:= InscribedRadius[Pentagon]

Out[4]= 1/(2 Sqrt[5 - 2 Sqrt[5]])
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract