00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _VOXEL_JUNCTION_H
00011 #define _VOXEL_JUNCTION_H
00012
00018 class VoxelJunction
00019 {
00020 public:
00021 VoxelJunction( unsigned int f, unsigned int s, double d = 1.0 )
00022 : first( f ), second( s ),
00023 firstVol( 0 ), secondVol( 0 ),
00024 diffScale( d )
00025 {;}
00026 VoxelJunction()
00027 : first( ~0 ), second( ~0 ), firstVol( 0 ), secondVol( 0 ),
00028 diffScale( 1.0 )
00029 {;}
00030
00031
00032 bool operator<( const VoxelJunction& other ) const
00033 {
00034 if ( first < other.first ) return 1;
00035 if ( first > other.first ) return 0;
00036 if ( second < other.second ) return 1;
00037 return 0;
00038 }
00039
00040 unsigned int first;
00041 unsigned int second;
00042 double firstVol;
00043 double secondVol;
00044 double diffScale;
00045 };
00046
00047 #endif // _VOXEL_JUNCTION_H