Theme:

Primitives

Built-in geometry classes (all extend BufferGeometry), found in src/three/geometries/.

  • BoxGeometry(width, height, depth, widthSegments, heightSegments, depthSegments) — A rectangular cuboid centered on the origin.
  • CapsuleGeometry(radius, height, capSegments, radialSegments, heightSegments) — A cylinder capped with two hemispheres.
  • CircleGeometry(radius, segments, thetaStart, thetaLength) — A flat circle built from triangular segments around a central point; also usable for regular polygons.
  • ConeGeometry(radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength) — A cone; extends CylinderGeometry with a zero top radius.
  • CylinderGeometry(radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength) — A cylinder with independently sized top and bottom caps.
  • DodecahedronGeometry(radius, detail) — A 12-faced regular polyhedron; detail > 0 subdivides it toward a sphere.
  • EdgesGeometry(geometry, thresholdAngle) — Helper that extracts the hard edges of another geometry for rendering with LineSegments.
  • ExtrudeGeometry(shapes, options) — Extrudes one or more 2D Shapes into 3D, optionally along a path with bevel settings.
  • IcosahedronGeometry(radius, detail) — A 20-faced regular polyhedron; a common base for subdivided spheres.
  • LatheGeometry(points, segments, phiStart, phiLength) — A surface of revolution created by spinning a 2D profile around the Y axis (vases, bottles, etc.).
  • OctahedronGeometry(radius, detail) — An 8-faced regular polyhedron.
  • PlaneGeometry(width, height, widthSegments, heightSegments) — A flat rectangular plane on the XY plane.
  • PolyhedronGeometry(vertices, indices, radius, detail) — Base class that projects a custom vertex/index set onto a sphere and subdivides; used by the icosa/dodeca/octa helpers.
  • RingGeometry(innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength) — A flat annulus (2D ring).
  • ShapeGeometry(shapes, curveSegments) — A flat, one-sided polygonal geometry triangulated from one or more 2D Shapes.
  • SphereGeometry(radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength) — A UV sphere built from latitude/longitude segments.
  • TorusGeometry(radius, tube, radialSegments, tubularSegments, arc) — A torus (donut) shape.
  • TubeGeometry(path, tubularSegments, radius, radialSegments, closed) — A tube of constant radius extruded along a 3D Curve.