threejs-geometry covers how to build and shape meshes in three.js r186. It lists the built-in geometries with their constructor arguments, shows how to create 3D text, and explains BufferGeometry with its attributes, indices, interleaved buffers and in-place updates.
It also covers edges and wireframes, point clouds, lines, merging, instancing and batching, with a WebGPU and TSL section at the end.
What You Get
- A reference of built-in shapes with constructor arguments, from boxes and spheres to capsules, lathe, extrude and tube geometry
- A working TextGeometry example with the font loader
- Custom BufferGeometry recipes for positions, indices, normals, UVs and vertex colors
- Update patterns for needsUpdate, draw ranges and recomputing normals and bounds
- Examples for edges, wireframes and point clouds
Common Use Cases
- Building a custom mesh from vertex arrays
- Extruding a 2D shape into a 3D object
- Adding extruded 3D text to a scene
- Drawing thousands of copies of one shape cheaply with instancing
- Rendering a point cloud or line set from data
What Makes It Unique
The skill gives constructor argument order for each built-in geometry in the example comments, and it covers the buffer details that often go wrong, such as normalized byte colors, index array sizes and fixed-size attribute buffers. It is one of thirteen skills pinned to r186 and cross-linked for materials, performance and loaders.
Under The Hood
The skill is a single SKILL.md of explanation and JavaScript examples, with no scripts, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. One example loads a font file from a relative path in the browser; the skill itself fetches nothing and writes no files.