Changeset 846
- Timestamp:
- Jan 8, 2008, 7:02:21 AM (17 years ago)
- Location:
- trunk/vizservers/nanovis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/PCASplit.cpp
r827 r846 16 16 17 17 PCASplit::PCASplit() 18 : _maxLevel(4), _minDistance(0.5f), _distanceScale(0.2f), _ finalMaxLevel(0), _indexCount(0)18 : _maxLevel(4), _minDistance(0.5f), _distanceScale(0.2f), _indexCount(0), _finalMaxLevel(0) 19 19 { 20 20 _indices = new unsigned int[MAX_INDEX]; … … 225 225 226 226 SymmetricMatrix A(3); 227 for (int i = 1 , index = 0; i <= 3; ++i)227 for (int i = 1; i <= 3; ++i) 228 228 for (int j = 1; j <= i; ++j) 229 229 { … … 236 236 Vector3 emax(U(1, 3), U(2, 3), U(3, 3)); 237 237 238 int index1Count = 0, index2Count = 0;239 240 238 int left = 0, right = count - 1; 241 239 … … 280 278 _indexCount = 0; 281 279 282 int i = 0;283 280 while (clNode) 284 281 { … … 297 294 // the process values of split are in _curClusterNode and _curClusterCount 298 295 ClusterListNode* curClusterNode = _curClusterNode; 299 int curClusterNodeCount = _curClusterCount;296 unsigned int curClusterNodeCount = _curClusterCount; 300 297 301 298 if (curClusterNodeCount) … … 318 315 parent[0].setPoints(points, _indices[0]); 319 316 320 for ( int i = 0, in = 0; i < curClusterNodeCount; ++i)317 for (unsigned int i = 0, in = 0; i < curClusterNodeCount; ++i) 321 318 { 322 319 if (i >= _indices[in]) … … 381 378 382 379 // set points of sub-clusters 383 for ( int i = 0; i < curClusterNodeCount; ++i)380 for (unsigned int i = 0; i < curClusterNodeCount; ++i) 384 381 { 385 382 points[i].position = node->data->centroid_t; -
trunk/vizservers/nanovis/PCASplit.h
r835 r846 36 36 37 37 public : 38 39 Cluster() : color(1.0f, 1.0f, 1.0f, 1.0f), scale(0.0f), numOfChildren(0), numOfPoints(0), 40 points(0), children(0), vbo(0)/*, minValue(0.0f), maxValue(0.0f)*/ 41 , level(0) 42 { 43 } 44 38 45 void setChildren(Cluster* children, int count) 39 46 { … … 47 54 } 48 55 49 Cluster() : color(1.0f, 1.0f, 1.0f, 1.0f), numOfChildren(0), numOfPoints(0),50 points(0), children(0), scale(0.0f), vbo(0)/*, minValue(0.0f), maxValue(0.0f)*/51 , level(0)52 {53 }54 56 }; 55 57
Note: See TracChangeset
for help on using the changeset viewer.