14#define C_INTERFACE extern "C" __declspec(dllexport) int
137 const char* obj_path,
183 const float* vertices,
C_INTERFACE LoadOBJ(const char *obj_path, HF::Geometry::GROUP_METHOD gm, float xrot, float yrot, float zrot, HF::Geometry::MeshInfo< float > ***out_data_array, int *num_meshes)
Load an obj from the given path then rotate it by x,y, and z.
C_INTERFACE DestroyMeshInfo(HF::Geometry::MeshInfo< float > *mesh_to_destroy)
Free the memory addressed by mesh_to_destroy, which was allocated by either LoadOBJ or StoreMesh.
C_INTERFACE GetMeshName(const HF::Geometry::MeshInfo< float > *MI, char **out_name)
Get the name of a mesh.
C_INTERFACE StoreMesh(HF::Geometry::MeshInfo< float > **out_info, const int *indices, int num_indices, const float *vertices, int num_vertices, const char *name, int id)
Store a mesh in a format usable with DHARTAPI.
C_INTERFACE GetVertsAndTris(const HF::Geometry::MeshInfo< float > *MI, int **index_out, int *num_triangles, float **vertex_out, int *num_vertices)
Get a pointer to and the size of a mesh's triangle and vertex arrays.
C_INTERFACE RotateMesh(HF::Geometry::MeshInfo< float > *mesh_to_rotate, float xrot, float yrot, float zrot)
Rotate an existing mesh (HF::Geometry::MeshInfo)
C_INTERFACE DestroyMeshInfoPtrArray(HF::Geometry::MeshInfo< float > **data_array)
C_INTERFACE GetMeshID(const HF::Geometry::MeshInfo< float > *MI, int *out_id)
Get the ID of a mesh.
Perform human scale analysis on 3D environments.
GROUP_METHOD
Method of grouping submeshes in OBJ files.
A collection of vertices and indices representing geometry.