Builder/Builder/include/Grid.h
/// compute values to faster compute the cell index
compute values to faster compute the cell index
compute values to faster compute the cell index
void recalcHash()
	{
		planeSize = resolution[0]*resolution[1];
		size = resolution[2]*planeSize;
		if(size == 0) size = 1;
		int c;
		for (c=0; c<3; ++c) scale[c] = resolution[c]/(p_max[c]-p_min[c]);
		for (c=0; c<3; ++c) width[c] = (p_max[c]-p_min[c])/resolution[c];
	}
void recalcHash ( ) { planeSize = resolution [ 0 ] * resolution [ 1 ] ; size = resolution [ 2 ] * planeSize ; if ( size == 0 ) size = 1 ; int c ; for ( c = 0 ; c < 3 ; ++ c ) scale [ c ] = resolution [ c ] / ( p_max [ c ] - p_min [ c ] ) ; for ( c = 0 ; c < 3 ; ++ c ) width [ c ] = ( p_max [ c ] - p_min [ c ] ) / resolution [ c ] ; }
compute values to faster compute the cell index
compute values to faster compute the cell index
// taejoon