What problem does it solve?
Threejs-geometry helps you quickly create correct, GPU-efficient 3D geometry for meshes, custom shapes, and scalable instanced scenes without manually wrestling with low-level BufferGeometry setup.
Core Features & Use Cases
- Built-in geometry creation: Use BoxGeometry, SphereGeometry, PlaneGeometry, and more for common shapes in real-time scenes (e.g., interactive product mockups).
- Custom geometry with BufferGeometry: Define vertex positions, indices, normals, UVs, and colors using typed arrays for rendering and lighting (e.g., a procedural terrain patch).
- Advanced rendering patterns: Use InstancedMesh and InstancedBufferGeometry to efficiently render thousands of identical objects with per-instance transforms, colors, and attributes (e.g., particle-like crowds, voxel clouds).
Quick Start
Use the threejs-geometry skill to generate a BoxGeometry or SphereGeometry mesh and add it to your Three.js scene using an appropriate MeshStandardMaterial for immediate visualization.