src/Geometry.cpp
int compareXYZ(const void *a, const void *b)
{
  float *s1 = (float*)a;
  float *s2 = (float*)b;

  if (s1[0] != s2[0]) return s1[0] < s2[0];
  if (s1[1] != s2[1]) return s1[1] < s2[1];
  return s1[2] < s2[2];
}
/////////////////////////////////////////////////////////////////////////////////
// Sorting utility functions
/////////////////////////////////////////////////////////////////////////////////
// Comparison for X,Y,Z vertex sort
Sorting utility functions
Comparison for X,Y,Z vertex sort
Sorting utility functions Comparison for X Y Z vertex sort
int compareXYZ(const void *a, const void *b)
{
  float *s1 = (float*)a;
  float *s2 = (float*)b;
  if (s1[0] != s2[0]) return s1[0] < s2[0];
  if (s1[1] != s2[1]) return s1[1] < s2[1];
  return s1[2] < s2[2];
}
int compareXYZ ( const void * a , const void * b ) { float * s1 = ( float * ) a ; float * s2 = ( float * ) b ; if ( s1 [ 0 ] != s2 [ 0 ] ) return s1 [ 0 ] < s2 [ 0 ] ; if ( s1 [ 1 ] != s2 [ 1 ] ) return s1 [ 1 ] < s2 [ 1 ] ; return s1 [ 2 ] < s2 [ 2 ] ; }
Sorting utility functions
Comparison for X,Y,Z vertex sort
Sorting utility functions Comparison for X Y Z vertex sort