File Exchange

image thumbnail

Platonic solids

version 2.0 (75.3 KB) by Nicolas Douillet
Compute and display the five platonic solids, and return their vertex coordinates and face sets. Options include radius and display.

11 Downloads

Updated 04 Jul 2020

View License

Please first check the examples tab (doc) here on the right for a complete description.

Once downloaded, typewrite 'doc platonic_solids' or 'help platonic_solids' in Matlab console for support.

To change the display, just modify the call to plot_mesh subfunction (line ~250) according to your preferences and to LineSpec rules, or simply do it a posteriori.

Cite As

Nicolas Douillet (2020). Platonic solids (https://www.mathworks.com/matlabcentral/fileexchange/77446-platonic-solids), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Updates

2.0

+ face_type option ('default' / 'triangle') to get triangulated meshes of cube and dodecahedron

1.8

- Reoriented faces coherently
- Improved display

1.7

Again

1.6

cover img again

1.5

New test (!)

1.3

cover img new test

1.2

cover img new test

1.1

cover img test

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux