threejs-geometry

Generate Three.js geometry for 3D objects.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/CarlosQ96/robot-crawler --skill threejs-geometry-carlosq96
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-geometry
Source: https://github.com/CarlosQ96/robot-crawler/tree/main/.agents/skills/threejs-geometry
Command: npx skills add https://github.com/CarlosQ96/robot-crawler --skill threejs-geometry-carlosq96

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to remember the exact constructors, parameters, and best practices for creating and managing geometry in Three.js, leading to wasted time and sub‑optimal performance.

Core Features & Use Cases

  • Built‑in Shapes: Quickly generate boxes, spheres, planes, cylinders, torus, and more with simple constructors.
  • Custom BufferGeometry: Define vertices, indices, normals, UVs, and colors for precise control over mesh data.
  • Instancing & Performance: Use InstancedMesh and BufferGeometry utilities to render thousands of objects efficiently.
  • Advanced Utilities: Merge geometries, compute tangents, interleave attributes, and apply morph targets.

Quick Start

Use the threejs-geometry skill to generate a BoxGeometry mesh with a green material and add it to the scene.

Frequently Asked Questions about threejs-geometry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom 3D shapes using BufferGeometry in Three.js?

To create custom 3D shapes with BufferGeometry in Three.js, you manually define vertex positions, indices, normals, and UV attributes. This approach provides precise control over mesh data for web-based graphics development when built-in shapes are insufficient.

What is the best way to render thousands of 3D objects efficiently in Three.js?

The best way to render thousands of 3D objects efficiently in Three.js is using InstancedMesh. This technique leverages instanced rendering to minimize draw calls, drastically improving performance for scenes with numerous repeated geometries.

How do I merge multiple geometries in Three.js to optimize meshes?

To optimize meshes in Three.js, you can merge multiple geometries using built-in BufferGeometry utilities. Merging combines several distinct shapes into a single mesh, reducing draw calls and improving rendering performance.

Do I need prior WebGL knowledge to use Three.js geometry classes effectively?

You need knowledge of Three.js classes, vertex attributes, and optional utility functions to use geometry features effectively. While WebGL knowledge helps, understanding how to configure constructors and parameters for built-in shapes is sufficient for standard tasks.

Why does my Three.js BufferGeometry not display correctly without normals and UVs?

A Three.js BufferGeometry may not display correctly without normals and UVs because these vertex attributes are essential for proper lighting and texture mapping. Defining vertices and indices alone is insufficient for accurate material rendering.