Skip to content


Working Example



A 3D Squircle has the properties of a sphere and a cube.

This example modifies the geometry of an octahedron to create a squircle using hyperbolic tangent.

Since the geometry size changes greatly when using the slider, you can also use the Drei Bounds helper to reposition the camera to fit the bounds of the new geometry.

Squircle wikipedia

GitHub Branch

git clone
cd React-Three-Fiber-Boilerplate
git checkout squircle
npm install
npm start