ipoint -> vertex

This commit is contained in:
Milang 2019-10-26 15:49:58 +02:00
parent 8b8f8d511a
commit 84e656d30a
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ void fe_object_set_vertex(fe_object * object, fe_vertex * points, uint32_t n, bo
object->vertex_table = malloc(3*n*sizeof(fe_vertex)); // Centraliser les données de copie
if (!object->vertex_table)
return;
memcpy(object->points, points, n*sizeof(fe_ipoint));
memcpy(object->vertex_table, points, n*sizeof(fe_vertex));
object->vertex_t0 = object->vertex_table[n];
object->vertex_t1 = object->vertex_table[2*n];
}
@ -57,10 +57,10 @@ void fe_object_set_faces(fe_object * object, fe_triangle * faces, uint32_t n, bo
{
if (copy)
{
object->face_table = malloc(n*sizeof(fe_ipoint));
object->face_table = malloc(n*sizeof(fe_vertex));
if (!object->face_table)
return;
memcpy(object->face_table, faces, n*sizeof(fe_ipoint));
memcpy(object->face_table, faces, n*sizeof(fe_vertex));
}
else
{