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 |
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()