Skip to main content

wythoff-construct

Constructs and visualizes hyperdimensional polytopes created using Wythoff construction

INSTALLATION

pip install wythoff-construct

Note wythoff-construct requires python version 3.6 to 3.8. version 3.9 will be supported as soon as vtk (a dependancy) supports 3.9.

USAGE

Once installed using pip the following command will launch the application from any working directory

wythoff-construct

for general information regarding Wythoff Construction see https://en.wikipedia.org/wiki/Wythoff_construction

Seed Point Selection

Basic: Use the sliders to smoothly transition between shapes.

Advanced: These sliders select the point which is reflected in the kaleidoscope mirrors to get all the vertices of the polytope. Each slider scales a vector pointing from one intersection of the kaleidoscope mirrors to all other intersections (the point of intersection are between all but one of the mirrors, and the unit sphere). They are essentially the coordinates on the spherical triangle which tile sphere (hence their sum is kept to 1). In higher dimensions the picture is similar, except there are more mirrors and more intersections and more vectors.

Dimension

Simply used to change the number of spatial dimensions and hence which kaleidoscopes are available (3,4 and 5 are currently supported).

Kaleidoscope

Basic: Determines what shapes are created using the seed point selection sliders.

Advanced: the coxeter notation for which reflection group (kaleidoscope) is active. For dimension 3 I excluded all but one dihedral group, as to not clutter the UI (the others are very similar).

All kaleidoscopes save after the first time they are generated to allow for faster switching between them afterwards. I also pre-generated [3²,5] and [3³,4] due to long generation times.

Rotation

Rotation in 3 dimensions is done by clicking and dragging the mouse, In higher dimensions I included sliders for the additional rotations not possible in 3 dimensions there will be 3ⁿ-3 sliders where n is the number of dimensions.

Projection

Controls how the program renders n dimensional shapes in 3 dimensions (3 to 2 dimensions is handled by the ui program which can be changed using the toggle parallel projection button on top).

Perspective: Things closer in higher dimensions appear bigger.

Orthographic: Size does not depend on distance.

For a clear example, load [3²,4], the smaller inner cube when on Perspective projection is further from you in the 4th dimension.

Opacity

Controls how opaque the faces (2D cells) are on the polytope. automatically scales down with dimension to compete with the growing number of faces.

EXAMPLES

Looks much better in person!

Metadata

Release files for wythoff-construct 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wythoff-construct 0.2.5
File Interpreter ABI Platform
wythoff_construct-0.2.5-py3-none-any.whl Python 3 none any Details

Release files / wythoff_construct-0.2.5-py3-none-any.whl

Download URL wythoff_construct-0.2.5-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e16b10c2eb5c10063d64f2272cba87b20c9d574eb629fefb17d39c7ded9ae88a
BLAKE2b-256 checksum
How to use checksums
901a0a0349994528db0687c511d26c9dad5a6450b0d6683c94f4b91941dd0504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.62.3 importlib-metadata/5.0.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page