Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarSimonovic authored May 4, 2023
1 parent 68269af commit 9c0e533
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

An icosphere creator written in Swift, with a SwiftUI SceneKit view that renders the generated geometries.

## Usage

The ico class generates creates an icosahedron, a polyhedron with 20 equilateral triangles.

It converts this into a sphere by splitting each triangle into four smaller triangles.

This process can be repeated to create a smoother sphere.

```swift
func generateIcoSphere(recursions: Int = 0)
```

The core generator returns an Icosphere struct that contains the data for the vertices and indeces of the shape. These can be used to create stranger, irregular geometries.





### sources
Expand Down

0 comments on commit 9c0e533

Please sign in to comment.