Part Iii: The Trigonal (Rhombohedral) Crystal System 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.
A six-sided column does not guarantee a hexagonal lattice. Hold an Alpha-Quartz prism or a Burmese Corundum barrel and look at the termination: three alternating faces grow differently from the other three. Alpha-Quartz, Corundum (Ruby and Sapphire), Tourmaline, Calcite, and Dioptase all belong to the Trigonal system, defined strictly by a single vertical 3-fold (3) or 3-fold rotoinversion (-3) principal axis.
1. Rhombohedra, Scalenohedra, Polar Ends, And Chiral Quartz#
Although trigonal minerals are indexed on the same 120-degree hexagonal coordinate grid (h + k + i = 0), dropping from 6-fold to 3-fold essential symmetry yields 5 crystal classes (-3m, 32, 3m, -3, 3) and 7 unique trigonal forms (4 open: Trigonal and Ditrigonal Prisms and Pyramids; 3 closed: Trigonal Trapezohedron, Rhombohedron, and Ditrigonal/Hexagonal Scalenohedron):
- Rhombohedral & Scalenohedral (
-3mand-3): Stretching or compressing a cube along one body diagonal creates a 6-faced Rhombohedron, famously seen in optical Iceland Spar Calcite{10-14}(rendered below with live GPU uniaxial double refraction of 0.172) and class-3Dioptase. Steep alternating pairs produce the 12-faced Ditrigonal (Hexagonal) Scalenohedron. Note that Calcite is mineralogy's ultimate habit chameleon: over 300 forms have been recorded onCaCO3alone (see our 6-habit Calcite morphing strip in the Crystal Library Overview). - Hemimorphic Polarity (
3m): Because Elbaite Tourmaline (R3m) lacks both a horizontal mirror and an inversion center, its+cand-cpoles terminate in completely different forms and develop opposite pyroelectric charges when heated. - Enantiomorphic Handedness (
32): Low-temperature Alpha-Quartz (SiO2) lacks every mirror plane. On well-formed crystals, tiny asymmetrics{11-21}andx{51-61}corner faces appear exclusively on either the right or left shoulder of the majorr {10-11}rhombohedron, matching the direction in which the crystal rotates polarized light.
2. All 7 Pure Trigonal Forms And 6 Reference Trigonal Mineral Species#
BDPT
Trigonal Prism
Form #06 · OpenThree vertical faces forming an equilateral triangle cross-section; the 3-fold core of Tourmaline.
View exact crystallographic FSL ▼
name = "Trigonal Prism"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3m (C3v, order 6)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 3m (C3v, 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-10}", 1, 0, 0, 0.54)
// 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 == 5)
assert(stone().vertexCount == 6)
BDPT
Ditrigonal Prism
Form #07 · OpenSix vertical faces with alternating angles, producing Tourmaline's rounded-triangle cross-section.
View exact crystallographic FSL ▼
name = "Ditrigonal Prism"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3m (C3v, order 6)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 3m (C3v, 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("{21-30}", 2, 1, 0, 0.66)
// 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 == 8)
assert(stone().vertexCount == 12)
BDPT
Trigonal Pyramid
Form #13 · OpenThree sloped triangular faces meeting at one polar point; general form of chiral polar class 3.
View exact crystallographic FSL ▼
name = "Trigonal Pyramid"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3 (C3, order 3)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 3 (C3, order 3) symmetry orbit
gens = [u => u.rotate(Normal(0, 0, 1), 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)
orbit = seed => Math.range(0, 3).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.58)
// Minimal frosted closing planes (open forms cannot enclose space alone)
cutPlane("CAP", Normal(0, 0, -1), 0.48, { frosted: true })
assert(stone().facetCount == 4)
assert(stone().vertexCount == 4)
BDPT
Ditrigonal Pyramid
Form #14 · OpenSix sloped faces in three mirrored pairs around a polar 3-fold axis; general form of Tourmaline's class 3m.
View exact crystallographic FSL ▼
name = "Ditrigonal Pyramid"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3m (C3v, order 6)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 3m (C3v, 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("{21-31}", 2, 1, 1, 0.66)
// Minimal frosted closing planes (open forms cannot enclose space alone)
cutPlane("CAP", Normal(0, 0, -1), 0.48, { frosted: true })
assert(stone().facetCount == 7)
assert(stone().vertexCount == 7)
BDPT
Trigonal Trapezohedron
Form #28 · ClosedGeneral form of Alpha-Quartz's chiral class 32: six twisted quadrilateral faces whose handedness rotates polarized light.
View exact crystallographic FSL ▼
name = "Trigonal Trapezohedron"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 32 (D3, order 6)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 32 (D3, 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("{31-42}", 3, 1, 2, 0.7)
assert(stone().facetCount == 6)
assert(stone().vertexCount == 8)
BDPT
Rhombohedron
Form #31 · ClosedSix congruent rhombi (a cube stretched or squashed along one body diagonal); signature form of Calcite and Dolomite.
View exact crystallographic FSL ▼
name = "Rhombohedron"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3̄m (D3d, order 12)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 3̄m (D3d, 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 => -u]
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("{10-11}", 1, 0, 1, 0.68)
assert(stone().facetCount == 6)
assert(stone().vertexCount == 8)
BDPT
Ditrigonal (Hexagonal) Scalenohedron
Form #33 · ClosedGeneral form of class -3m: twelve scalene triangles meeting in a zig-zag equatorial waist (Dogtooth Calcite).
View exact crystallographic FSL ▼
name = "Ditrigonal (Hexagonal) Scalenohedron"
ri = 1.55
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3̄m (D3d, order 12)
// Unit cell: a=1, b=1, c=1.35, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.35
// 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 3̄m (D3d, 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 => -u]
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.72)
assert(stone().facetCount == 12)
assert(stone().vertexCount == 8)
BDPT
Alpha-Quartz (Terminated Prism)
RI 1.54Textbook single-terminated Rock Crystal Quartz (class 32): slender {10-10} prism crowned by three larger r {10-11} and three smaller z {01-11} faces.
View exact crystallographic FSL ▼
name = "Alpha-Quartz (Terminated Prism)"
ri = 1.544
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 32 (D3, order 6)
// Mineral: Alpha-Quartz (SiO2)
// Unit cell: a=1, b=1, c=1.1, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.1
// 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 32 (D3, 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-10}", 1, 0, 0, 0.36)
cutForm("{10-11}", 1, 0, 1, 0.74)
cutForm("{01-11}", 0, 1, 1, 0.82)
// Flat frosted matrix attachment base
cutPlane("BASE", Normal(0, 0, -1), 0.48, { frosted: true })
assert(stone().facetCount == 13)
assert(stone().vertexCount == 22)
BDPT
Right-Handed Alpha-Quartz ({11-21} + {51-61})
RI 1.54Chiral class 32 indicator: tiny asymmetric s {11-21} and x {51-61} trapezohedral faces sit strictly on the right shoulder of major r faces.
View exact crystallographic FSL ▼
name = "Right-Handed Alpha-Quartz ({11-21} + {51-61})"
ri = 1.544
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 32 (D3, order 6)
// Mineral: Alpha-Quartz (Right-Handed) (SiO2)
// Unit cell: a=1, b=1, c=1.1, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 1.1
// 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 32 (D3, 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-10}", 1, 0, 0, 0.46)
cutForm("{10-11}", 1, 0, 1, 0.76)
cutForm("{01-11}", 0, 1, 1, 0.83)
cutForm("{11-21}", 1, 1, 1, 0.73)
cutForm("{51-61}", 5, 1, 1, 0.53)
// Flat frosted matrix attachment base
cutPlane("BASE", Normal(0, 0, -1), 0.54, { frosted: true })
assert(stone().facetCount == 22)
assert(stone().vertexCount == 40)
BDPT
Corundum / Ruby (Hexagonal Barrel)
RI 1.77Classic Corundum barrel (R-3c, c/a = 2.733): steep {22-43} hexagonal dipyramid tapering toward flat {0001} pinacoids with {10-12} rhombohedron bevels.
View exact crystallographic FSL ▼
name = "Corundum / Ruby (Hexagonal Barrel)"
ri = 1.768
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3̄m (D3d, order 12)
// Mineral: Corundum (Ruby) (Al2O3)
// Unit cell: a=1, b=1, c=2.733, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 2.733
// 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 3̄m (D3d, 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 => -u]
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("{22-43}", 2, 2, 3, 0.48)
cutForm("{10-12}", 1, 0, 2, 0.7)
cutForm("{0001}", 0, 0, 1, 0.86)
assert(stone().facetCount == 20)
assert(stone().vertexCount == 30)
BDPT
Elbaite Tourmaline (Hemimorphic 3m)
RI 1.62Pyroelectric polar class 3m (R3m): rounded-triangle cross-section with a 3-faced {10-11} peak on top and a flat {000-1} pedion bottom.
View exact crystallographic FSL ▼
name = "Elbaite Tourmaline (Hemimorphic 3m)"
ri = 1.624
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3m (C3v, order 6)
// Mineral: Tourmaline (Elbaite) (Na(Li,Al)3Al6(BO3)3Si6O18(OH)4)
// Unit cell: a=1, b=1, c=0.448, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 0.448
// 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 3m (C3v, 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-10}", 1, 0, 0, 0.46)
cutForm("{11-20}", 1, 1, 0, 0.45)
cutForm("{10-11}", 1, 0, 1, 0.84)
cutForm("{000-1}", 0, 0, -1, 0.84)
cutForm("{02-2-1}", 0, 2, -1, 0.82)
assert(stone().facetCount == 16)
assert(stone().vertexCount == 25)
BDPT
Calcite (Iceland Spar Rhombohedron)
RI 1.66Cleavage rhombohedron {10-14} (R-3c, c/a = 3.419), rendered with live GPU uniaxial double refraction (birefringence 0.172).
View exact crystallographic FSL ▼
name = "Calcite (Iceland Spar Rhombohedron)"
ri = 1.658
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3̄m (D3d, order 12)
// Mineral: Calcite (CaCO3)
// Unit cell: a=1, b=1, c=3.419, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 3.419
// 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 3̄m (D3d, 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 => -u]
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("{10-14}", 1, 0, 4, 0.7)
assert(stone().facetCount == 6)
assert(stone().vertexCount == 8)
BDPT
Dioptase (Class -3 Rhombohedral)
RI 1.66Textbook mineral of class -3 (R-3): emerald-green {11-20} prism terminated solely by an offset three-faced {02-21} rhombohedron.
View exact crystallographic FSL ▼
name = "Dioptase (Class -3 Rhombohedral)"
ri = 1.655
gear = 96
cube = 3.2
// System: Trigonal (Rhombohedral) | Class: 3̄ (C3i, order 6)
// Mineral: Dioptase (CuSiO3·H2O)
// Unit cell: a=1, b=1, c=0.534, alpha=90 deg, beta=90 deg, gamma=120 deg
a = 1; c = 0.534
// 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 3̄ (C3i, order 6) symmetry orbit
gens = [u => u.rotate(Normal(0, 0, 1), 2 * Math.PI / 3), u => -u]
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("{11-20}", 1, 1, 0, 0.54)
cutForm("{02-21}", 0, 2, 1, 0.78)
assert(stone().facetCount == 12)
assert(stone().vertexCount == 14)