vpin 0.23.5

Rust library for working with Visual Pinball VPX files
Documentation
#![allow(clippy::excessive_precision, clippy::approx_constant)]
//! Trigger simple mesh data (used for WireA, WireB, WireC shapes)
//!
//! Auto-generated from VPinball source: meshes/triggerSimpleMesh.h

use crate::vpx::model::Vertex3dNoTex2;

pub const TRIGGER_SIMPLE_NUM_VERTICES: usize = 49;
pub const TRIGGER_SIMPLE_NUM_INDICES: usize = 216;

/// Pre-defined trigger simple mesh vertices
/// From VPinball src/meshes/triggerSimpleMesh.h
#[rustfmt::skip]
pub static TRIGGER_SIMPLE_MESH: [Vertex3dNoTex2; TRIGGER_SIMPLE_NUM_VERTICES] = [
    Vertex3dNoTex2 { x: 1.283477, y: -22.522591, z: 33.562248, nx: 0.999100, ny: -0.036100, nz: 0.019600, tu: 0.166667, tv: 0.625000 },
    Vertex3dNoTex2 { x: 1.283433, y: -45.411259, z: -29.149363, nx: 0.992900, ny: -0.111800, nz: 0.040700, tu: 0.166667, tv: 1.000000 },
    Vertex3dNoTex2 { x: 0.641675, y: -44.323971, z: -29.149363, nx: 0.846900, ny: 0.499500, nz: -0.182300, tu: 0.000000, tv: 1.000000 },
    Vertex3dNoTex2 { x: 0.641719, y: -21.539425, z: 33.071007, nx: 0.859200, ny: 0.464300, nz: -0.214900, tu: 0.000000, tv: 0.625000 },
    Vertex3dNoTex2 { x: 0.641719, y: -21.539425, z: 33.071007, nx: 0.000000, ny: 0.915800, nz: -0.401600, tu: 1.000000, tv: 0.625000 },
    Vertex3dNoTex2 { x: 0.641675, y: -44.323971, z: -29.149363, nx: 0.000000, ny: 0.939000, nz: -0.343900, tu: 1.000000, tv: 1.000000 },
    Vertex3dNoTex2 { x: -0.641845, y: -44.323971, z: -29.149363, nx: -0.525300, ny: 0.799000, nz: -0.292600, tu: 0.833333, tv: 1.000000 },
    Vertex3dNoTex2 { x: -0.641801, y: -21.539421, z: 33.071007, nx: -0.506200, ny: 0.790100, nz: -0.345700, tu: 0.833333, tv: 0.625000 },
    Vertex3dNoTex2 { x: -1.283607, y: -45.411251, z: -29.149363, nx: -0.992900, ny: -0.112000, nz: 0.040600, tu: 0.666667, tv: 1.000000 },
    Vertex3dNoTex2 { x: -1.283563, y: -22.522587, z: 33.562248, nx: -0.999400, ny: -0.029700, nz: 0.018800, tu: 0.666667, tv: 0.625000 },
    Vertex3dNoTex2 { x: -0.641849, y: -46.498501, z: -29.149363, nx: -0.432100, ny: -0.847200, nz: 0.309000, tu: 0.500000, tv: 1.000000 },
    Vertex3dNoTex2 { x: -0.641805, y: -23.453789, z: 34.053566, nx: -0.474400, ny: -0.792400, nz: 0.383500, tu: 0.500000, tv: 0.625000 },
    Vertex3dNoTex2 { x: 0.641671, y: -46.498501, z: -29.149363, nx: 0.432000, ny: -0.847300, nz: 0.308900, tu: 0.333333, tv: 1.000000 },
    Vertex3dNoTex2 { x: 0.641715, y: -23.453793, z: 34.053566, nx: 0.476200, ny: -0.790200, nz: 0.385700, tu: 0.333333, tv: 0.625000 },
    Vertex3dNoTex2 { x: 1.283480, y: -20.826500, z: 36.450806, nx: 0.992000, ny: -0.092900, nz: 0.085400, tu: 0.166667, tv: 0.609375 },
    Vertex3dNoTex2 { x: 0.641721, y: -20.304619, z: 35.469326, nx: 0.856800, ny: 0.356400, nz: -0.372700, tu: 0.000000, tv: 0.609375 },
    Vertex3dNoTex2 { x: 0.641721, y: -20.304619, z: 35.469326, nx: 0.000000, ny: 0.646300, nz: -0.763100, tu: 1.000000, tv: 0.609375 },
    Vertex3dNoTex2 { x: -0.641799, y: -20.304615, z: 35.469326, nx: -0.559600, ny: 0.543100, nz: -0.626000, tu: 0.833333, tv: 0.609375 },
    Vertex3dNoTex2 { x: -1.283560, y: -20.826496, z: 36.450806, nx: -0.992900, ny: -0.086600, nz: 0.080900, tu: 0.666667, tv: 0.609375 },
    Vertex3dNoTex2 { x: -0.641801, y: -21.348299, z: 37.432205, nx: -0.454500, ny: -0.536000, nz: 0.711400, tu: 0.500000, tv: 0.609375 },
    Vertex3dNoTex2 { x: 0.641719, y: -21.348303, z: 37.432205, nx: 0.456500, ny: -0.536500, nz: 0.709700, tu: 0.333333, tv: 0.609375 },
    Vertex3dNoTex2 { x: 1.283486, y: -17.512125, z: 37.473286, nx: 0.993900, ny: 0.011200, nz: 0.109300, tu: 0.166667, tv: 0.593750 },
    Vertex3dNoTex2 { x: 0.641726, y: -17.512125, z: 36.364166, nx: 0.865200, ny: -0.025300, nz: -0.500700, tu: 0.000000, tv: 0.593750 },
    Vertex3dNoTex2 { x: 0.641726, y: -17.512125, z: 36.364166, nx: -0.000000, ny: -0.039700, nz: -0.999200, tu: 1.000000, tv: 0.593750 },
    Vertex3dNoTex2 { x: -0.641794, y: -17.512121, z: 36.364166, nx: -0.554100, ny: -0.038100, nz: -0.831600, tu: 0.833333, tv: 0.593750 },
    Vertex3dNoTex2 { x: -1.283554, y: -17.512121, z: 37.473286, nx: -0.994100, ny: 0.011900, nz: 0.107900, tu: 0.666667, tv: 0.593750 },
    Vertex3dNoTex2 { x: -0.641794, y: -17.512121, z: 38.582485, nx: -0.458300, ny: 0.041900, nz: 0.887800, tu: 0.500000, tv: 0.593750 },
    Vertex3dNoTex2 { x: 0.641726, y: -17.512125, z: 38.582485, nx: 0.458800, ny: 0.041200, nz: 0.887500, tu: 0.333333, tv: 0.593750 },
    Vertex3dNoTex2 { x: 1.283604, y: 43.833565, z: 12.250843, nx: 0.996600, ny: 0.049200, nz: 0.065100, tu: 0.166667, tv: 0.203125 },
    Vertex3dNoTex2 { x: 0.641843, y: 43.189926, z: 11.446362, nx: 0.851400, ny: -0.332400, nz: -0.405700, tu: 0.000000, tv: 0.203125 },
    Vertex3dNoTex2 { x: 0.641843, y: 43.189926, z: 11.446362, nx: -0.000000, ny: -0.642100, nz: -0.766600, tu: 1.000000, tv: 0.203125 },
    Vertex3dNoTex2 { x: -0.641677, y: 43.189926, z: 11.446362, nx: -0.530000, ny: -0.545800, nz: -0.649000, tu: 0.833333, tv: 0.203125 },
    Vertex3dNoTex2 { x: -1.283436, y: 43.833572, z: 12.250843, nx: -0.996500, ny: 0.048200, nz: 0.068500, tu: 0.666667, tv: 0.203125 },
    Vertex3dNoTex2 { x: -0.641674, y: 44.569851, z: 13.067883, nx: -0.461700, ny: 0.561100, nz: 0.687000, tu: 0.500000, tv: 0.203125 },
    Vertex3dNoTex2 { x: 0.641846, y: 44.569851, z: 13.067883, nx: 0.461900, ny: 0.561200, nz: 0.686700, tu: 0.333333, tv: 0.203125 },
    Vertex3dNoTex2 { x: 1.283607, y: 45.430134, z: 9.907923, nx: 0.994200, ny: 0.104000, nz: 0.025400, tu: 0.166667, tv: 0.187500 },
    Vertex3dNoTex2 { x: 0.641845, y: 44.361649, z: 9.601603, nx: 0.865800, ny: -0.487900, nz: -0.111200, tu: 0.000000, tv: 0.187500 },
    Vertex3dNoTex2 { x: 0.641845, y: 44.361649, z: 9.601603, nx: 0.000000, ny: -0.972700, nz: -0.232100, tu: 1.000000, tv: 0.187500 },
    Vertex3dNoTex2 { x: -0.641675, y: 44.361649, z: 9.601603, nx: -0.548200, ny: -0.813100, nz: -0.195500, tu: 0.833333, tv: 0.187500 },
    Vertex3dNoTex2 { x: -1.283433, y: 45.430141, z: 9.907923, nx: -0.994000, ny: 0.106800, nz: 0.023200, tu: 0.666667, tv: 0.187500 },
    Vertex3dNoTex2 { x: -0.641671, y: 46.498501, z: 10.214362, nx: -0.458400, ny: 0.860900, nz: 0.220600, tu: 0.500000, tv: 0.187500 },
    Vertex3dNoTex2 { x: 0.641849, y: 46.498501, z: 10.214362, nx: 0.458500, ny: 0.860700, nz: 0.221000, tu: 0.333333, tv: 0.187500 },
    Vertex3dNoTex2 { x: 1.283600, y: 41.665836, z: -29.149363, nx: 0.999500, ny: -0.031300, nz: 0.003400, tu: 0.166667, tv: 0.000000 },
    Vertex3dNoTex2 { x: 0.641838, y: 40.578590, z: -29.149363, nx: 0.860100, ny: -0.507700, nz: 0.049600, tu: 0.000000, tv: 0.000000 },
    Vertex3dNoTex2 { x: 0.641838, y: 40.578590, z: -29.149363, nx: 0.000000, ny: -0.995300, nz: 0.097200, tu: 1.000000, tv: 0.000000 },
    Vertex3dNoTex2 { x: -0.641682, y: 40.578590, z: -29.149363, nx: -0.481100, ny: -0.872500, nz: 0.084800, tu: 0.833333, tv: 0.000000 },
    Vertex3dNoTex2 { x: -1.283440, y: 41.665844, z: -29.149363, nx: -0.999500, ny: -0.030900, nz: 0.003300, tu: 0.666667, tv: 0.000000 },
    Vertex3dNoTex2 { x: -0.641678, y: 42.753124, z: -29.149363, nx: -0.507500, ny: 0.857800, nz: -0.081600, tu: 0.500000, tv: 0.000000 },
    Vertex3dNoTex2 { x: 0.641842, y: 42.753124, z: -29.149363, nx: 0.507300, ny: 0.857900, nz: -0.082000, tu: 0.333333, tv: 0.000000 },
];

#[rustfmt::skip]
pub static TRIGGER_SIMPLE_INDICES: [u16; TRIGGER_SIMPLE_NUM_INDICES] = [
    4, 5, 6,
    6, 7, 4,
    7, 6, 8,
    16, 4, 7,
    8, 9, 7,
    9, 8, 10,
    7, 17, 16,
    17, 7, 9,
    23, 16, 17,
    10, 11, 9,
    11, 10, 12,
    9, 18, 17,
    18, 9, 11,
    17, 24, 23,
    24, 17, 18,
    30, 23, 24,
    12, 13, 11,
    13, 12, 1,
    24, 31, 30,
    37, 30, 31,
    18, 25, 24,
    31, 24, 25,
    11, 19, 18,
    25, 18, 19,
    19, 11, 13,
    31, 38, 37,
    44, 37, 38,
    38, 45, 44,
    25, 32, 31,
    38, 31, 32,
    45, 38, 39,
    32, 39, 38,
    39, 46, 45,
    32, 25, 26,
    19, 26, 25,
    39, 32, 33,
    26, 33, 32,
    46, 39, 40,
    33, 40, 39,
    40, 47, 46,
    26, 19, 20,
    13, 20, 19,
    47, 40, 41,
    41, 48, 47,
    40, 33, 34,
    34, 41, 40,
    33, 26, 27,
    27, 34, 33,
    20, 27, 26,
    48, 41, 35,
    35, 42, 48,
    36, 43, 42,
    42, 35, 36,
    29, 36, 35,
    28, 35, 41,
    35, 28, 29,
    41, 34, 28,
    22, 29, 28,
    21, 28, 34,
    28, 21, 22,
    34, 27, 21,
    15, 22, 21,
    14, 21, 27,
    21, 14, 15,
    27, 20, 14,
    3, 15, 14,
    0, 14, 20,
    14, 0, 3,
    20, 13, 0,
    0, 2, 3,
    1, 0, 13,
    0, 1, 2,
];