1.0.0-alpha • Published 5 years ago
geometries v1.0.0-alpha
◼ Geometries
Primitives. Definition - Examples
This library is fully optimized (please open a new issue if you've some recommendations) and is dependency-free to be fast and lightweight.
Type | Weight | Gzip |
---|---|---|
CJS | 14.37kb | 2.58kb |
ES | 14.26kb | 2.51kb |
UMD | 7.3kb | 1.99kb |
Getting started
You should import the primitives you want to use:
import { Box as BoxGeometry } from '@bastienrobert/geometries'
then, you can create a new instance like:
const box = new BoxGeometry()
To do
- Geometry
- Basic main interface
- Examples
- GUI
- Geometries
- Plane
- Cube
- Sphere
- Cone (is a cylinder)
- Cylinder
- Torus
- Icosahedron
- Dodecahedron
- Tetrahedron