Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
platonicfolding(6)	       XScreenSaver manual	      platonicfolding(6)

NAME
     platonicfolding - Draws the unfolding and folding of the Platonic solids

SYNOPSIS
     platonicfolding  [--display  host:display.screen] [--install] [--visual vi-
     sual] [--window] [--root]	[--window-id  number]  [--delay  usecs]  [--fps]
     [--rotate]   [--colors   color-scheme]   [--face-colors]	[--earth-colors]
     [--foldings num-foldings]

DESCRIPTION
     The platonicfolding program shows the unfolding and folding of the Platonic
     solids.  For the five Platonic solids (the tetrahedron,  cube,  octahedron,
     dodecahedron,  and  icosahedron), all unfoldings of its faces are non-over-
     lapping: they form a net. The tetrahedron has 16 unfoldings, of  which  two
     are  essentially  different  (non-isomorphic), the cube and octahedron each
     have 384 unfoldings, of which eleven are non-isomorphic, and the  dodecahe-
     dron  and	icosahedron  each have 5,184,000 unfoldings, of which 43,380 are
     non-isomorphic. This program displays randomly selected unfoldings for  the
     five  Platonic  solids.   Note that while it is guaranteed that the nets of
     the Platonic solids are non-overlapping, their faces occasionally intersect
     during the unfolding and folding.

     The program displays the Platonic solids either using different colors  for
     each face (face colors) or with a illuminated view of the earth (earth col-
     ors).   When using face colors, the colors of the faces are randomly chosen
     each time a new Platonic solid is selected.  When using earth  colors,  the
     Platonic  solid is displayed as if the sphere of the earth were illuminated
     with the current position of the sun at the time the program is  run.   The
     hemisphere  the sun is currently illuminating is displayed with a satellite
     image of the earth by day and the other  hemisphere  is  displayed  with  a
     satellite image of the earth by night.  The specular highlight on the illu-
     minated hemisphere (which is only shown over bodies of water) is the subso-
     lar  point  (the point on earth above which the sun is perpendicular).  The
     earth's sphere is then projected onto the Platonic  solid	via  a	gnomonic
     projection.   The	program  randomly  selects whether the north pole or the
     south pole is facing upwards.  The inside of the earth is displayed with  a
     magma-like texture.

     At  the  beginning  of each cycle, the program selects one of the five Pla-
     tonic solids randomly and moves it to the center of the  screen.	It  then
     repeatedly selects a random net of the polyhedron and unfolds and folds the
     polyhedron.   The	unfolding  and folding can occur around each edge of the
     net successively or around all edges simultaneously.  At the  end	of  each
     cycle, the Platonic solid is moved offscreen and the next cycle begins.

     While  the  Platonic solid is moved on the screen or is unfolded or folded,
     it is rotated by default.	If earth colors are used, the rotation is always
     performed in the direction  the  earth  is  rotating  (counterclockwise  as
     viewed from the north pole towards the center of the earth).  This rotation
     optionally can be switched off.

OPTIONS
     platonicfolding accepts the following options:

     --window
	     Draw on a newly-created window.  This is the default.

     --root  Draw on the root window.

     --window-id number
	     Draw on the specified window.

     --install
	     Install a private colormap for the window.

     --visual visual
	     Specify which visual to use.  Legal values are the name of a visual
	     class, or the id number (decimal or hex) of a specific visual.

     --delay microseconds
	     How  much of a delay should be introduced between steps of the ani-
	     mation.  Default 25000, or 1/40th second.

     The following options determine whether the Platonic  solid  is  being  ro-
     tated.

     --rotate
	     Rotate the Platonic solid (default).

     --no-rotate
	     Do not rotate the Platonic solid.

     The  following three options are mutually exclusive.  They determine how to
     color the Platonic solid.

     --colors random
	     Display the Platonic solid with a random color scheme (default).

     --colors face (Shortcut: --face-colors)
	     Display the Platonic solid with different	colors	for  each  face.
	     The  colors of the faces are identical on the inside and outside of
	     the Platonic solid.

     --colors earth (Shortcut: --earth-colors)
	     Display the Platonic solid with a texture of earth  as  illuminated
	     by the sun at the time the program is run.

     The following option determines how many unfoldings and foldings to perform
     per cycle.

     --foldings random
	     Use a random number of unfoldings and foldings per cycle (default).

     --foldings int
	     If  an  integer  number  is  specified,  it is clipped to the range
	     1...20 and the clipped number is used as the number  of  unfoldings
	     and foldings per cycle.

INTERACTION
     If  you  run  this  program in standalone mode, you can rotate the Platonic
     solid by dragging the mouse while pressing the left mouse button.

ENVIRONMENT
     DISPLAY
	     to get the default host and display number.

     XENVIRONMENT
	     to get the name of a resource file that overrides	the  global  re-
	     sources stored in the RESOURCE_MANAGER property.

     XSCREENSAVER_WINDOW
	     The window ID to use with --root.

SEE ALSO
     X(1), xscreensaver(1),

FURTHER INFORMATION
     Takashi  Horiyama,  Wataru  Shoji: Edge Unfoldings of Platonic Solids Never
     Overlap.  In: 23rd Canadian Conference on Computational Geometry, 2011.

     Takashi Horiyama, Wataru Shoji: The Number of Different Unfoldings of Poly-
     hedra.  In: 24th International Symposium on Algorithms and Computation, pp.
     623-633, 2013.

     Taiping Zhang, Paul W.  Stackhouse  Jr.,  Bradley	Macpherson,  J.  Colleen
     Mikovitz: A solar azimuth formula that renders circumstantial treatment un-
     necessary	without compromising mathematical rigor: Mathematical setup, ap-
     plication and extension of a formula based on the subsolar point and  atan2
     function.	Renewable Energy 172:1333-1340, 2021.

COPYRIGHT
     Copyright	(C)  2025  by  Carsten Steger.	Permission to use, copy, modify,
     distribute, and sell this software and its documentation for any purpose is
     hereby granted without fee, provided that the above copyright notice appear
     in all copies and that both that copyright notice and this  permission  no-
     tice appear in supporting documentation.  No representations are made about
     the  suitability  of this software for any purpose.  It is provided "as is"
     without express or implied warranty.

AUTHOR
     Carsten Steger <carsten@mirsanmir.org>, 18-mar-2025.

X Version 11		       6.15 (30-Mar-2026)	      platonicfolding(6)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=platonicfolding&sektion=6&manpath=FreeBSD+Ports+15.1.quarterly>

home | help