three-dart-geometry
Installation
SKILL.md
three_dart Geometry
Iron Law
Always call geometry.computeVertexNormals() after building custom BufferGeometry — without normals, MeshStandardMaterial renders as flat black.
Built-in Geometries
import 'package:three_dart/three_dart.dart' as THREE;
// Box
final box = THREE.BoxGeometry(1, 1, 1); // width, height, depth
final boxSeg = THREE.BoxGeometry(2, 2, 2, 4, 4, 4); // with segments
// Sphere
final sphere = THREE.SphereGeometry(1, 32, 16); // radius, widthSeg, heightSeg