SpinningPolyhedra
图形与设计
仅适用于 Mac
免费
Mac
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 尚未收到足够的评分或评论,无法显示整体评分。
开发者“Keith Bromley”已表明该 App 的隐私规范可能包括下述数据处理方式。更多相关信息,请参阅 开发者隐私政策 。
未收集数据
开发者不会从此 App 中收集任何数据。
辅助功能
开发者尚未表明此 App 支持哪些辅助功能。 进一步了解
信息
- 提供者
- Keith Bromley
- 大小
- 511.9 KB
- 类别
- 图形与设计
- 兼容性
设备需装有 macOS 12.0 或更高版本。
- Mac
设备需装有 macOS 12.0 或更高版本。
- Mac
- 语言
- 英语
- 年龄分级
4+
- 4+
- 版权
- © 2024 Keith Bromley
