Ticket #36919: patch-grid3dbase.C.diff

File patch-grid3dbase.C.diff, 527 bytes (added by lpsinger (Leo Singer), 12 years ago)
  • saotk/util/grid3dbase.C

    old new  
    2424
    2525int Grid3dBase::gLine(int n, float* x, float* y, float* z)
    2626{
    27   Vector3d vv[n];
    2827  float xx[n];
    2928  float yy[n];
    3029
    3130  for (int ii=0; ii<n; ii++) {
    32     vv[ii] = Vector3d(x[ii],y[ii],z[ii])*mx_;
    33     xx[ii] = vv[ii][0];
    34     yy[ii] = vv[ii][1];
     31    Vector3d vv = Vector3d(x[ii],y[ii],z[ii])*mx_;
     32    xx[ii] = vv[0];
     33    yy[ii] = vv[1];
    3534  }
    3635
    3736  switch (renderMode_) {