Skip to content

Procedural Disco Ball (Mirror Ball)

source

Description

A mathematically generated disco ball consisting of multiple flat rectangular facets mapped onto a spherical surface. This model demonstrates the power of coordinate transformation in CadQuery, where simple 2D tiles are precisely positioned in 3D space to form a perfectly faceted sphere. Ideal for testing PBR (Physically Based Rendering) materials and environment reflections.

Key Features

  1. Adjustable Facet Density: Control the number of mirrors by changing the longitudinal and latitudinal segments.
  2. Perfect Spherical Mapping: Facets are calculated to maintain a consistent gapless structure.
  3. Rendering Optimized: Each facet is a flat surface, maximizing the "glitter" effect when used with environment maps (HDRI).
  4. Manifold Geometry: Despite having many faces, the model is a clean, watertight solid.

Dimensions (Default)

Radius: 40 mm

Facet Count: 20 X 13 individual faces