Ignore:
Timestamp:
Apr 3, 2013, 5:02:16 AM (6 years ago)
Author:
ldelgass
Message:

Compile fixes for USE_POINTSET_RENDERER (not tested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/BucketSort.cpp

    r3502 r3617  
    55 */
    66
     7#include <vrmath/Vector3f.h>
     8#include <vrmath/Matrix4x4d.h>
     9
    710#include "BucketSort.h"
    811
    912using namespace PCA;
    10 
    11 #include <vrmath/Vector3f.h>
    12 #include <vrmath/Matrix4x4d.h>
     13using namespace vrmath;
    1314
    1415void
     
    2324{
    2425    if (clusterAccel == 0) {
    25         return;
     26        return;
    2627    }
    2728    Cluster* cluster = clusterAccel->startPointerCluster[level - 1];
     
    2930    Cluster* end = &(cluster[clusterAccel->numOfClusters[level - 1] - 1]);
    3031
    31     Vector3f pos;
    3232    for (; c <= end; c = (Cluster*) ((char *)c + sizeof(Cluster))) {
    33         pos = cameraMat.transform(c->centroid);
    34         addBucket(c, pos.length()*_invMaxLength);
     33        Vector4f pt = cameraMat.transform(Vector4f(c->centroid, 1));
     34        Vector3f pos(pt.x, pt.y, pt.z);
     35        addBucket(c, pos.length()*_invMaxLength);
    3536    }
    3637}       
Note: See TracChangeset for help on using the changeset viewer.