root/cgm/trunk/geom/virtual/CompositeCoSurf.cpp

Revision 1040, 1.1 KB (checked in by tautges, 2 years ago)

Version 10.2 of cgm.

Line 
1#include "CompositeCoSurf.hpp"
2#include "CompositeShell.hpp"
3#include "CompositeSurface.hpp"
4
5CompositeCoSurf::~CompositeCoSurf()
6{
7  if( myShell )
8  {
9    myShell->remove( this );
10    myShell = 0;
11  }
12  if( mySurface )
13  {
14    mySurface->remove( this );
15    mySurface = 0;
16  }
17 
18  mySense = CUBIT_UNKNOWN;
19  assert( !shellNext && !surfaceNext );
20}
21
22//-------------------------------------------------------------------------
23// Purpose       : Print debug output
24//
25// Special Notes :
26//
27// Creator       : Jason Kraftcheck
28//
29// Creation Date : 09/16/04
30//-------------------------------------------------------------------------
31void CompositeCoSurf::print_debug_info( const char* prefix, bool brief )
32{
33  if( prefix == 0 ) prefix = "";
34 
35  const char* sense = mySense == CUBIT_FORWARD ? "Forward" :
36                      mySense == CUBIT_REVERSED ? "Reverse" : "UNKNOWN";
37                     
38  PRINT_INFO("%sCompCoSurf %p %s ", prefix, this, sense );
39   
40  if( !mySurface )
41    PRINT_INFO("NULL SURFACE\n");
42  else if( brief )
43    PRINT_INFO("surface %p\n", mySurface );
44  else
45    { PRINT_INFO("\n  ");  mySurface->print_debug_info(prefix, true); }
46}
Note: See TracBrowser for help on using the browser.