Changeset 2814 for trunk/packages/vizservers/nanovis/PointSet.cpp
- Timestamp:
- Mar 6, 2012, 12:58:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/PointSet.cpp
r2798 r2814 52 52 int index; 53 53 float d = _max - _min; 54 for ( /*empty*/; c <= end; c = (PCA::Cluster*)((char *)c+sizeof(PCA::Cluster))){54 for (; c <= end; c = (PCA::Cluster*)((char *)c+sizeof(PCA::Cluster))){ 55 55 points = c->points; 56 56 numOfPoints = c->numOfPoints; 57 57 58 58 for (int i = 0; i < numOfPoints; ++i) { 59 index = ( points[i].value - _min) / d * (colorCount - 1);59 index = (int)((points[i].value - _min) / d * (colorCount - 1)); 60 60 if (index >= colorCount) { 61 61 index = colorCount - 1;
Note: See TracChangeset
for help on using the changeset viewer.