Skip to main content
100%

3D Cubes

✓ Published0🌍 Public
MMichael
Last edited Dec 28, 2022
Created on Dec 24, 2022

The visualization renders a grid of 3D cubes in an isometric projection using React and SVG, with each cube composed of three visible faces: a front square, a top polygon, and a right polygon. The cube faces are drawn as separate SVG polygons using React components (`CubeFront`, `CubeTop`, `CubeRight`, `AbstractCubeSide`), with coordinates calculated from a front square and a fixed skew depth. The grid is arranged in a 2x2 layout with an additional series of top faces extending diagonally, creating a layered effect. The example uses React 17 and D3 v7, though D3 is loaded but not directly utilized in the rendering logic.

AI-generated description

3d cube grid

Done without much knowledge of react (will refactor when I learned more about React)

MIT Licensed

Similar vizzes