threejs-geometry

Generate and manipulate 3D geometric shapes in Three.js.

2.9k|336|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/CloudAI-X/threejs-skills --skill threejs-geometry-cloudai-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-geometry
Source: https://github.com/CloudAI-X/threejs-skills/tree/main/skills/threejs-geometry
Command: npx skills add https://github.com/CloudAI-X/threejs-skills --skill threejs-geometry-cloudai-x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and code examples for creating and manipulating 3D geometric shapes within the Three.js framework, enabling developers to build complex 3D models and scenes.

Core Features & Use Cases

  • Built-in Geometries: Easily create standard shapes like boxes, spheres, planes, cylinders, and more.
  • BufferGeometry: Construct custom geometries with precise control over vertices, normals, UVs, and colors for optimized performance.
  • Advanced Shapes: Generate complex forms using extrusion, lathed paths, tubes, and text.
  • Instancing: Efficiently render thousands of copies of the same mesh using InstancedMesh for performance gains.
  • Use Case: Create a detailed 3D model of a product by combining custom BufferGeometry for unique parts and InstancedMesh for repeating elements like screws or decorative patterns.

Quick Start

Use the threejs-geometry skill to create a basic red box mesh 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 in Three.js?

Create custom 3D shapes in Three.js by defining vertices, normals, and UVs within a BufferGeometry object. This approach provides precise control over mesh data and optimizes performance for complex visual structures.

What is the best way to render thousands of identical meshes in Three.js?

Render thousands of identical meshes in Three.js efficiently by using InstancedMesh. This technique reduces draw calls, delivering significant performance gains when displaying repeating elements like screws or decorative patterns.

How do I generate text geometry in Three.js?

Generate text geometry in Three.js using built-in advanced shape techniques. The framework provides specific methods to extrude and manipulate 3D text forms alongside other path-based shapes like tubes and lathed paths.

When should I use BufferGeometry instead of built-in Three.js geometries?

Use BufferGeometry instead of built-in Three.js geometries when you need precise control over vertices, normals, UVs, and colors. It is essential for defining unique object parts and optimizing mesh data for complex models.

Can I create complex 3D models by combining different geometry techniques in Three.js?

Combine different geometry techniques in Three.js to create detailed 3D models. You can construct unique parts using custom BufferGeometry and apply InstancedMesh for repeating elements to optimize both structure and rendering performance.