Skip to main content

MeshGL64

Type Alias MeshGL64 

Source
pub type MeshGL64 = MeshGLP<f64, u64>;
Expand description

Double-precision, 64-bit index mesh (for huge meshes).

Aliased Type§

pub struct MeshGL64 {
    pub num_prop: u64,
    pub vert_properties: Vec<f64>,
    pub tri_verts: Vec<u64>,
    pub merge_from_vert: Vec<u64>,
    pub merge_to_vert: Vec<u64>,
    pub run_index: Vec<u64>,
    pub run_original_id: Vec<u32>,
    pub run_transform: Vec<f64>,
    pub face_id: Vec<u64>,
    pub halfedge_tangent: Vec<f64>,
    pub run_flags: Vec<u8>,
    pub tolerance: f64,
}

Fields§

§num_prop: u64

Number of properties per vertex, always >= 3.

§vert_properties: Vec<f64>

Flat interleaved vertex properties: [x, y, z, …] × num_verts.

§tri_verts: Vec<u64>

Triangle vertex indices, 3 per triangle (CCW from outside).

§merge_from_vert: Vec<u64>

Optional: merge-from vertex indices.

§merge_to_vert: Vec<u64>

Optional: merge-to vertex indices.

§run_index: Vec<u64>

Optional: run start indices into triVerts.

§run_original_id: Vec<u32>

Optional: original mesh ID per run.

§run_transform: Vec<f64>

Optional: 3×4 column-major transform per run (12 elements each).

§face_id: Vec<u64>

Optional: source face ID per triangle.

§halfedge_tangent: Vec<f64>

Optional: halfedge tangent vectors (4 per halfedge).

§run_flags: Vec<u8>

Optional: per-run flags; 1 = backside (normals need flipping).

§tolerance: f64

Tolerance for mesh simplification.