SpinningPolyhedra 4+

Keith Bromley

    • Free

Screenshots

Description

SpinningPolyhedra is an open-source multi-platform app rendering various spinning polyhedra.

SpinningPolyhedra is an open-source multi-platform app (using SwiftUI, Swift, and Xcode) providing sample code of what can be done using Apple's' SceneKit API. It renders various spinning polyhedra.

This app runs on macOS, iOS, and iPadOS devices. The source code can be downloaded from https://github.com/Keith-43/SpinningPolyhedra .

The ContentView struct provides the user interface to the app.

It provides a top toolbar allowing the user to select the mesh geometry she wants to display. The nine options are:
Plane,
Tetrahedron,
Cube,
Octahedron,
Dodecahedron,
Cuboctahedron,
Icosahedron,
Rhombicuboctahedron, and
TruncatedIcosahedron.

It also provides a toolbar allowing the user to select the desired display mode. The seven options are:
solid,
edges,
solid + edges,
faces,
faces + edges,
multiSolid, and
multiSolid + edges.

Between these two toolbars is the main visualization pane rendering the desired View.

It also provides a bottom toolbar allowing the user to select the desired color of the solids. The ten options are:
gold,
pomegranate,
green,
blue,
cyan,
magenta,
Netherlands orange,
Brazil yellow,
Argentina blue, and
Liverpool red.

The solid body is rendered with a shiny metallic color (as selected in the bottom toolbar). The edges (comprised of thin cylinders) are rendered with a simple orange color. And the faces are each rendered with a different value of the hue color gamut. In my humble opinion, the result is pretty impressive. It looks partcularly striking when viewed in Dark Mode.

The multiSolid bodies are six of whichever polyhedron is selected in the top toolbar. Each has a different radius and is at a different distance from the camera. Each one spins on a different axis and at a different rate.

A drag gesture (using either macOS or iOS) moves the x,y position of the camera - while it remains pointed at the center of the largest polyhedron.

Similarly, a pinch gesture (using either macOS or iOS) zooms the rendered image as desired.

App Privacy

The developer, Keith Bromley, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy.

Data Not Collected

The developer does not collect any data from this app.

Privacy practices may vary based on, for example, the features you use or your age. Learn More

More By This Developer