-
Notifications
You must be signed in to change notification settings - Fork 0
mesh reader library
A single header file located in src/ folder, that makes it easier to read data form files made by mesh compiler.
Find file here mesh-compiler/src/meshReader.h
To use just copy the file to your project.
Library allows to define allocation_limit for single mesh_reader::readBuffer(...) up to 2.3.0 call.
Change definition in line 4 (is set to 10 MB by default), (definition is in bytes):
#pragma once
#include <fstream>
#include <vector>
#define allocation_limit 10485760 // 10 MB
//...Delete or comment this line to get rid of the limit entirely.
Since version 2.4.0 instead of mesh_reader::readBuffer() there are 3 functions:
mesh_reader::read_big_endian_buffer(...)mesh_reader::read_little_endian_buffer(...)mesh_reader::read_native_endian_buffer(...)
They work the same way as mesh_reader::readBuffer(...), but are aware of the endianness of sourced file.
JSON format structure since v2.2.0
-
bone_idsince v2.1.0 -
bone_weightsince v2.1.0 -
off_matr,off_matrix,offset_matr,offset_matrixsince v2.0.0 -
bone_parentsince v2.3.0 -
bone_childsince v2.3.0 -
m_off_matr,m_off_matrix,m_offset_matr,m_offset_matrixsince v2.2.0 -
m_bone_parentsince v2.3.0 -
m_bone_childsince v2.3.0 -
position_keysince v2.0.0 -
rotation_keysince v2.0.0 -
scale_keysince v2.0.0 -
position_time,position_timestamp,position_key_time,position_key_timestampsince v2.0.0 -
rotation_time,rotation_timestamp,rotation_key_time,rotation_key_timestampsince v2.0.0 -
scale_time,scale_timestamp,scale_key_time,scale_key_timestampsince v2.0.0 -
durationsince v2.0.0 -
ticks_per_secondsince v2.0.0
key-words: