diff options
Diffstat (limited to 'src/extend/mesh.c')
-rw-r--r-- | src/extend/mesh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extend/mesh.c b/src/extend/mesh.c index c8cdf2a..20153d9 100644 --- a/src/extend/mesh.c +++ b/src/extend/mesh.c @@ -52,7 +52,7 @@ void *darray_hold(void *darray, int count, int itemsize) { } } -Vec3 vec3_min(Vec3 a, Vec3 b) { +Vec3 internal_vec3_min(Vec3 a, Vec3 b) { float x = min(a.x, b.x); float y = min(a.y, b.y); float z = min(a.z, b.z); @@ -60,7 +60,7 @@ Vec3 vec3_min(Vec3 a, Vec3 b) { return r; } -Vec3 vec3_max(Vec3 a, Vec3 b) { +Vec3 internal_vec3_max(Vec3 a, Vec3 b) { float x = max(a.x, b.x); float y = max(a.y, b.y); float z = max(a.z, b.z); @@ -110,14 +110,14 @@ static Mesh *build_mesh( mesh->triangles[i] = position_index; - //bbox_min = vec3_min(bbox_min, vertices[i].position); - //bbox_max = vec3_max(bbox_max, vertices[i].position); + //bbox_min = internal_vec3_min(bbox_min, vertices[i].position); + //bbox_max = internal_vec3_max(bbox_max, vertices[i].position); } mesh->tris_count = num_faces; mesh->vert_count = nvert; mesh->vertices = vertices; - //mesh->center = vec3_div(vec3_add(bbox_min, bbox_max), 2); + //mesh->center = internal_vec3_div(internal_vec3_add(bbox_min, bbox_max), 2); return mesh; } |