2014-03-28 23:33:35 +08:00
|
|
|
#ifndef GMIO_INTERNAL_STL_RW_COMMON_H
|
|
|
|
#define GMIO_INTERNAL_STL_RW_COMMON_H
|
|
|
|
|
|
|
|
#include "../../gmio_core/global.h"
|
|
|
|
#include "../../gmio_core/endian.h"
|
|
|
|
#include "../../gmio_core/transfer.h"
|
2014-03-31 21:52:04 +08:00
|
|
|
#include "../stl_mesh.h"
|
2014-03-28 23:33:35 +08:00
|
|
|
#include "../stl_triangle.h"
|
|
|
|
|
2014-03-31 21:39:21 +08:00
|
|
|
struct gmio_stlb_readwrite_helper
|
2014-03-28 23:33:35 +08:00
|
|
|
{
|
|
|
|
uint32_t facet_count;
|
|
|
|
uint32_t i_facet_offset;
|
2014-03-31 21:39:21 +08:00
|
|
|
void (*fix_endian_func)(gmio_stl_triangle_t* tri);
|
|
|
|
};
|
|
|
|
typedef struct gmio_stlb_readwrite_helper gmio_stlb_readwrite_helper_t;
|
2014-03-28 23:33:35 +08:00
|
|
|
|
|
|
|
gmio_bool_t gmio_check_transfer(int* error, const gmio_transfer_t* trsf);
|
|
|
|
|
2014-03-31 21:52:04 +08:00
|
|
|
gmio_bool_t gmio_stl_check_mesh(int* error, const gmio_stl_mesh_t *mesh);
|
2014-03-28 23:33:35 +08:00
|
|
|
|
|
|
|
gmio_bool_t gmio_stlb_check_params(int* error,
|
|
|
|
const gmio_transfer_t* trsf,
|
|
|
|
gmio_endianness_t byte_order);
|
|
|
|
|
|
|
|
#endif /* GMIO_INTERNAL_STLB_RW_COMMON_H */
|