-
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_id
since v2.1.0 -
bone_weight
since v2.1.0 -
off_matr
,off_matrix
,offset_matr
,offset_matrix
since v2.0.0 -
bone_parent
since v2.3.0 -
bone_child
since v2.3.0 -
m_off_matr
,m_off_matrix
,m_offset_matr
,m_offset_matrix
since v2.2.0 -
m_bone_parent
since v2.3.0 -
m_bone_child
since v2.3.0 -
position_key
since v2.0.0 -
rotation_key
since v2.0.0 -
scale_key
since v2.0.0 -
position_time
,position_timestamp
,position_key_time
,position_key_timestamp
since v2.0.0 -
rotation_time
,rotation_timestamp
,rotation_key_time
,rotation_key_timestamp
since v2.0.0 -
scale_time
,scale_timestamp
,scale_key_time
,scale_key_timestamp
since v2.0.0 -
duration
since v2.0.0 -
ticks_per_second
since v2.0.0
key-words
: