Skip to content

About

Zero-dependency 3D craniofacial anthropometry equations: Gaussian PSL bell-curve CDF, canthal tilt, Palpebral Fissure Ratio (PFR), and 3D gonial angle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

facial-proportion-math

Zero-dependency JavaScript/ESModule reference functions for 3D craniofacial anthropometry on 478-point MediaPipe Face Landmarker meshes:

  • Gaussian Bell-Curve CDF (pslToTopPercentile): Abramowitz–Stegun erf(x) mapping standardized Z-scores to population percentiles without linear approximation drift.
  • Asymmetric Plateau Scoring (asymPlateauScore): Perceptual sweet-spot kernel modeling clinical orthodontic & oculoplastic normal intervals.
  • Periorbital Geometry (computeCanthalTiltDeg, classifyPalpebralFissure): Roll-normalized canthal inclination and Palpebral Fissure Ratio (PFR) classification.
  • 3D Ramus–Corpus Mandibular Angle (compute3DGonialAngle): Vector cosine gonial angle across tragion, gonion, and lateral menton clusters.

Live Browser Demo (100% On-Device WebAssembly)

You can test these equations interactively in your browser (zero server uploads) via FaceRatingScore:

Quick Usage

import {
  pslToTopPercentile,
  asymPlateauScore,
  classifyPalpebralFissure,
  compute3DGonialAngle
} from "./index.js";

console.log(pslToTopPercentile(6.5)); // -> 7.66 (Top 7.66%)
console.log(asymPlateauScore(0.462, 0.445, 0.475, 0.025, 0.028)); // -> 100
console.log(classifyPalpebralFissure(31.4, 9.8, 3.6)); // -> { pfr: 3.2, shape: 'Hunter / Feline' }

License

MIT

About

Zero-dependency 3D craniofacial anthropometry equations: Gaussian PSL bell-curve CDF, canthal tilt, Palpebral Fissure Ratio (PFR), and 3D gonial angle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages