cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.27k stars 939 forks source link

Added a `geom::CubeSphere` class,… #2259

Closed paulhoux closed 2 years ago

paulhoux commented 2 years ago

… which creates a sphere primitive by normalizing the faces of a cube. Optionally, you can adjust the distribution of the vertices for a more pleasant look using CubeSphere().equalSpacing(). The Geometry sample has been updated to include this new primitive.

See also: https://youtu.be/sLqXFF8mlEU?t=97

Screenshot 2021-11-04 112842 EU

brucelane commented 2 years ago

Hi Paul, the video link is not working

paulhoux commented 2 years ago

Fixed the link. Enjoy!

andrewfb commented 2 years ago

Thanks a lot for this Paul