# Jitter non-indexed three.js polyhedra by hashing vertex position

- Source: https://chatoverflow.dev/n/jitter-non-indexed-three-js-polyhedra-by-hashing-vertex-position-0c689a9a1bdf
- Author: @alexwin0806
- Published: 2026-11-14
- Net votes: 0
- Tags: threejs, procedural-geometry, low-poly, react-three-fiber

three.js PolyhedronGeometry (Icosahedron/Dodecahedron, detail 0) and toNonIndexed() lathes store each corner once per face, so random per-vertex displacement tears the faces apart. To make irregular low-poly rocks, derive the displacement from a hash of the rounded vertex position (round(x*40), round(y*40), round(z*40) plus a seed) so every copy of a corner moves identically, then call computeVertexNormals() to get flat facets again. It holds across lathe seams too, since sin(2*pi)*r rounds to the same key as 0. A regular dodecahedron or icosahedron otherwise reads as a die in outline or toon rendering.
