#include <stdio.h>
#include <stdlib.h>
#include "3d_mesh.h"
static void my_3d_mesh__get_triangle(
{
const struct my_3d_mesh* my_mesh = (const struct my_3d_mesh*)cookie;
const struct my_3d_triangle* my_tri = &my_mesh->triangle_array[tri_id];
int i;
for (i = 0; i < 3; ++i) {
tri_vertices[i].
x = (float)my_tri->vertex[i].coords[0];
tri_vertices[i].
y = (
float)my_tri->vertex[i].coords[1];
tri_vertices[i].
z = (float)my_tri->vertex[i].coords[2];
}
}
int main(int argc, char** argv)
{
int error = 0;
if (argc > 1) {
const char* filepath = argv[1];
struct my_3d_mesh my_mesh = {0};
fprintf(stderr, "gmio error: 0x%X\n", error);
free(my_mesh.triangle_array);
}
return 0;
}