This is a WIP parser for the mesh format specified by Eskil Steenberg.
Link to HxA GitHub
To load a hxa file use the from()
function and pass a filepath.
rust
use hxa;
let my_hxa = hxa::HXAFile::from("Cube.hxa");
You can parse this as is, or use the find functions to quickly obtain data: ```rust use hxa::conventions::{hard,soft};
let modelgeometry = myhxa.getfirstgeometry() .expect("Expected to find a geometry node").0;
let vertexstack = &modelgeometry.vertex_stack;
let vertexpositions = vertexstack .find(hard::BASEVERTEXLAYERNAME) .expect("Expected to find a vertex layer") .asvec_f32();
let vertexnormals = vertexstack .find(soft::LAYERNORMALS) .expect("Expected to find a normal layer") .asvec_f32(); ```