OffTheDop
✦ Crystal Library · Part II of VIII · 13 Specimens 3 min read ← Crystal Library Overview

Part Ii: The Hexagonal Crystal System in FSL

• ProFacet Computational Faceting
Physics & Optics Computation

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 Hexagonal crystal system is defined by a single vertical 6-fold rotation (6) or 6-fold rotoinversion (-6) axis along c, surrounded by equal horizontal axes at 120-degree intervals (a = b != c, alpha = beta = 90 deg, gamma = 120 deg). Following the International Tables for Crystallography, classes -6 and -6m2 belong strictly here because a 6-fold rotoinversion axis (-6 = 3/m) is a 6-fold improper symmetry element.

Hexagonal 4-index Bravais-Miller coordinate rule and all 7 hexagonal crystal classes
Left: Why hexagonal and trigonal crystallography adds a third horizontal axis a3 at 120 degrees so symmetry-equivalent prism planes share clear permutations under h + k + i = 0. Right: All seven hexagonal point groups with their general forms and flagship minerals.
  1. FOUR-INDEX BRAVAIS-MILLER NOTATION (h k i l) AND ALL 9 HEXAGONAL FORMS

With only two horizontal axes a1 and a2, the six equivalent sides of a Beryl prism carry mismatched 3-index labels: (100), (010), and (-110). Adding a third coplanar horizontal axis a3 at 120 degrees to both gives every plane a fourth index i = -(h + k). All six first-order prism faces immediately become clean permutations of {10-10}, while the 30-degree shifted second-order prism becomes {11-20}.

The hexagonal system houses 7 crystal classes (6/mmm, 622, 6mm, -6m2, 6/m, -6, and 6) and 9 pure crystallographic forms: four open forms (Hexagonal Prism, Dihexagonal Prism, Hexagonal Pyramid, and Dihexagonal Pyramid) and five closed forms (Trigonal Dipyramid in -6, Ditrigonal Dipyramid in -6m2, Hexagonal Dipyramid in 6/m, Dihexagonal Dipyramid in 6/mmm, and the chiral Hexagonal Trapezohedron in 622). Notice Benitoite (BaTiSi3O9, space group P-6c2, c/a = 1.470), nature's textbook realization of class -6m2, where dominant {01-12} faces build flat, razor-sharp sapphire-blue triangular dipyramids.

2. All 9 Pure Hexagonal Forms And 4 Reference Hexagonal Mineral Species#

Showing 13 of 13 verified crystal specimens · click any render or blueprint to zoom
Hexagonal Prism GPU path-traced natural crystal render BDPT
Hexagonal Prism 3D crystallographic Miller-index SVG blueprint SVG

Hexagonal Prism

Form #10 · Open
Class 6/mmm (D6h, order 24) · 6 active + 2 frosted cap
{10-10} | V=12 · E=18 · F=8

Six vertical faces meeting at 120 degrees; the prismatic backbone of Beryl, Apatite, and Water Ice Ih.

View exact crystallographic FSL ▼
name = "Hexagonal Prism"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/mmm (D6h, order 24)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/mmm (D6h, order 24) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-10}", 1, 0, 0, 0.64)

// Minimal frosted closing planes (open forms cannot enclose space alone)
cutPlane("CAP", Normal(0, 0, 1), 0.84, { frosted: true })
cutPlane("CAP", Normal(0, 0, -1), 0.84, { frosted: true })

assert(stone().facetCount == 8)
assert(stone().vertexCount == 12)
Dihexagonal Prism GPU path-traced natural crystal render BDPT
Dihexagonal Prism 3D crystallographic Miller-index SVG blueprint SVG

Dihexagonal Prism

Form #11 · Open
Class 6/mmm (D6h, order 24) · 12 active + 2 frosted cap
{21-30} | V=24 · E=36 · F=14

Twelve vertical faces with alternating interfacial angles; appears as side bevels on Beryl and Apatite.

View exact crystallographic FSL ▼
name = "Dihexagonal Prism"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/mmm (D6h, order 24)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/mmm (D6h, order 24) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{21-30}", 2, 1, 0, 0.68)

// Minimal frosted closing planes (open forms cannot enclose space alone)
cutPlane("CAP", Normal(0, 0, 1), 0.82, { frosted: true })
cutPlane("CAP", Normal(0, 0, -1), 0.82, { frosted: true })

assert(stone().facetCount == 14)
assert(stone().vertexCount == 24)
Hexagonal Pyramid GPU path-traced natural crystal render BDPT
Hexagonal Pyramid 3D crystallographic Miller-index SVG blueprint SVG

Hexagonal Pyramid

Form #17 · Open
Class 6 (C6, order 6) · 6 active + 1 frosted cap
{10-11} | V=7 · E=12 · F=7

Six sloped triangular faces meeting at one polar apex; general form of class 6 (e.g. Nepheline).

View exact crystallographic FSL ▼
name = "Hexagonal Pyramid"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6 (C6, order 6)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6 (C6, order 6) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), 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)
orbit     = seed => Math.range(0, 6).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-11}", 1, 0, 1, 0.68)

// Minimal frosted closing planes (open forms cannot enclose space alone)
cutPlane("CAP", Normal(0, 0, -1), 0.54, { frosted: true })

assert(stone().facetCount == 7)
assert(stone().vertexCount == 7)
Dihexagonal Pyramid GPU path-traced natural crystal render BDPT
Dihexagonal Pyramid 3D crystallographic Miller-index SVG blueprint SVG

Dihexagonal Pyramid

Form #18 · Open
Class 6mm (C6v, order 12) · 12 active + 1 frosted cap
{21-31} | V=13 · E=24 · F=13

Twelve sloped faces around a polar 6-fold axis; general form of class 6mm (Wurtzite, Zincite).

View exact crystallographic FSL ▼
name = "Dihexagonal Pyramid"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6mm (C6v, order 12)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6mm (C6v, order 12) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, -u.y, u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{21-31}", 2, 1, 1, 0.7)

// Minimal frosted closing planes (open forms cannot enclose space alone)
cutPlane("CAP", Normal(0, 0, -1), 0.5, { frosted: true })

assert(stone().facetCount == 13)
assert(stone().vertexCount == 13)
Trigonal Dipyramid GPU path-traced natural crystal render BDPT
Trigonal Dipyramid 3D crystallographic Miller-index SVG blueprint SVG

Trigonal Dipyramid

Form #22 · Closed
Class -6 (C3h, order 6) · 6 closed faces
{10-11} | V=5 · E=9 · F=6

Six isosceles triangles joined across a horizontal mirror (6bar = 3/m); general form of hexagonal class -6.

View exact crystallographic FSL ▼
name = "Trigonal Dipyramid"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6̄ (C3h, order 6)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6̄ (C3h, order 6) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), 2 * Math.PI / 3), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 4).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-11}", 1, 0, 1, 0.6)

assert(stone().facetCount == 6)
assert(stone().vertexCount == 5)
Ditrigonal Dipyramid GPU path-traced natural crystal render BDPT
Ditrigonal Dipyramid 3D crystallographic Miller-index SVG blueprint SVG

Ditrigonal Dipyramid

Form #23 · Closed
Class -6m2 (D3h, order 12) · 12 closed faces
{21-31} | V=8 · E=18 · F=12

Twelve scalene triangles (six upper, six lower); general form of Benitoite's hexagonal class -6m2.

View exact crystallographic FSL ▼
name = "Ditrigonal Dipyramid"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6̄m2 (D3h, order 12)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6̄m2 (D3h, order 12) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), 2 * Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 5).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{21-31}", 2, 1, 1, 0.68)

assert(stone().facetCount == 12)
assert(stone().vertexCount == 8)
Hexagonal Dipyramid GPU path-traced natural crystal render BDPT
Hexagonal Dipyramid 3D crystallographic Miller-index SVG blueprint SVG

Hexagonal Dipyramid

Form #26 · Closed
Class 6/m (C6h, order 12) · 12 closed faces
{10-11} | V=8 · E=18 · F=12

Twelve isosceles triangles forming mirrored hexagonal pyramids base-to-base; classic on Apatite and Beta Quartz.

View exact crystallographic FSL ▼
name = "Hexagonal Dipyramid"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/m (C6h, order 12)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/m (C6h, order 12) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-11}", 1, 0, 1, 0.68)

assert(stone().facetCount == 12)
assert(stone().vertexCount == 8)
Dihexagonal Dipyramid GPU path-traced natural crystal render BDPT
Dihexagonal Dipyramid 3D crystallographic Miller-index SVG blueprint SVG

Dihexagonal Dipyramid

Form #27 · Closed
Class 6/mmm (D6h, order 24) · 24 closed faces
{21-31} | V=14 · E=36 · F=24

General form of holohedral class 6/mmm: twenty-four scalene triangles (12 upper, 12 lower).

View exact crystallographic FSL ▼
name = "Dihexagonal Dipyramid"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/mmm (D6h, order 24)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/mmm (D6h, order 24) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{21-31}", 2, 1, 1, 0.72)

assert(stone().facetCount == 24)
assert(stone().vertexCount == 14)
Hexagonal Trapezohedron GPU path-traced natural crystal render BDPT
Hexagonal Trapezohedron 3D crystallographic Miller-index SVG blueprint SVG

Hexagonal Trapezohedron

Form #30 · Closed
Class 622 (D6, order 12) · 12 closed faces
{21-31} | V=14 · E=24 · F=12

General form of chiral class 622: twelve twisted trapezia with zero mirror planes; found in high Beta Quartz.

View exact crystallographic FSL ▼
name = "Hexagonal Trapezohedron"
ri   = 1.58
gear = 96
cube = 3.2

// System: Hexagonal | Class: 622 (D6, order 12)
// Unit cell: a=1, b=1, c=1.25, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.25
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 622 (D6, order 12) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(-u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{21-31}", 2, 1, 1, 0.72)

assert(stone().facetCount == 12)
assert(stone().vertexCount == 14)
Beryl / Emerald (Hexagonal Prism) GPU path-traced natural crystal render BDPT
Beryl / Emerald (Hexagonal Prism) 3D crystallographic Miller-index SVG blueprint SVG

Beryl / Emerald (Hexagonal Prism)

RI 1.58
Be3Al2Si6O18 · Class 6/mmm (D6h)
{10-10} + {0001} + {10-11} | V=24 · E=42 · F=20

Classic Muzo Beryl column (P6/mcc): crisp flat-topped 6-sided prism {10-10}, broad {0001} pinacoid, and hairline {10-11} rim bevels.

View exact crystallographic FSL ▼
name = "Beryl / Emerald (Hexagonal Prism)"
ri   = 1.578
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/mmm (D6h, order 24)
// Mineral: Beryl (Emerald) (Be3Al2Si6O18)
// Unit cell: a=1, b=1, c=0.998, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 0.998
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/mmm (D6h, order 24) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-10}", 1, 0, 0, 0.46)
cutForm("{0001}", 0, 0, 1, 0.88)
cutForm("{10-11}", 1, 0, 1, 0.895)

assert(stone().facetCount == 20)
assert(stone().vertexCount == 24)
Benitoite (Triangular Class -6m2) GPU path-traced natural crystal render BDPT
Benitoite (Triangular Class -6m2) 3D crystallographic Miller-index SVG blueprint SVG

Benitoite (Triangular Class -6m2)

RI 1.77
BaTiSi3O9 · Class -6m2 (D3h)
{01-12} + {10-12} + {0001} | V=18 · E=30 · F=14

Flagship mineral of rare hexagonal class -6m2 (P-6c2, c/a = 1.470): flat triangular {01-12} trigonal dipyramid with subtle {10-12} corner bevels.

View exact crystallographic FSL ▼
name = "Benitoite (Triangular Class -6m2)"
ri   = 1.77
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6̄m2 (D3h, order 12)
// Mineral: Benitoite (BaTiSi3O9)
// Unit cell: a=1, b=1, c=1.47, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.47
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6̄m2 (D3h, order 12) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), 2 * Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 5).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{01-12}", 0, 1, 2, 0.42)
cutForm("{10-12}", 1, 0, 2, 0.72)
cutForm("{0001}", 0, 0, 1, 0.47)

assert(stone().facetCount == 14)
assert(stone().vertexCount == 18)
Fluorapatite (Hexagonal Prism + Dipyramid) GPU path-traced natural crystal render BDPT
Fluorapatite (Hexagonal Prism + Dipyramid) 3D crystallographic Miller-index SVG blueprint SVG

Fluorapatite (Hexagonal Prism + Dipyramid)

RI 1.64
Ca5(PO4)3F · Class 6/m (C6h)
{10-10} + {0001} + {10-11} + {11-21} | V=60 · E=90 · F=32

Classic class 6/m phosphate combining hexagonal prism {10-10}, basal pinacoid {0001}, and two hexagonal dipyramid tiers.

View exact crystallographic FSL ▼
name = "Fluorapatite (Hexagonal Prism + Dipyramid)"
ri   = 1.638
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/m (C6h, order 12)
// Mineral: Fluorapatite (Ca5(PO4)3F)
// Unit cell: a=1, b=1, c=0.735, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 0.735
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/m (C6h, order 12) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-10}", 1, 0, 0, 0.56)
cutForm("{0001}", 0, 0, 1, 0.8)
cutForm("{10-11}", 1, 0, 1, 0.74)
cutForm("{11-21}", 1, 1, 1, 0.79)

assert(stone().facetCount == 32)
assert(stone().vertexCount == 60)
Water Ice Ih (Atmospheric Prism) GPU path-traced natural crystal render BDPT
Water Ice Ih (Atmospheric Prism) 3D crystallographic Miller-index SVG blueprint SVG

Water Ice Ih (Atmospheric Prism)

RI 1.31
H2O · Class 6/mmm (D6h)
{10-10} + {0001} | V=12 · E=18 · F=8

Atmospheric hexagonal ice plate (RI 1.31, P6_3/mmc): the 60-degree prism edges that refract sunlight into 22-degree halos.

View exact crystallographic FSL ▼
name = "Water Ice Ih (Atmospheric Prism)"
ri   = 1.31
gear = 96
cube = 3.2

// System: Hexagonal | Class: 6/mmm (D6h, order 24)
// Mineral: Ice Ih (H2O)
// Unit cell: a=1, b=1, c=1.628, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.628
// Exact hexagonal/trigonal reciprocal lattice (gamma = 120 deg, c along +Z)
as = Vector(2 / (Math.sqrt(3) * a), 0, 0)
bs = Vector(1 / (Math.sqrt(3) * a), 1 / a, 0)
cs = Vector(0, 0, 1 / c)
miller = (h, k, l) => (as * h + bs * k + cs * l).normalize()

// Point group 6/mmm (D6h, order 24) symmetry orbit
gens      = [u => u.rotate(Normal(0, 0, 1), Math.PI / 3), u => Vector(u.x, -u.y, u.z), u => Vector(u.x, u.y, -u.z)]
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)
orbit     = seed => Math.range(0, 7).reduce(orb => gens.reduce(applyGen, orb), [seed])
cutForm   = (label, h, k, l, d) => orbit(miller(h, k, l)).map(n => cutPlane(label, n, d))

// Crystallographic forms {hkl} at Wulff growth distances
cutForm("{10-10}", 1, 0, 0, 0.68)
cutForm("{0001}", 0, 0, 1, 0.48)

assert(stone().facetCount == 8)
assert(stone().vertexCount == 12)
Click outside or press Esc to close