Changeset 237 for cpp/frams


Ignore:
Timestamp:
04/30/14 05:06:31 (11 years ago)
Author:
Maciej Komosinski
Message:

Do not use min/max as variable names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/geometry/geometryutils.cpp

    r234 r237  
    188188        orthographicProjectionToPlane(points, axes.y);
    189189       
    190         Pt3D min(points.get(0)), max(points.get(0));
     190        Pt3D minimal(points.get(0)), maximal(points.get(0));
    191191       
    192192        for (int i = 1; i < points.size(); i++)
    193193        {
    194                 min.getMin(points.get(i));
    195                 max.getMax(points.get(i));
    196         }
    197        
    198         sizes.z = min.distanceTo(max);
     194                minimal.getMin(points.get(i));
     195                maximal.getMax(points.get(i));
     196        }
     197       
     198        sizes.z = minimal.distanceTo(maximal);
    199199        axes.z.vectorProduct(axes.x, axes.y);
    200200}
Note: See TracChangeset for help on using the changeset viewer.