Part VI: Johnson Solids J49 through J92 in FSL
A quick note: I'm not a trained gemologist. No GIA diploma, no mineralogy degree, no formal apprenticeship. Just an engineer taking Feynman literally: "What I cannot create, I do not understand." Everything here comes from rebuilding faceting from first principles: geometry, ray-traced light physics, and custom machines.
The second half of Norman Johnson's catalog (J49 through J92) is where the shapes get truly playful and unexpected. It gathers prisms with pyramids added to their sides (J49 through J57), Platonic and Archimedean solids with caps tacked on or sliced away (J58 through J71), twisted and trimmed versions of the 62-faced Rhombicosidodecahedron (J72 through J83), and the 9 standalone "elementary" solids (J84 through J92) that cannot be built by cutting or gluing any simpler family together.
Caps, Slices, And The Nine Standalone Solids#
Even with all that variety, these 44 solids stay straightforward at the machine. Ten cut with zero cheater on a 96-index wheel (gear = 96), including several side-augmented prisms (J49, J52, and J54), trimmed icosahedra (J62 and J63), and capped truncated cubes (J66 and J67). Fifteen cut cleanly on an 80-index wheel (gear = 80), including the doubly capped dodecahedron (J59), the entire family of twisted and trimmed rhombicosidodecahedra (J72 through J83), and the final two elementary shapes (J91 and J92). The remaining 19 have off-grid side angles that fall between whole teeth on any standard gear, so they stay on a 96-index wheel (gear = 96) with an exact { cheater } nudge.
Keeping everything in plain FSL also makes the construction easy to read. For J72 through J83, FSL simply twists a cupola cap by 36 degrees or slices it clean off across its 10-sided base. And for the trickier standalone shapes (J84 through J90), where every edge has to lock to the exact same length with no simple closed-form shortcut, a compact two-line solver inside FSL dials in the exact proportions live each time the script runs.
Here is the complete script for the Snub Disphenoid (J84), a compact 12-triangle solid that solves its own exact proportions right inside FSL with zero hardcoded constants:
name = "J84: Snub Disphenoid"
ri = 1.45
gear = 96
cube = 2.5
// Elementary deltahedron (12 equilateral triangles, D2d symmetry)
// Solve unit-edge constraint f(b) = 0 live via pure functional Newton-Raphson
f84 = b => Math.sqrt(1 - (b - 0.5) * (b - 0.5)) - Math.sqrt(0.75 - b * b) - Math.sqrt(1 - 2 * b * b)
step = x => x - f84(x) / ((f84(x + 1e-7) - f84(x - 1e-7)) / 2e-7)
b = Math.range(0, 12).reduce(x => step(x), 0.6)
z2 = 0.5 * Math.sqrt(1 - 2 * b * b)
z1 = z2 + Math.sqrt(0.75 - b * b)
// 8 exact D2d vertices scaled cleanly inside the blank
s = 0.85
A1 = Point( 0.5 * s, 0, z1 * s); A2 = Point(-0.5 * s, 0, z1 * s)
B1 = Point( 0, 0.5 * s, -z1 * s); B2 = Point( 0, -0.5 * s, -z1 * s)
C1 = Point( b * s, 0, -z2 * s); C2 = Point(-b * s, 0, -z2 * s)
D1 = Point( 0, b * s, z2 * s); D2 = Point( 0, -b * s, z2 * s)
cutTri = (p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane("T", u, u.dot(p))
}
faces = [
[A1, A2, D1], [A1, A2, D2], [B1, B2, C1], [B1, B2, C2],
[A1, D1, C1], [A1, D2, C1], [A2, D1, C2], [A2, D2, C2],
[B1, C1, D1], [B1, C2, D1], [B2, C1, D2], [B2, C2, D2]
]
faces.map(tri => cutTri(tri[0], tri[1], tri[2]))
assert(stone().facetCount == 12)
assert(stone().vertexCount == 8)
All 44 Specimens: J49 Through J92 (smoked Amethyst Stoneware)#
Use the search bar or gear filters below to browse all 44 solids from J49 through J92 with matte Smoked Amethyst renders, 3D SVG blueprints, exact FSL scripts, and direct Studio links.
BDPT
J49: Augmented Triangular Prism
96-indexView exact FSL source ▼
name = "J49: Augmented Triangular Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 3-gonal prism with unit square pyramids erected on side face(s) [0]
n = 3
a = 0.72
r = a / (2 * Math.tanDeg(180 / n)) // 3-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0]
// Orient augmented face normal u0 -> +Z so every face lands on exact 96-index teeth!
toDop = v => Vector(v.z, v.y, v.x)
zAxis = Vector(0, 0, 1)
// Top & bottom regular 3-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 8)
assert(stone().vertexCount == 7)
BDPT
J50: Biaugmented Triangular Prism
96-index + cheaterView exact FSL source ▼
name = "J50: Biaugmented Triangular Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 3-gonal prism with unit square pyramids erected on side face(s) [0, 1]
n = 3
a = 0.72
r = a / (2 * Math.tanDeg(180 / n)) // 3-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0, 1]
// Prism axis along +Z on standard 96-index wheel
toDop = v => v
zAxis = Vector(0, 0, 1)
// Top & bottom regular 3-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 11)
assert(stone().vertexCount == 8)
BDPT
J51: Triaugmented Triangular Prism
96-index + cheaterView exact FSL source ▼
name = "J51: Triaugmented Triangular Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 3-gonal prism with unit square pyramids erected on side face(s) [0, 1, 2]
n = 3
a = 0.72
r = a / (2 * Math.tanDeg(180 / n)) // 3-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0, 1, 2]
// Prism axis along +Z on standard 96-index wheel
toDop = v => v
zAxis = Vector(0, 0, 1)
// Top & bottom regular 3-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 14)
assert(stone().vertexCount == 9)
BDPT
J52: Augmented Pentagonal Prism
96-indexView exact FSL source ▼
name = "J52: Augmented Pentagonal Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 5-gonal prism with unit square pyramids erected on side face(s) [0]
n = 5
a = 0.56
r = a / (2 * Math.tanDeg(180 / n)) // 5-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0]
// Orient augmented face normal u0 -> +Z so every face lands on exact 96-index teeth!
toDop = v => Vector(v.z, v.y, v.x)
zAxis = Vector(0, 0, 1)
// Top & bottom regular 5-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 10)
assert(stone().vertexCount == 11)
BDPT
J53: Biaugmented Pentagonal Prism
96-index + cheaterView exact FSL source ▼
name = "J53: Biaugmented Pentagonal Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 5-gonal prism with unit square pyramids erected on side face(s) [0, 2]
n = 5
a = 0.56
r = a / (2 * Math.tanDeg(180 / n)) // 5-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0, 2]
// Prism axis along +Z on standard 96-index wheel
toDop = v => v
zAxis = Vector(0, 0, 1)
// Top & bottom regular 5-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 13)
assert(stone().vertexCount == 12)
BDPT
J54: Augmented Hexagonal Prism
96-indexView exact FSL source ▼
name = "J54: Augmented Hexagonal Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 6-gonal prism with unit square pyramids erected on side face(s) [0]
n = 6
a = 0.52
r = a / (2 * Math.tanDeg(180 / n)) // 6-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0]
// Orient augmented face normal u0 -> +Z so every face lands on exact 96-index teeth!
toDop = v => Vector(v.z, v.y, v.x)
zAxis = Vector(0, 0, 1)
// Top & bottom regular 6-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 11)
assert(stone().vertexCount == 13)
BDPT
J55: Parabiaugmented Hexagonal Prism
96-indexView exact FSL source ▼
name = "J55: Parabiaugmented Hexagonal Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 6-gonal prism with unit square pyramids erected on side face(s) [0, 3]
n = 6
a = 0.52
r = a / (2 * Math.tanDeg(180 / n)) // 6-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0, 3]
// Orient augmented face normal u0 -> +Z so every face lands on exact 96-index teeth!
toDop = v => Vector(v.z, v.y, v.x)
zAxis = Vector(0, 0, 1)
// Top & bottom regular 6-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 14)
assert(stone().vertexCount == 14)
BDPT
J56: Metabiaugmented Hexagonal Prism
96-index + cheaterView exact FSL source ▼
name = "J56: Metabiaugmented Hexagonal Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 6-gonal prism with unit square pyramids erected on side face(s) [0, 2]
n = 6
a = 0.52
r = a / (2 * Math.tanDeg(180 / n)) // 6-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0, 2]
// Prism axis along +Z on standard 96-index wheel
toDop = v => v
zAxis = Vector(0, 0, 1)
// Top & bottom regular 6-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 14)
assert(stone().vertexCount == 14)
BDPT
J57: Triaugmented Hexagonal Prism
96-index + cheaterView exact FSL source ▼
name = "J57: Triaugmented Hexagonal Prism"
ri = 1.45
gear = 96
cube = 2.5
// Uniform 6-gonal prism with unit square pyramids erected on side face(s) [0, 2, 4]
n = 6
a = 0.52
r = a / (2 * Math.tanDeg(180 / n)) // 6-gon inradius
h = a / 2 // prism half-height
c = 1 / Math.sqrt(3) // cos(54.7356 deg): square-pyramid face tilt
s = Math.sqrt(2 / 3) // sin(54.7356 deg)
d_pyr = r * c + (a / 2) * s // exact pyramid plane distance from origin
aug = [0, 2, 4]
// Prism axis along +Z on standard 96-index wheel
toDop = v => v
zAxis = Vector(0, 0, 1)
// Top & bottom regular 6-gon prism caps
cutPlane("P", toDop(-zAxis), h)
cutPlane("T", toDop( zAxis), h)
// Side faces: either a flat square prism face or 4 equilateral pyramid triangles
Math.range(0, n).map(k => {
th = k * 360 / n
u = Vector(Math.cosDeg(th), Math.sinDeg(th), 0)
t = Vector(-u.y, u.x, 0)
aug.includes(k)
? [zAxis, -zAxis, t, -t].map(dir => cutPlane("Q", toDop(u * c + dir * s), d_pyr))
: cutPlane("G", toDop(u), r)
})
assert(stone().facetCount == 17)
assert(stone().vertexCount == 15)
BDPT
J58: Augmented Dodecahedron
80-indexView exact FSL source ▼
name = "J58: Augmented Dodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Regular dodecahedron with unit pentagonal pyramid(s) erected on non-adjacent pentagon(s)
phi = Math.PHI
a = 0.56
R_pent = a / (2 * Math.sinDeg(36))
r_pent = a / (2 * Math.tanDeg(36))
d5 = r_pent * phi // exact dodecahedron inradius = r_pent * phi
h_pyr = Math.sqrt(a * a - R_pent * R_pent)
ang = Math.atanDeg(h_pyr / r_pent) // 37.3774 deg pyramid slope
d_aug = d5 * Math.cosDeg(ang) + r_pent * Math.sinDeg(ang)
// Three mutually non-adjacent 5-fold axes (pairwise dot = -1/sqrt(5)) & their 3-fold symmetry axis
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Generate all 12 dodecahedron face normals via chiral icosahedral group I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
pents = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [u0])
augCaps = [u0]
// Cut unaugmented pentagons; replace each augmented pentagon with 5 equilateral pyramid faces
pents.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = pents.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug
? Math.range(0, 5).map(k => {
dir = e0.rotate(u, k * 2 * Math.PI / 5)
cutPlane("Q", toDop(u * Math.cosDeg(ang) + dir * Math.sinDeg(ang)), d_aug)
})
: cutPlane("D", toDop(u), d5)
})
assert(stone().facetCount == 16)
assert(stone().vertexCount == 21)
BDPT
J59: Parabiaugmented Dodecahedron
80-indexView exact FSL source ▼
name = "J59: Parabiaugmented Dodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Regular dodecahedron with unit pentagonal pyramid(s) erected on non-adjacent pentagon(s)
phi = Math.PHI
a = 0.56
R_pent = a / (2 * Math.sinDeg(36))
r_pent = a / (2 * Math.tanDeg(36))
d5 = r_pent * phi // exact dodecahedron inradius = r_pent * phi
h_pyr = Math.sqrt(a * a - R_pent * R_pent)
ang = Math.atanDeg(h_pyr / r_pent) // 37.3774 deg pyramid slope
d_aug = d5 * Math.cosDeg(ang) + r_pent * Math.sinDeg(ang)
// Three mutually non-adjacent 5-fold axes (pairwise dot = -1/sqrt(5)) & their 3-fold symmetry axis
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Generate all 12 dodecahedron face normals via chiral icosahedral group I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
pents = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [u0])
augCaps = [u0, -u0]
// Cut unaugmented pentagons; replace each augmented pentagon with 5 equilateral pyramid faces
pents.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = pents.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug
? Math.range(0, 5).map(k => {
dir = e0.rotate(u, k * 2 * Math.PI / 5)
cutPlane("Q", toDop(u * Math.cosDeg(ang) + dir * Math.sinDeg(ang)), d_aug)
})
: cutPlane("D", toDop(u), d5)
})
assert(stone().facetCount == 20)
assert(stone().vertexCount == 22)
BDPT
J60: Metabiaugmented Dodecahedron
96-index + cheaterView exact FSL source ▼
name = "J60: Metabiaugmented Dodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Regular dodecahedron with unit pentagonal pyramid(s) erected on non-adjacent pentagon(s)
phi = Math.PHI
a = 0.56
R_pent = a / (2 * Math.sinDeg(36))
r_pent = a / (2 * Math.tanDeg(36))
d5 = r_pent * phi // exact dodecahedron inradius = r_pent * phi
h_pyr = Math.sqrt(a * a - R_pent * R_pent)
ang = Math.atanDeg(h_pyr / r_pent) // 37.3774 deg pyramid slope
d_aug = d5 * Math.cosDeg(ang) + r_pent * Math.sinDeg(ang)
// Three mutually non-adjacent 5-fold axes (pairwise dot = -1/sqrt(5)) & their 3-fold symmetry axis
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame (zAxis -> +Z)
e3 = a3
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Generate all 12 dodecahedron face normals via chiral icosahedral group I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
pents = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [u0])
augCaps = [u0, u1]
// Cut unaugmented pentagons; replace each augmented pentagon with 5 equilateral pyramid faces
pents.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = pents.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug
? Math.range(0, 5).map(k => {
dir = e0.rotate(u, k * 2 * Math.PI / 5)
cutPlane("Q", toDop(u * Math.cosDeg(ang) + dir * Math.sinDeg(ang)), d_aug)
})
: cutPlane("D", toDop(u), d5)
})
assert(stone().facetCount == 20)
assert(stone().vertexCount == 22)
BDPT
J61: Triaugmented Dodecahedron
96-index + cheaterView exact FSL source ▼
name = "J61: Triaugmented Dodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Regular dodecahedron with unit pentagonal pyramid(s) erected on non-adjacent pentagon(s)
phi = Math.PHI
a = 0.56
R_pent = a / (2 * Math.sinDeg(36))
r_pent = a / (2 * Math.tanDeg(36))
d5 = r_pent * phi // exact dodecahedron inradius = r_pent * phi
h_pyr = Math.sqrt(a * a - R_pent * R_pent)
ang = Math.atanDeg(h_pyr / r_pent) // 37.3774 deg pyramid slope
d_aug = d5 * Math.cosDeg(ang) + r_pent * Math.sinDeg(ang)
// Three mutually non-adjacent 5-fold axes (pairwise dot = -1/sqrt(5)) & their 3-fold symmetry axis
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame (zAxis -> +Z)
e3 = a3
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Generate all 12 dodecahedron face normals via chiral icosahedral group I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
pents = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [u0])
augCaps = [u0, u1, u2]
// Cut unaugmented pentagons; replace each augmented pentagon with 5 equilateral pyramid faces
pents.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = pents.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug
? Math.range(0, 5).map(k => {
dir = e0.rotate(u, k * 2 * Math.PI / 5)
cutPlane("Q", toDop(u * Math.cosDeg(ang) + dir * Math.sinDeg(ang)), d_aug)
})
: cutPlane("D", toDop(u), d5)
})
assert(stone().facetCount == 24)
assert(stone().vertexCount == 23)
BDPT
J62: Metabidiminished Icosahedron
96-indexView exact FSL source ▼
name = "J62: Metabidiminished Icosahedron"
ri = 1.45
gear = 96
cube = 2.5
// Regular icosahedron with 2 non-adjacent, non-opposite vertices sliced off -> 2 pentagons + 10 triangles
phi = Math.PHI
a = 0.88
R_ico = a * Math.sqrt(phi + 2) / 2 // circumradius of unit-edge icosahedron
d_ico = a * phi * phi / (2 * Math.sqrt(3)) // face inradius of unit-edge icosahedron
d_cut = R_ico / Math.sqrt(5) // exact pentagonal slice plane distance!
// Two icosahedron vertices at edge distance phi (dot = -1/sqrt(5))
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
a3 = Normal(1, -1, 1)
// Align 2-fold bisector of (u0, u1) to +Z so all 12 faces land on exact 96-index teeth!
e3 = (u0 + u1).normalize()
e1 = (u0 - u1).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
tris = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [a3])
rem = [u0, u1]
// Keep triangles not touching removed vertices; slice the 2 exposed pentagons
tris.filter(n => !rem.some(u => n.dot(u) > 0.78)).map(n => cutPlane("T", toDop(n), d_ico))
rem.map(u => cutPlane("P5", toDop(u), d_cut))
assert(stone().facetCount == 12)
assert(stone().vertexCount == 10)
BDPT
J63: Tridiminished Icosahedron
96-indexView exact FSL source ▼
name = "J63: Tridiminished Icosahedron"
ri = 1.45
gear = 96
cube = 2.5
// Regular icosahedron with 3 mutually non-adjacent vertices sliced off -> 3 pentagons + 5 triangles
phi = Math.PHI
a = 0.88
R_ico = a * Math.sqrt(phi + 2) / 2
d_ico = a * phi * phi / (2 * Math.sqrt(3))
d_cut = R_ico / Math.sqrt(5)
// Three mutually non-adjacent icosahedron vertices surrounding the 3-fold axis a3 = (1,-1,1)
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Align 3-fold axis a3 -> +Z so all 8 faces land on exact 96-index teeth (0 and 16)!
e3 = a3
e1 = (u0 - a3 * u0.dot(a3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
tris = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [a3])
rem = [u0, u1, u2]
tris.filter(n => !rem.some(u => n.dot(u) > 0.78)).map(n => cutPlane("T", toDop(n), d_ico))
rem.map(u => cutPlane("P5", toDop(u), d_cut))
assert(stone().facetCount == 8)
assert(stone().vertexCount == 9)
BDPT
J64: Augmented Tridiminished Icosahedron
96-indexView exact FSL source ▼
name = "J64: Augmented Tridiminished Icosahedron"
ri = 1.45
gear = 96
cube = 2.5
// Tridiminished icosahedron (J63) with a regular tetrahedron erected on its central triangle (+a3)!
phi = Math.PHI
a = 0.76
R_ico = a * Math.sqrt(phi + 2) / 2
d_ico = a * phi * phi / (2 * Math.sqrt(3))
d_cut = R_ico / Math.sqrt(5)
r_tri = a / (2 * Math.sqrt(3)) // inradius of equilateral triangle of edge a
angT = Math.acosDeg(1 / 3) // 70.5288 deg: regular tetrahedron dihedral angle
d_tet = d_ico * Math.cosDeg(angT) + r_tri * Math.sinDeg(angT)
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Align 3-fold axis a3 -> +Z so all 10 faces land on exact 96-index teeth (0 and 16)!
e3 = a3
e1 = (u0 - a3 * u0.dot(a3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
tris = Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [a3])
rem = [u0, u1, u2]
// Keep non-removed triangles EXCEPT the central +a3 triangle (replaced by the 3 tetrahedron faces!)
tris.filter(n => !rem.some(u => n.dot(u) > 0.78))
.filter(n => n.dot(a3) < 0.999)
.map(n => cutPlane("T", toDop(n), d_ico))
rem.map(u => cutPlane("P5", toDop(u), d_cut))
rem.map(u => {
dir = (u - a3 * u.dot(a3)).normalize()
cutPlane("Q", toDop(a3 * Math.cosDeg(angT) + dir * Math.sinDeg(angT)), d_tet)
})
assert(stone().facetCount == 10)
assert(stone().vertexCount == 10)
BDPT
J65: Augmented Truncated Tetrahedron
96-indexView exact FSL source ▼
name = "J65: Augmented Truncated Tetrahedron"
ri = 1.45
gear = 96
cube = 2.5
// Truncated tetrahedron with a triangular cupola (J3) attached onto its top regular hexagon!
a = 0.52
// Regular tetrahedron of edge 3*a has inradius d_hex = 3*a / sqrt(24) = a * sqrt(3/8)
d_hex = a * Math.sqrt(3 / 8)
d_tri = (5 / 3) * d_hex
// Triangular cupola (n = 3) matching hexagon edge length a
r_hex = a * Math.sqrt(3) / 2
R_top = a / Math.sqrt(3)
r_top = a / (2 * Math.sqrt(3))
h_cup = a * Math.sqrt(2 / 3)
ang_sq = Math.atanDeg(h_cup / (r_hex - r_top)) // 54.7356 deg
ang_tr = Math.atanDeg(h_cup / (r_hex - R_top)) // 70.5288 deg
ang_th = Math.acosDeg(1 / 3) // 70.5288 deg (tetrahedron tilt)
d_sq = d_hex * Math.cosDeg(ang_sq) + r_hex * Math.sinDeg(ang_sq)
d_ctri = d_hex * Math.cosDeg(ang_tr) + r_hex * Math.sinDeg(ang_tr)
// Truncated tetrahedron: bottom + 3 upper triangles, 3 lower hexagons (top hex replaced by cupola!)
P1 0 @ 0.0 : d_tri x1
P2 0 @ ang_th : d_hex x3
C1 16 @ ang_th : d_tri x3
// Triangular cupola cap on top hexagon (rotated so triangles align with parent hexagons & squares with parent triangles!)
C2 16 @ ang_sq : d_sq x3
C3 0 @ ang_tr : d_ctri x3
T 0 @ 0.0 : (d_hex + h_cup) x1
assert(stone().facetCount == 14)
assert(stone().vertexCount == 15)
BDPT
J66: Augmented Truncated Cube
96-indexView exact FSL source ▼
name = "J66: Augmented Truncated Cube"
ri = 1.45
gear = 96
cube = 2.5
// Truncated cube with one square cupola(s) (J4) attached on octagon face(s)
a = 0.44
r_oct = a * (1 + Math.sqrt(2)) / 2
d_oct = r_oct // cube half-width = octagon inradius!
t_tr = 1 / (2 + Math.sqrt(2))
octAng = Math.acosDeg(1 / Math.sqrt(3)) // 54.7356 deg
d_tri = d_oct * (3 - 2 * t_tr) / Math.sqrt(3)
// Square cupola (n = 4) matching octagon edge a
r_top = a / 2
R_top = a / Math.sqrt(2)
h_cup = a / Math.sqrt(2)
ang_sq = Math.atanDeg(h_cup / (r_oct - r_top)) // 45.0 deg
ang_tri = Math.atanDeg(h_cup / (r_oct - R_top)) // 54.7356 deg
d_sq = d_oct * Math.cosDeg(ang_sq) + r_oct * Math.sinDeg(ang_sq)
d_ctri = d_oct * Math.cosDeg(ang_tri) + r_oct * Math.sinDeg(ang_tri)
P1 0 @ 0.0 : d_oct x1
P4 12 @ octAng : d_tri x4
G1 0 @ 90.0 : d_oct x4
C1 12 @ octAng : d_tri x4
C2 12 @ ang_sq : d_sq x4
C3 0 @ ang_tri : d_ctri x4
T 0 @ 0.0 : (d_oct + h_cup) x1
assert(stone().facetCount == 22)
assert(stone().vertexCount == 28)
BDPT
J67: Biaugmented Truncated Cube
96-indexView exact FSL source ▼
name = "J67: Biaugmented Truncated Cube"
ri = 1.45
gear = 96
cube = 2.5
// Truncated cube with two opposite square cupola(s) (J4) attached on octagon face(s)
a = 0.44
r_oct = a * (1 + Math.sqrt(2)) / 2
d_oct = r_oct // cube half-width = octagon inradius!
t_tr = 1 / (2 + Math.sqrt(2))
octAng = Math.acosDeg(1 / Math.sqrt(3)) // 54.7356 deg
d_tri = d_oct * (3 - 2 * t_tr) / Math.sqrt(3)
// Square cupola (n = 4) matching octagon edge a
r_top = a / 2
R_top = a / Math.sqrt(2)
h_cup = a / Math.sqrt(2)
ang_sq = Math.atanDeg(h_cup / (r_oct - r_top)) // 45.0 deg
ang_tri = Math.atanDeg(h_cup / (r_oct - R_top)) // 54.7356 deg
d_sq = d_oct * Math.cosDeg(ang_sq) + r_oct * Math.sinDeg(ang_sq)
d_ctri = d_oct * Math.cosDeg(ang_tri) + r_oct * Math.sinDeg(ang_tri)
P1 0 @ 0.0 : (d_oct + h_cup) x1
P2 12 @ ang_sq : d_sq x4
P3 0 @ ang_tri : d_ctri x4
P4 12 @ octAng : d_tri x4
G1 0 @ 90.0 : d_oct x4
C1 12 @ octAng : d_tri x4
C2 12 @ ang_sq : d_sq x4
C3 0 @ ang_tri : d_ctri x4
T 0 @ 0.0 : (d_oct + h_cup) x1
assert(stone().facetCount == 30)
assert(stone().vertexCount == 32)
BDPT
J68: Augmented Truncated Dodecahedron
80-indexView exact FSL source ▼
name = "J68: Augmented Truncated Dodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Exact pentagonal cupola (n = 5) & unit-edge truncated dodecahedron inradii!
phi = Math.PHI
a = 0.28
R_dec = a / (2 * Math.sinDeg(18))
r_dec = a / (2 * Math.tanDeg(18))
R_top = a / (2 * Math.sinDeg(36))
r_top = a / (2 * Math.tanDeg(36))
d_dec = r_dec * phi // exact dodecahedral decagon inradius!
d_tri = d_dec * (4 - phi) / Math.sqrt(3 * (3 - phi))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
ang_sq = Math.atanDeg(h_cup / (r_dec - r_top))
ang_tri = Math.atanDeg(h_cup / (r_dec - R_top))
d_sq = d_dec * Math.cosDeg(ang_sq) + r_dec * Math.sinDeg(ang_sq)
d_ctri = d_dec * Math.cosDeg(ang_tri) + r_dec * Math.sinDeg(ang_tri)
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame
e3 = u0
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [seed])
decs = orbitI(u0)
tris = orbitI(a3)
augCaps = [u0]
// 20 parent triangles stay intact
tris.map(n => cutPlane("T3", toDop(n), d_tri))
// Keep unaugmented decagons; replace each augmented decagon with a pentagonal cupola
cutCupola5 = (u, e0) => {
cutPlane("R5", toDop(u), d_dec + h_cup)
Math.range(0, 5).map(k => {
// Cupola triangles sit over decagon-decagon edges (k); squares sit over parent triangles (k + 0.5)
dT = e0.rotate(u, k * 2 * Math.PI / 5)
dS = e0.rotate(u, (k + 0.5) * 2 * Math.PI / 5)
cutPlane("QS", toDop(u * Math.cosDeg(ang_sq) + dS * Math.sinDeg(ang_sq)), d_sq)
cutPlane("QT", toDop(u * Math.cosDeg(ang_tri) + dT * Math.sinDeg(ang_tri)), d_ctri)
})
}
decs.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = decs.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug ? cutCupola5(u, e0) : cutPlane("D10", toDop(u), d_dec)
})
assert(stone().facetCount == 42)
assert(stone().vertexCount == 65)
BDPT
J69: Parabiaugmented Truncated Dodecahedron
80-indexView exact FSL source ▼
name = "J69: Parabiaugmented Truncated Dodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Exact pentagonal cupola (n = 5) & unit-edge truncated dodecahedron inradii!
phi = Math.PHI
a = 0.28
R_dec = a / (2 * Math.sinDeg(18))
r_dec = a / (2 * Math.tanDeg(18))
R_top = a / (2 * Math.sinDeg(36))
r_top = a / (2 * Math.tanDeg(36))
d_dec = r_dec * phi // exact dodecahedral decagon inradius!
d_tri = d_dec * (4 - phi) / Math.sqrt(3 * (3 - phi))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
ang_sq = Math.atanDeg(h_cup / (r_dec - r_top))
ang_tri = Math.atanDeg(h_cup / (r_dec - R_top))
d_sq = d_dec * Math.cosDeg(ang_sq) + r_dec * Math.sinDeg(ang_sq)
d_ctri = d_dec * Math.cosDeg(ang_tri) + r_dec * Math.sinDeg(ang_tri)
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame
e3 = u0
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [seed])
decs = orbitI(u0)
tris = orbitI(a3)
augCaps = [u0, -u0]
// 20 parent triangles stay intact
tris.map(n => cutPlane("T3", toDop(n), d_tri))
// Keep unaugmented decagons; replace each augmented decagon with a pentagonal cupola
cutCupola5 = (u, e0) => {
cutPlane("R5", toDop(u), d_dec + h_cup)
Math.range(0, 5).map(k => {
// Cupola triangles sit over decagon-decagon edges (k); squares sit over parent triangles (k + 0.5)
dT = e0.rotate(u, k * 2 * Math.PI / 5)
dS = e0.rotate(u, (k + 0.5) * 2 * Math.PI / 5)
cutPlane("QS", toDop(u * Math.cosDeg(ang_sq) + dS * Math.sinDeg(ang_sq)), d_sq)
cutPlane("QT", toDop(u * Math.cosDeg(ang_tri) + dT * Math.sinDeg(ang_tri)), d_ctri)
})
}
decs.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = decs.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug ? cutCupola5(u, e0) : cutPlane("D10", toDop(u), d_dec)
})
assert(stone().facetCount == 52)
assert(stone().vertexCount == 70)
BDPT
J70: Metabiaugmented Truncated Dodecahedron
96-index + cheaterView exact FSL source ▼
name = "J70: Metabiaugmented Truncated Dodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Exact pentagonal cupola (n = 5) & unit-edge truncated dodecahedron inradii!
phi = Math.PHI
a = 0.28
R_dec = a / (2 * Math.sinDeg(18))
r_dec = a / (2 * Math.tanDeg(18))
R_top = a / (2 * Math.sinDeg(36))
r_top = a / (2 * Math.tanDeg(36))
d_dec = r_dec * phi // exact dodecahedral decagon inradius!
d_tri = d_dec * (4 - phi) / Math.sqrt(3 * (3 - phi))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
ang_sq = Math.atanDeg(h_cup / (r_dec - r_top))
ang_tri = Math.atanDeg(h_cup / (r_dec - R_top))
d_sq = d_dec * Math.cosDeg(ang_sq) + r_dec * Math.sinDeg(ang_sq)
d_ctri = d_dec * Math.cosDeg(ang_tri) + r_dec * Math.sinDeg(ang_tri)
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame
e3 = a3
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [seed])
decs = orbitI(u0)
tris = orbitI(a3)
augCaps = [u0, u1]
// 20 parent triangles stay intact
tris.map(n => cutPlane("T3", toDop(n), d_tri))
// Keep unaugmented decagons; replace each augmented decagon with a pentagonal cupola
cutCupola5 = (u, e0) => {
cutPlane("R5", toDop(u), d_dec + h_cup)
Math.range(0, 5).map(k => {
// Cupola triangles sit over decagon-decagon edges (k); squares sit over parent triangles (k + 0.5)
dT = e0.rotate(u, k * 2 * Math.PI / 5)
dS = e0.rotate(u, (k + 0.5) * 2 * Math.PI / 5)
cutPlane("QS", toDop(u * Math.cosDeg(ang_sq) + dS * Math.sinDeg(ang_sq)), d_sq)
cutPlane("QT", toDop(u * Math.cosDeg(ang_tri) + dT * Math.sinDeg(ang_tri)), d_ctri)
})
}
decs.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = decs.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug ? cutCupola5(u, e0) : cutPlane("D10", toDop(u), d_dec)
})
assert(stone().facetCount == 52)
assert(stone().vertexCount == 70)
BDPT
J71: Triaugmented Truncated Dodecahedron
96-index + cheaterView exact FSL source ▼
name = "J71: Triaugmented Truncated Dodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Exact pentagonal cupola (n = 5) & unit-edge truncated dodecahedron inradii!
phi = Math.PHI
a = 0.28
R_dec = a / (2 * Math.sinDeg(18))
r_dec = a / (2 * Math.tanDeg(18))
R_top = a / (2 * Math.sinDeg(36))
r_top = a / (2 * Math.tanDeg(36))
d_dec = r_dec * phi // exact dodecahedral decagon inradius!
d_tri = d_dec * (4 - phi) / Math.sqrt(3 * (3 - phi))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
ang_sq = Math.atanDeg(h_cup / (r_dec - r_top))
ang_tri = Math.atanDeg(h_cup / (r_dec - R_top))
d_sq = d_dec * Math.cosDeg(ang_sq) + r_dec * Math.sinDeg(ang_sq)
d_ctri = d_dec * Math.cosDeg(ang_tri) + r_dec * Math.sinDeg(ang_tri)
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
// Orthonormal dop frame
e3 = a3
refV = Math.abs(e3.dot(u0)) < 0.9 ? u0 : a3
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 8).reduce(orb => gens.reduce(applyGen, orb), [seed])
decs = orbitI(u0)
tris = orbitI(a3)
augCaps = [u0, u1, u2]
// 20 parent triangles stay intact
tris.map(n => cutPlane("T3", toDop(n), d_tri))
// Keep unaugmented decagons; replace each augmented decagon with a pentagonal cupola
cutCupola5 = (u, e0) => {
cutPlane("R5", toDop(u), d_dec + h_cup)
Math.range(0, 5).map(k => {
// Cupola triangles sit over decagon-decagon edges (k); squares sit over parent triangles (k + 0.5)
dT = e0.rotate(u, k * 2 * Math.PI / 5)
dS = e0.rotate(u, (k + 0.5) * 2 * Math.PI / 5)
cutPlane("QS", toDop(u * Math.cosDeg(ang_sq) + dS * Math.sinDeg(ang_sq)), d_sq)
cutPlane("QT", toDop(u * Math.cosDeg(ang_tri) + dT * Math.sinDeg(ang_tri)), d_ctri)
})
}
decs.map(u => {
isAug = augCaps.some(c => c.dot(u) > 0.999)
nbr = decs.find(v => u.dot(v) > 0.4 ? u.dot(v) < 0.9 : false)
e0 = (nbr - u * u.dot(nbr)).normalize()
isAug ? cutCupola5(u, e0) : cutPlane("D10", toDop(u), d_dec)
})
assert(stone().facetCount == 62)
assert(stone().vertexCount == 75)
BDPT
J72: Gyrate Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J72: Gyrate Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u0]
diminishCaps = []
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 62)
assert(stone().vertexCount == 60)
BDPT
J73: Parabigyrate Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J73: Parabigyrate Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u0, -u0]
diminishCaps = []
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 62)
assert(stone().vertexCount == 60)
BDPT
J74: Metabigyrate Rhombicosidodecahedron
96-index + cheaterView exact FSL source ▼
name = "J74: Metabigyrate Rhombicosidodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = a3
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u0, u1]
diminishCaps = []
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 62)
assert(stone().vertexCount == 60)
BDPT
J75: Trigyrate Rhombicosidodecahedron
96-index + cheaterView exact FSL source ▼
name = "J75: Trigyrate Rhombicosidodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = a3
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u0, u1, u2]
diminishCaps = []
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 62)
assert(stone().vertexCount == 60)
BDPT
J76: Diminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J76: Diminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = []
diminishCaps = [u0]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 52)
assert(stone().vertexCount == 55)
BDPT
J77: Paragyrate Diminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J77: Paragyrate Diminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [-u0]
diminishCaps = [u0]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 52)
assert(stone().vertexCount == 55)
BDPT
J78: Metagyrate Diminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J78: Metagyrate Diminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u1
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u1]
diminishCaps = [u0]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 52)
assert(stone().vertexCount == 55)
BDPT
J79: Bigyrate Diminished Rhombicosidodecahedron
96-index + cheaterView exact FSL source ▼
name = "J79: Bigyrate Diminished Rhombicosidodecahedron"
ri = 1.45
gear = 96
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = a3
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u1, u2]
diminishCaps = [u0]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 52)
assert(stone().vertexCount == 55)
BDPT
J80: Parabidiminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J80: Parabidiminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = []
diminishCaps = [u0, -u0]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 42)
assert(stone().vertexCount == 50)
BDPT
J81: Metabidiminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J81: Metabidiminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = []
diminishCaps = [u0, u1]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 42)
assert(stone().vertexCount == 50)
BDPT
J82: Gyrate Bidiminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J82: Gyrate Bidiminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u2
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = [u2]
diminishCaps = [u0, u1]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 42)
assert(stone().vertexCount == 50)
BDPT
J83: Tridiminished Rhombicosidodecahedron
80-indexView exact FSL source ▼
name = "J83: Tridiminished Rhombicosidodecahedron"
ri = 1.45
gear = bestGear(10)
cube = 2.5
// Rhombicosidodecahedron with cupola cap transforms: gyrate = rotate 36 deg, diminish = decagon slice
phi = Math.PHI
rawV0 = Vector(1, 1, phi * phi * phi) // Coxeter seed vertex (edge length = 2)
v0 = rawV0.normalize()
a = 2 / rawV0.length() // unit edge length on circumsphere R = 1
u0 = Normal(0, 1, phi)
u1 = Normal(phi, 0, -1)
u2 = Normal(-1, -phi, 0)
a3 = Normal(1, -1, 1)
a3_v0 = Normal(1 / phi, 0, phi) // 3-fold axis nearest v0
a2 = Normal(0, 0, 1) // 2-fold square axis nearest v0
// Exact Rhombicosidodecahedron inradii + pentagonal cupola height for decagonal slicing
d5 = v0.dot(u0)
d3 = v0.dot(a3_v0)
d2 = v0.dot(a2)
R_dec = a / (2 * Math.sinDeg(18))
R_top = a / (2 * Math.sinDeg(36))
dx = R_dec * Math.cosDeg(18) - R_top * Math.cosDeg(36)
dy = R_dec * Math.sinDeg(18) - R_top * Math.sinDeg(36)
h_cup = Math.sqrt(a * a - dx * dx - dy * dy)
d_dec = d5 - h_cup // exact decagonal slice distance!
// Orthonormal dop frame (zAxis -> +Z)
e3 = u0
refV = Math.abs(e3.dot(a2)) < 0.9 ? a2 : u0
e1 = (refV - e3 * refV.dot(e3)).normalize()
e2 = e3.cross(e1)
toDop = v => Vector(v.dot(e1), v.dot(e2), v.dot(e3))
// Pure functional chiral icosahedral orbit I = <R5, R3>
gens = [u => u.rotate(u0, 2 * Math.PI / 5), u => u.rotate(a3, 2 * Math.PI / 3)]
addUnique = (acc, w) => acc.some(p => p.dot(w) > 0.99999) ? acc : acc.push(w)
applyGen = (orb, g) => orb.reduce((acc, u) => addUnique(acc, g(u)), orb)
orbitI = seed => Math.range(0, 9).reduce(orb => gens.reduce(applyGen, orb), [seed])
gyrateCaps = []
diminishCaps = [u0, u1, u2]
// Cap-aware cutter: skip diminished cap faces, rotate gyrated cap faces by 36 deg (pi/5)
cutCapAware = (tier, n, dist) => {
isDim = diminishCaps.some(c => n.dot(c) > 0.72)
gCap = gyrateCaps.find(c => n.dot(c) > 0.72)
nOut = gCap != null ? n.rotate(gCap, Math.PI / 5) : n
isDim ? null : cutPlane(tier, toDop(nOut), dist)
}
orbitI(u0).map(n => cutCapAware("P5", n, d5))
orbitI(a3).map(n => cutCapAware("T3", n, d3))
orbitI(a2).map(n => cutCapAware("S4", n, d2))
diminishCaps.map(c => cutPlane("D10", toDop(c), d_dec))
assert(stone().facetCount == 32)
assert(stone().vertexCount == 45)
BDPT
J84: Snub Disphenoid
96-index + cheaterView exact FSL source ▼
name = "J84: Snub Disphenoid"
ri = 1.45
gear = 96
cube = 2.5
// Elementary deltahedron (12 equilateral triangles, D2d symmetry)
// Solve unit-edge constraint f(b) = 0 live via pure functional Newton-Raphson!
f84 = b => Math.sqrt(1 - (b - 0.5) * (b - 0.5)) - Math.sqrt(0.75 - b * b) - Math.sqrt(1 - 2 * b * b)
step = x => x - f84(x) / ((f84(x + 1e-7) - f84(x - 1e-7)) / 2e-7)
b = Math.range(0, 12).reduce(x => step(x), 0.6)
z2 = 0.5 * Math.sqrt(1 - 2 * b * b)
z1 = z2 + Math.sqrt(0.75 - b * b)
// 8 exact D2d vertices (scaled cleanly to unit circumradius)
s = 0.85
A1 = Point( 0.5 * s, 0, z1 * s); A2 = Point(-0.5 * s, 0, z1 * s)
B1 = Point( 0, 0.5 * s, -z1 * s); B2 = Point( 0, -0.5 * s, -z1 * s)
C1 = Point( b * s, 0, -z2 * s); C2 = Point(-b * s, 0, -z2 * s)
D1 = Point( 0, b * s, z2 * s); D2 = Point( 0, -b * s, z2 * s)
// Helper: orient plane(p, q, r) outward from origin and cut!
cutTri = (p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane("T", u, u.dot(p))
}
faces = [
[A1, A2, D1], [A1, A2, D2], [B1, B2, C1], [B1, B2, C2],
[A1, D1, C1], [A1, D2, C1], [A2, D1, C2], [A2, D2, C2],
[B1, C1, D1], [B1, C2, D1], [B2, C1, D2], [B2, C2, D2]
]
faces.map(tri => cutTri(tri[0], tri[1], tri[2]))
assert(stone().facetCount == 12)
assert(stone().vertexCount == 8)
BDPT
J85: Snub Square Antiprism
96-index + cheaterView exact FSL source ▼
name = "J85: Snub Square Antiprism"
ri = 1.45
gear = 96
cube = 2.5
// Elementary D4d solid (2 squares + 24 equilateral triangles)
// Solve unit-edge ring radius R1 live via pure functional Newton-Raphson!
s2 = Math.sqrt(2)
f85 = R => Math.sqrt(1 - (R - 1 / s2) * (R - 1 / s2)) - Math.sqrt(0.5 + R - R * R) - Math.sqrt(1 - (2 - s2) * R * R)
step = x => x - f85(x) / ((f85(x + 1e-7) - f85(x - 1e-7)) / 2e-7)
R1 = Math.range(0, 14).reduce(x => step(x), 1.2)
z2 = 0.5 * Math.sqrt(1 - (2 - s2) * R1 * R1)
z1 = z2 + Math.sqrt(0.5 + R1 - R1 * R1)
// 16 exact D4d vertices in 4 rings of 4
sc = 0.62
ring = (rad, z, deg0) => Math.range(0, 4).map(k =>
Point(rad * sc * Math.cosDeg(deg0 + k * 90), rad * sc * Math.sinDeg(deg0 + k * 90), z * sc)
)
top = ring(1 / s2, z1, 45)
up = ring(R1, z2, 0)
lo = ring(R1, -z2, 45)
bot = ring(1 / s2, -z1, 0)
cutTri = (p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane("T", u, u.dot(p))
}
// 2 axial squares + 24 equilateral triangles across 6 four-fold rings
P1 0 @ 0.0 : (z1 * sc) x1
T 0 @ 0.0 : (z1 * sc) x1
Math.range(0, 4).map(k => {
kn = (k + 1) % 4
kp = (k + 3) % 4
cutTri(top[k], top[kp], up[k])
cutTri(top[k], up[k], lo[k])
cutTri(top[k], up[kn], lo[k])
cutTri(bot[k], bot[kn], lo[k])
cutTri(bot[k], lo[k], up[k])
cutTri(bot[k], lo[kp], up[k])
})
assert(stone().facetCount == 26)
assert(stone().vertexCount == 16)
BDPT
J86: Sphenocorona
96-index + cheaterView exact FSL source ▼
name = "J86: Sphenocorona"
ri = 1.45
gear = 96
cube = 2.5
// Elementary C2v solid (2 squares + 12 equilateral triangles)
// Solve unit-edge square tilt z1 live via pure functional Newton-Raphson!
f86 = z1 => {
y1 = Math.sqrt(1 - z1 * z1)
z3 = 0.5 / z1
x3 = 0.5 + Math.sqrt(1 - z3 * z3)
lhs = z1 + Math.sqrt(0.75 - (0.5 - y1) * (0.5 - y1))
rhs = z3 + Math.sqrt(0.75 - x3 * x3)
lhs - rhs
}
step = x => x - f86(x) / ((f86(x + 1e-7) - f86(x - 1e-7)) / 2e-7)
z1 = Math.range(0, 14).reduce(x => step(x), 0.52)
y1 = Math.sqrt(1 - z1 * z1)
z3 = 0.5 / z1
x3 = 0.5 + Math.sqrt(1 - z3 * z3)
z2 = z1 + Math.sqrt(0.75 - (0.5 - y1) * (0.5 - y1))
// 10 exact C2v vertices centered at origin
sc = 0.72
zc = (z1 * 4 + z2 * 2 + z3 * 2) / 10
pt = (x, y, z) => Point(x * sc, y * sc, (z - zc) * sc)
Ap = pt( 0.5, 0, 0); Am = pt(-0.5, 0, 0)
Bpp = pt( 0.5, y1, z1); Bmp = pt(-0.5, y1, z1)
Bpm = pt( 0.5, -y1, z1); Bmm = pt(-0.5, -y1, z1)
Cp = pt(0, 0.5, z2); Cm = pt(0, -0.5, z2)
Dp = pt( x3, 0, z3); Dm = pt(-x3, 0, z3)
cutFace = (tier, p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
// 2 bottom squares + 12 equilateral triangles
cutFace("S", Ap, Am, Bpp); cutFace("S", Ap, Am, Bpm)
tris = [
[Ap, Bpp, Dp], [Ap, Bpm, Dp], [Am, Bmp, Dm], [Am, Bmm, Dm],
[Bpp, Bmp, Cp], [Bpm, Bmm, Cm],
[Bpp, Cp, Dp], [Bpm, Cm, Dp], [Bmp, Cp, Dm], [Bmm, Cm, Dm],
[Cp, Cm, Dp], [Cp, Cm, Dm]
]
tris.map(t => cutFace("T", t[0], t[1], t[2]))
assert(stone().facetCount == 14)
assert(stone().vertexCount == 10)
BDPT
J87: Augmented Sphenocorona
96-index + cheaterView exact FSL source ▼
name = "J87: Augmented Sphenocorona"
ri = 1.45
gear = 96
cube = 2.5
// Sphenocorona (J86) with a unit square pyramid erected on one of its 2 square faces!
f86 = z1 => {
y1 = Math.sqrt(1 - z1 * z1)
z3 = 0.5 / z1
x3 = 0.5 + Math.sqrt(1 - z3 * z3)
lhs = z1 + Math.sqrt(0.75 - (0.5 - y1) * (0.5 - y1))
rhs = z3 + Math.sqrt(0.75 - x3 * x3)
lhs - rhs
}
step = x => x - f86(x) / ((f86(x + 1e-7) - f86(x - 1e-7)) / 2e-7)
z1 = Math.range(0, 14).reduce(x => step(x), 0.52)
y1 = Math.sqrt(1 - z1 * z1)
z3 = 0.5 / z1
x3 = 0.5 + Math.sqrt(1 - z3 * z3)
z2 = z1 + Math.sqrt(0.75 - (0.5 - y1) * (0.5 - y1))
sc = 0.65
zc = (z1 * 4 + z2 * 2 + z3 * 2) / 10
pt = (x, y, z) => Point(x * sc, y * sc, (z - zc) * sc)
Ap = pt( 0.5, 0, 0); Am = pt(-0.5, 0, 0)
Bpp = pt( 0.5, y1, z1); Bmp = pt(-0.5, y1, z1)
Bpm = pt( 0.5, -y1, z1); Bmm = pt(-0.5, -y1, z1)
Cp = pt(0, 0.5, z2); Cm = pt(0, -0.5, z2)
Dp = pt( x3, 0, z3); Dm = pt(-x3, 0, z3)
// Unit square pyramid apex above the +Y square (Ap, Am, Bmp, Bpp)
sqMid = (Ap + Am + Bpp + Bmp) / 4
sqN = (Bpp - Ap).cross(Am - Ap).normalize()
outN = sqN.dot(sqMid) < 0 ? -sqN : sqN
Q = sqMid + outN * (sc / Math.sqrt(2))
cutFace = (tier, p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
// 1 remaining square + 12 sphenocorona triangles + 4 square-pyramid triangles
cutFace("S", Ap, Am, Bpm)
tris = [
[Ap, Bpp, Dp], [Ap, Bpm, Dp], [Am, Bmp, Dm], [Am, Bmm, Dm],
[Bpp, Bmp, Cp], [Bpm, Bmm, Cm],
[Bpp, Cp, Dp], [Bpm, Cm, Dp], [Bmp, Cp, Dm], [Bmm, Cm, Dm],
[Cp, Cm, Dp], [Cp, Cm, Dm],
[Ap, Am, Q], [Am, Bmp, Q], [Bmp, Bpp, Q], [Bpp, Ap, Q]
]
tris.map(t => cutFace("T", t[0], t[1], t[2]))
assert(stone().facetCount == 17)
assert(stone().vertexCount == 11)
BDPT
J88: Sphenomegacorona
96-index + cheaterView exact FSL source ▼
name = "J88: Sphenomegacorona"
ri = 1.45
gear = 96
cube = 2.5
// Elementary C2v solid (2 squares + 16 equilateral triangles)
// 1-variable geometric reduction solved live via pure functional Newton-Raphson!
circleIx = (xA, zA, rA, xB, zB, rB) => {
dx = xB - xA; dz = zB - zA
d = Math.hypot(dx, dz)
a = (rA * rA - rB * rB + d * d) / (2 * d)
hh = Math.sqrt(Math.max(0, rA * rA - a * a))
out = [xA + (a * dx - hh * dz) / d, zA + (a * dz + hh * dx) / d]
out
}
f88 = z1 => {
y1 = Math.sqrt(1 - z1 * z1)
z2 = 0.5 / z1
x2 = 0.5 + Math.sqrt(1 - z2 * z2)
z3 = z1 + Math.sqrt(0.75 - (0.5 - y1) * (0.5 - y1))
F = circleIx(0, z3, Math.sqrt(0.75), x2, z2, 1)
res = (F[0] - 0.5) * (F[0] - 0.5) + y1 * y1 + (F[1] - z1) * (F[1] - z1) - 1
res
}
step = x => x - f88(x) / ((f88(x + 1e-7) - f88(x - 1e-7)) / 2e-7)
z1 = Math.range(0, 14).reduce(x => step(x), 0.75)
y1 = Math.sqrt(1 - z1 * z1)
z2 = 0.5 / z1
x2 = 0.5 + Math.sqrt(1 - z2 * z2)
z3 = z1 + Math.sqrt(0.75 - (0.5 - y1) * (0.5 - y1))
Fpt = circleIx(0, z3, Math.sqrt(0.75), x2, z2, 1)
x4 = Fpt[0]; z4 = Fpt[1]
sc = 0.64
zc = (z1 * 4 + z2 * 2 + z3 * 2 + z4 * 2) / 12
pt = (x, y, z) => Point(x * sc, y * sc, (z - zc) * sc)
Ap = pt( 0.5, 0, 0); Am = pt(-0.5, 0, 0)
Bpp = pt( 0.5, y1, z1); Bmp = pt(-0.5, y1, z1)
Bpm = pt( 0.5, -y1, z1); Bmm = pt(-0.5, -y1, z1)
Dp = pt( x2, 0, z2); Dm = pt(-x2, 0, z2)
Ep = pt( 0, 0.5, z3); Em = pt( 0, -0.5, z3)
Fp = pt( x4, 0, z4); Fm = pt(-x4, 0, z4)
cutFace = (tier, p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
cutFace("S", Ap, Am, Bpp); cutFace("S", Ap, Am, Bpm)
tris = [
[Ap, Bpp, Dp], [Ap, Bpm, Dp], [Am, Bmp, Dm], [Am, Bmm, Dm],
[Bpp, Dp, Fp], [Bpm, Dp, Fp], [Bmp, Dm, Fm], [Bmm, Dm, Fm],
[Bpp, Bmp, Ep], [Bpm, Bmm, Em],
[Bpp, Ep, Fp], [Bpm, Em, Fp], [Bmp, Ep, Fm], [Bmm, Em, Fm],
[Ep, Em, Fp], [Ep, Em, Fm]
]
tris.map(t => cutFace("T", t[0], t[1], t[2]))
assert(stone().facetCount == 18)
assert(stone().vertexCount == 12)
BDPT
J89: Hebesphenomegacorona
96-index + cheaterView exact FSL source ▼
name = "J89: Hebesphenomegacorona"
ri = 1.45
gear = 96
cube = 2.5
// Elementary C2v solid (3 squares + 18 equilateral triangles, Timofeenko's algebraic root!)
// 1-variable reduction solved live to 15 digits via pure functional Newton-Raphson!
circleIx = (xA, zA, rA, xB, zB, rB) => {
dx = xB - xA; dz = zB - zA
d = Math.hypot(dx, dz)
a = (rA * rA - rB * rB + d * d) / (2 * d)
hh = Math.sqrt(Math.max(0, rA * rA - a * a))
out = [xA + (a * dx - hh * dz) / d, zA + (a * dz + hh * dx) / d]
out
}
f89 = z1 => {
y1 = Math.sqrt(1 - z1 * z1)
yb = 0.5 + y1
z2 = (1 + y1) / (2 * z1)
x2 = 0.5 + Math.sqrt(0.75 - z2 * z2)
z3 = z1 + Math.sqrt(0.75 - y1 * y1)
F = circleIx(0, z3, Math.sqrt(0.75), x2, z2, 1)
res = (F[0] - 0.5) * (F[0] - 0.5) + yb * yb + (F[1] - z1) * (F[1] - z1) - 1
res
}
step = x => x - f89(x) / ((f89(x + 1e-7) - f89(x - 1e-7)) / 2e-7)
z1 = Math.range(0, 14).reduce(x => step(x), 0.96)
y1 = Math.sqrt(1 - z1 * z1)
yb = 0.5 + y1
z2 = (1 + y1) / (2 * z1)
x2 = 0.5 + Math.sqrt(0.75 - z2 * z2)
z3 = z1 + Math.sqrt(0.75 - y1 * y1)
Fpt = circleIx(0, z3, Math.sqrt(0.75), x2, z2, 1)
x4 = Fpt[0]; z4 = Fpt[1]
sc = 0.62
zc = (z1 * 4 + z2 * 2 + z3 * 2 + z4 * 2) / 14
pt = (x, y, z) => Point(x * sc, y * sc, (z - zc) * sc)
App = pt( 0.5, 0.5, 0); Amp = pt(-0.5, 0.5, 0)
Apm = pt( 0.5, -0.5, 0); Amm = pt(-0.5, -0.5, 0)
Bpp = pt( 0.5, yb, z1); Bmp = pt(-0.5, yb, z1)
Bpm = pt( 0.5, -yb, z1); Bmm = pt(-0.5, -yb, z1)
Dp = pt( x2, 0, z2); Dm = pt(-x2, 0, z2)
Ep = pt( 0, 0.5, z3); Em = pt( 0, -0.5, z3)
Fp = pt( x4, 0, z4); Fm = pt(-x4, 0, z4)
cutFace = (tier, p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
// 3 squares (bottom + 2 tilted walls) + 18 equilateral triangles
cutFace("S", App, Amp, Apm)
cutFace("S", App, Amp, Bpp)
cutFace("S", Apm, Amm, Bpm)
tris = [
[App, Apm, Dp], [Amp, Amm, Dm],
[App, Bpp, Dp], [Apm, Bpm, Dp], [Amp, Bmp, Dm], [Amm, Bmm, Dm],
[Bpp, Dp, Fp], [Bpm, Dp, Fp], [Bmp, Dm, Fm], [Bmm, Dm, Fm],
[Bpp, Bmp, Ep], [Bpm, Bmm, Em],
[Bpp, Ep, Fp], [Bpm, Em, Fp], [Bmp, Ep, Fm], [Bmm, Em, Fm],
[Ep, Em, Fp], [Ep, Em, Fm]
]
tris.map(t => cutFace("T", t[0], t[1], t[2]))
assert(stone().facetCount == 21)
assert(stone().vertexCount == 14)
BDPT
J90: Disphenocingulum
96-index + cheaterView exact FSL source ▼
name = "J90: Disphenocingulum"
ri = 1.45
gear = 96
cube = 2.5
// Elementary D2d solid (4 squares + 20 equilateral triangles)
// 1-variable geometric equation in square drop dz solved live via Newton-Raphson!
f90 = dz => {
yB = Math.sqrt(1 - dz * dz)
zB = 0.5 * Math.sqrt(1 - 2 * (yB - 0.5) * (yB - 0.5))
zA = zB + dz
dzD = 0.5 / dz
zD = zA - dzD
xD = 0.5 + Math.sqrt(1 - dzD * dzD)
res = (xD - yB) * (xD - yB) + 0.25 + (zD + zB) * (zD + zB) - 1
res
}
step = x => x - f90(x) / ((f90(x + 1e-7) - f90(x - 1e-7)) / 2e-7)
dz = Math.range(0, 14).reduce(x => step(x), 0.72)
yB = Math.sqrt(1 - dz * dz)
zB = 0.5 * Math.sqrt(1 - 2 * (yB - 0.5) * (yB - 0.5))
zA = zB + dz
dzD = 0.5 / dz
zD = zA - dzD
xD = 0.5 + Math.sqrt(1 - dzD * dzD)
sc = 0.62
pt = (x, y, z) => Point(x * sc, y * sc, z * sc)
// Top ridge & 4 corners
Ap = pt( 0.5, 0, zA); Am = pt(-0.5, 0, zA)
Bpp = pt( 0.5, yB, zB); Bmp = pt(-0.5, yB, zB)
Bpm = pt( 0.5, -yB, zB); Bmm = pt(-0.5, -yB, zB)
// Bottom ridge & 4 corners (90 deg rotoreflection!)
Cp = pt(0, 0.5, -zA); Cm = pt(0, -0.5, -zA)
Epp = pt( yB, 0.5, -zB); Epm = pt( yB, -0.5, -zB)
Emp = pt(-yB, 0.5, -zB); Emm = pt(-yB, -0.5, -zB)
// 4 equatorial belt vertices
Dp = pt( xD, 0, zD); Dm = pt(-xD, 0, zD)
Fp = pt( 0, xD, -zD); Fm = pt( 0, -xD, -zD)
cutFace = (tier, p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
// 4 squares + 20 equilateral triangles
cutFace("S", Ap, Am, Bpp); cutFace("S", Ap, Am, Bpm)
cutFace("S", Cp, Cm, Epp); cutFace("S", Cp, Cm, Emp)
tris = [
[Ap, Bpp, Dp], [Ap, Bpm, Dp], [Am, Bmp, Dm], [Am, Bmm, Dm],
[Cp, Epp, Fp], [Cp, Emp, Fp], [Cm, Epm, Fm], [Cm, Emm, Fm],
[Bpp, Dp, Epp], [Bpm, Dp, Epm], [Bmp, Dm, Emp], [Bmm, Dm, Emm],
[Dp, Epp, Epm], [Dm, Emp, Emm],
[Bpp, Fp, Epp], [Bmp, Fp, Emp], [Bpm, Fm, Epm], [Bmm, Fm, Emm],
[Bpp, Bmp, Fp], [Bpm, Bmm, Fm]
]
tris.map(t => cutFace("T", t[0], t[1], t[2]))
assert(stone().facetCount == 24)
assert(stone().vertexCount == 16)
BDPT
J91: Bilunabirotunda
80-indexView exact FSL source ▼
name = "J91: Bilunabirotunda"
ri = 1.45
gear = bestGear(10) // 80-index exact!
cube = 2.5
// Elementary golden-ratio D2h solid (4 pentagons + 2 squares + 8 triangles)
// Exact closed-form vertices carved directly from icosahedral golden geometry!
phi = Math.PHI
sc = 0.56
// Align one of the 4 pentagon normals (1, 0, phi) -> +Z so every face hits exact 80-index teeth!
e3 = Normal(1, 0, phi)
e1 = Normal(0, 1, 0)
e2 = e3.cross(e1)
toDop = p => Point(p.dot(e1) * sc, p.dot(e2) * sc, p.dot(e3) * sc)
// 14 exact closed-form D2h vertices
Ap = toDop(Point(0, 0, phi / 2)); Am = toDop(Point(0, 0, -phi / 2))
Bp = toDop(Point( phi * phi / 2, 0.5, 0)); Bm = toDop(Point( phi * phi / 2, -0.5, 0))
Cp = toDop(Point(-phi * phi / 2, 0.5, 0)); Cm = toDop(Point(-phi * phi / 2, -0.5, 0))
Dpp = toDop(Point( 0.5, phi / 2, 0.5)); Dpm = toDop(Point( 0.5, phi / 2, -0.5))
Dmp = toDop(Point(-0.5, phi / 2, 0.5)); Dmm = toDop(Point(-0.5, phi / 2, -0.5))
Epp = toDop(Point( 0.5, -phi / 2, 0.5)); Epm = toDop(Point( 0.5, -phi / 2, -0.5))
Emp = toDop(Point(-0.5, -phi / 2, 0.5)); Emm = toDop(Point(-0.5, -phi / 2, -0.5))
cutFace = (tier, p, q, r) => {
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
// 2 opposite squares + 4 golden pentagons + 8 equilateral triangles
cutFace("S", Dpp, Dpm, Dmp); cutFace("S", Epp, Epm, Emp)
cutFace("P5", Ap, Dpp, Bp); cutFace("P5", Ap, Dmp, Cp)
cutFace("P5", Am, Dpm, Bp); cutFace("P5", Am, Dmm, Cp)
tris = [
[Ap, Dpp, Dmp], [Ap, Epp, Emp], [Am, Dpm, Dmm], [Am, Epm, Emm],
[Bp, Dpp, Dpm], [Bm, Epp, Epm], [Cp, Dmp, Dmm], [Cm, Emp, Emm]
]
tris.map(t => cutFace("T", t[0], t[1], t[2]))
assert(stone().facetCount == 14)
assert(stone().vertexCount == 14)
BDPT
J92: Triangular Hebesphenorotunda
80-indexView exact FSL source ▼
name = "J92: Triangular Hebesphenorotunda"
ri = 1.45
gear = bestGear(10) // 80-index exact!
cube = 2.5
// Elementary C3v solid (1 hexagon + 3 pentagons + 3 squares + 13 triangles)
// Top 12 vertices come straight from a unit Icosidodecahedron around a3 = (1,1,1)
// at golden-progression heights (phi^2, phi, 1) / sqrt(3), joined to a unit bottom hexagon!
phi = Math.PHI
a3 = Normal(1, 1, 1)
p0 = Normal(1, 0, phi) // 5-fold pentagon normal
// Local C3v frame (e3 = a3) to build the exact 12 cap vertices + bottom hexagon
e3 = a3
e1 = (p0 - a3 * p0.dot(a3)).normalize()
e2 = e3.cross(e1)
toC3 = v => Point(v.dot(e1), v.dot(e2), v.dot(e3))
zAx = Vector(0, 0, 1)
// Exact 12 cap vertices (edge = 1) rotated 3-fold around a3
top3 = Math.range(0, 3).map(k => toC3(Vector(0.5, phi / 2, phi * phi / 2)).rotate(zAx, k * 2 * Math.PI / 3))
midA = Math.range(0, 3).map(k => toC3(Vector(0, 0, phi)).rotate(zAx, k * 2 * Math.PI / 3))
midB = Math.range(0, 3).map(k => toC3(Vector(phi * phi / 2, -0.5, phi / 2)).rotate(zAx, k * 2 * Math.PI / 3))
tip3 = Math.range(0, 3).map(k => toC3(Vector(0.5, -phi / 2, phi * phi / 2)).rotate(zAx, k * 2 * Math.PI / 3))
// Bottom unit regular hexagon (radius = 1) sits below tip3 at exact unit-edge drop dz_bot
r_tip = Math.hypot(tip3[0].x, tip3[0].y)
z_tip = tip3[0].z
dz_bot = Math.sqrt(1 - (r_tip - Math.cosDeg(30)) * (r_tip - Math.cosDeg(30)) - 0.25)
z_bot = z_tip - dz_bot
a_tip = Math.atan2Deg(tip3[0].y, tip3[0].x)
hex6 = Math.range(0, 6).map(k => Point(Math.cosDeg(a_tip - 30 + k * 60), Math.sinDeg(a_tip - 30 + k * 60), z_bot))
zc = (top3[0].z * 3 + midA[0].z * 6 + z_tip * 3 + z_bot * 6) / 18
// Re-orient p0 -> +Z so every one of the 20 faces hits exact 80-index teeth!
f3 = p0
f1 = (a3 - p0 * a3.dot(p0)).normalize()
f2 = f3.cross(f1)
sc = 0.56
mapP = q => {
w = e1 * q.x + e2 * q.y + e3 * (q.z - zc)
Point(w.dot(f1) * sc, w.dot(f2) * sc, w.dot(f3) * sc)
}
cutFace = (tier, a, b, c) => {
p = mapP(a); q = mapP(b); r = mapP(c)
n = (q - p).cross(r - p).normalize()
u = n.dot(p) < 0 ? -n : n
cutPlane(tier, u, u.dot(p))
}
// Top triangle + bottom hexagon + 3 pentagons + 3 squares + 12 side triangles
cutFace("T", top3[0], top3[1], top3[2])
cutFace("H6", hex6[0], hex6[1], hex6[2])
Math.range(0, 3).map(k => {
kn = (k + 1) % 3
kp = (k + 2) % 3
h0 = hex6[2 * k]; h1 = hex6[2 * k + 1]; h2 = hex6[(2 * k + 2) % 6]
cutFace("P5", top3[k], top3[kn], tip3[k])
cutFace("S4", midB[k], midA[kn], h1)
cutFace("T", tip3[k], h0, h1)
cutFace("T", tip3[k], midB[k], h1)
cutFace("T", tip3[k], midA[k], h0)
cutFace("T", top3[k], midA[k], midB[kp])
})
assert(stone().facetCount == 20)
assert(stone().vertexCount == 18)