star-3d

Surface structuring for efficient 3D geometric queries
git clone git://git.meso-star.fr/star-3d.git
Log | Files | Refs | README | LICENSE

commit 73fe11d36a4f338c1bb0774bbd9e10fa3dc17eb4
parent 83ec660c02f1f7f925c2e17abfac7e15c7cf634b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 18 Jan 2018 16:02:31 +0100

Fix a warning in release

Diffstat:
Msrc/s3d_primitive.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/s3d_primitive.c b/src/s3d_primitive.c @@ -143,7 +143,6 @@ sphere_get_attrib (const struct geometry* geom, const float* transform, /* Can be NULL => no transform */ const char flip_surface, - const struct s3d_primitive* prim, const enum s3d_attrib_usage usage, const float uv[2], struct s3d_attrib* attrib) @@ -152,7 +151,7 @@ sphere_get_attrib double phi, cos_theta, sin_theta; float P[3]; float N[3]; - ASSERT(geom && geom->type == GEOM_SPHERE && prim && prim->shape__ == geom); + ASSERT(geom && geom->type == GEOM_SPHERE); ASSERT(uv && attrib); /* Only position and geometry normal are valid sphere attribs */ @@ -219,7 +218,6 @@ s3d_primitive_get_attrib struct geometry* geom_shape = NULL; const float* transform = NULL; char flip_surface = 0; - float w; res_T res = RES_OK; if(!check_primitive(prim) || usage == S3D_ATTRIBS_COUNT__ || !uv || !attrib) { @@ -243,7 +241,7 @@ s3d_primitive_get_attrib if(geom_shape->type == GEOM_SPHERE) { res = sphere_get_attrib - (geom_shape, transform, flip_surface, prim, usage, uv, attrib); + (geom_shape, transform, flip_surface, usage, uv, attrib); } else { ASSERT(geom_shape->type == GEOM_MESH); res = mesh_get_primitive_attrib