~bf-translators/blender/garlic

« back to all changes in this revision

Viewing changes to source/blender/editors/space_view3d/drawvolume.c

  • Committer: nazgul
  • Date: 2011-09-20 12:01:16 UTC
  • Revision ID: svn-v4:954f8c5b-7b00-dc11-b283-0030488c597c:branches/soc-2011-garlic:40393
Merging r40366 through r40392 from trunk into soc-2011-garlic

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
 
184
184
        float viewnormal[3];
185
185
        int i, j, n, good_index;
186
 
        float d, d0, dd, ds;
 
186
        float d /*, d0 */ /* UNUSED */, dd, ds;
187
187
        float *points = NULL;
188
188
        int numpoints = 0;
189
189
        float cor[3] = {1.,1.,1.};
390
390
        // (a,b,c), the plane normal, are given by viewdir
391
391
        // d is the parameter along the view direction. the first d is given by
392
392
        // inserting previously found vertex into the plane equation
393
 
        d0 = (viewnormal[0]*cv[i][0] + viewnormal[1]*cv[i][1] + viewnormal[2]*cv[i][2]);
 
393
 
 
394
        /* d0 = (viewnormal[0]*cv[i][0] + viewnormal[1]*cv[i][1] + viewnormal[2]*cv[i][2]); */ /* UNUSED */
394
395
        ds = (ABS(viewnormal[0])*size[0] + ABS(viewnormal[1])*size[1] + ABS(viewnormal[2])*size[2]);
395
396
        dd = 0.05; // ds/512.0f;
396
397
        n = 0;