threejs-geometry

Create and manipulate Three.js geometries including BufferGeometry, morph targets, and instanced meshes.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Clinscott/CStar --skill threejs-geometry-clinscott
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-geometry
Source: https://github.com/Clinscott/CStar/tree/main/skills_db/threejs-skills/skills/threejs-geometry
Command: npx skills add https://github.com/Clinscott/CStar --skill threejs-geometry-clinscott

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Three.js geometry creation and manipulation is streamlined by providing a concise guide to building built-in shapes, custom BufferGeometry, and advanced patterns like instancing and morph targets, enabling efficient 3D scene construction.

Core Features & Use Cases

  • Built-in geometries: BoxGeometry, SphereGeometry, PlaneGeometry, and more for quick prototyping.
  • Custom geometry: Create and modify BufferGeometry with attributes, indices, and normals for fine-grained control.
  • Instancing and advanced patterns: Use InstancedMesh and per-vertex data to render many objects efficiently.
  • Use Case: Build a modular 3D scene with a mix of shapes and procedurally generated meshes.

Quick Start

Create a simple cube using BoxGeometry and add it to your 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 geometry in Three.js?

Create custom 3D geometry in Three.js using BufferGeometry by defining vertex positions, normals, and indices. This approach provides fine-grained control over procedural meshes and complex shapes beyond built-in primitives like BoxGeometry or SphereGeometry.

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

The best way to render many objects efficiently in Three.js is using InstancedMesh. This advanced pattern leverages per-vertex data and instancing to render massive amounts of identical shapes in a 3D scene with minimal performance overhead.

How do morph targets work for 3D geometry in Three.js?

Morph targets in Three.js manipulate 3D geometries by storing multiple vertex variations for interpolation. This pattern allows smooth shape transitions and animated deformations directly within BufferGeometry attributes for interactive 3D rendering.

Can I use Three.js BufferGeometry utilities to scale and center 3D shapes?

Yes, you can use Three.js geometry utilities to center and scale to fit your 3D shapes. These common patterns manipulate BufferGeometry attributes directly, ensuring custom meshes align correctly within your 3D scene construction.

When should I use built-in shapes versus custom BufferGeometry in Three.js?

Use built-in Three.js shapes like BoxGeometry for quick prototyping, and switch to custom BufferGeometry when you need fine-grained control over vertex attributes, indices, and normals to construct complex procedural meshes.