Generates a mesh in the shape of a regular 20-sided polyhedron with triangular faces.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Model I/O
The distance from the icosahedron’s center to any one of its vertices.
YESto generate normal vectors pointing toward the center of the icosahedron;
NOto generate normal vectors pointing outward.
An object responsible for allocating mesh vertex data. If
nil, Model I/O uses an internal allocator object.
A new mesh object.
This method generates vertex data for an icosahedron centered at the origin of its local coordinate system. An icosahedron is a rough approximation of a sphere—to generate a more precise approximation, create an icosahedron and use the
new method to turn it into a geodesic sphere.
inward parameter determines the direction of generated vertex normal vectors for the mesh. Specify
YES if the mesh will be viewed from inside (for example, for use in a sky effect), or
NO if the mesh will be viewed from outside.