Code/CharacterKit/PhotoFitAnchors.cs

Static data container for face photo-fit anchor keys and corresponding ratio vectors. It defines Keys (8 string identifiers) and Ratios (7 arrays of 8 floats) used by the character editor for mapping facial measurements.

namespace CharacterEditor;
// Generated by the companion authoring tools/face-transfer/calibrate_photo_fit.py; approximate rest-space anchors.
public static class PhotoFitAnchors
{
 public static readonly string[] Keys={"faceHeight","jawWidth","eyeSeparation","leftEyeWidth","rightEyeWidth","noseWidth","noseLength","mouthWidth"};
 public static readonly float[][] Ratios={
  new float[]{1.44567f,0.8893f,0.18852f,0.27444f,0.25628f,0.26924f,0.26822f,0.50607f},
  new float[]{1.39547f,0.87962f,0.16641f,0.28168f,0.26739f,0.22625f,0.27752f,0.47095f},
  new float[]{1.43572f,0.89854f,0.17047f,0.25843f,0.25695f,0.28462f,0.27722f,0.45054f},
  new float[]{1.4587f,0.8663f,0.16107f,0.30609f,0.27849f,0.22656f,0.30262f,0.43632f},
  new float[]{1.44561f,0.89132f,0.16515f,0.25603f,0.25612f,0.19936f,0.30243f,0.43829f},
  new float[]{1.41067f,0.89818f,0.17149f,0.26097f,0.25952f,0.26348f,0.25932f,0.4242f},
  new float[]{1.41915f,0.89606f,0.16683f,0.25769f,0.25657f,0.22921f,0.28683f,0.42675f}
 };
}