cgma
|
00001 #include "CompositeCoSurf.hpp" 00002 #include "CompositeShell.hpp" 00003 #include "CompositeSurface.hpp" 00004 #include "CubitMessage.hpp" 00005 00006 CompositeCoSurf::~CompositeCoSurf() 00007 { 00008 if( myShell ) 00009 { 00010 myShell->remove( this ); 00011 myShell = 0; 00012 } 00013 if( mySurface ) 00014 { 00015 mySurface->remove( this ); 00016 mySurface = 0; 00017 } 00018 00019 mySense = CUBIT_UNKNOWN; 00020 assert( !shellNext && !surfaceNext ); 00021 } 00022 00023 //------------------------------------------------------------------------- 00024 // Purpose : Print debug output 00025 // 00026 // Special Notes : 00027 // 00028 // Creator : Jason Kraftcheck 00029 // 00030 // Creation Date : 09/16/04 00031 //------------------------------------------------------------------------- 00032 void CompositeCoSurf::print_debug_info( const char* prefix, bool brief ) 00033 { 00034 if( prefix == 0 ) prefix = ""; 00035 00036 const char* sense = mySense == CUBIT_FORWARD ? "Forward" : 00037 mySense == CUBIT_REVERSED ? "Reverse" : "UNKNOWN"; 00038 00039 PRINT_INFO("%sCompCoSurf %p %s ", prefix, (void*)this, sense ); 00040 00041 if( !mySurface ) 00042 PRINT_INFO("NULL SURFACE\n"); 00043 else if( brief ) 00044 PRINT_INFO("surface %p\n", (void*)mySurface ); 00045 else 00046 { PRINT_INFO("\n "); mySurface->print_debug_info(prefix, true); } 00047 }