/[ff3d]/ff3d/geometry/Difference.cpp
ViewVC logotype

Diff of /ff3d/geometry/Difference.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:50 2003 UTC revision 1.2 by delpinux, Tue Sep 2 16:03:21 2003 UTC
# Line 24  Line 24 
24    
25  #include <Difference.hpp>  #include <Difference.hpp>
26    
27  //! Prints the Difference informations using the stream \a s.  //! Prints the Difference informations using the stream \a os.
28  std::ostream& Difference::put(std::ostream& s) const  std::ostream& Difference::put(std::ostream& os) const
29  {  {
30    s << "difference {\n";    os << "difference {\n";
31    for (size_t i = 0; i<__shape.size(); i++)    for (Difference::const_iterator i = __objects.begin();
32      s << *__shape[i];         i != __objects.end(); i++) {
33    for (size_t i=0; i<nbTransform(); i++)      os << *(*i);
34      s << (*__trans[i]).povWrite() << '\n';    }
35    s << "}\n";  
36    return s;    for (size_t i=0; i<nbTransform(); i++) {
37  }      os << (*__trans[i]).povWrite() << '\n';
38      }
39      os << "}\n";
40    
41  //! Default constructor.    return os;
 Difference::Difference()  
   : Shape(difference)  
 {  
   ;  
42  }  }
43    
 //! Constructs and Difference using an Object \a O.  
 Difference::Difference(const Object& O)  
   : Shape(difference)  
 {  
   __shape.push_back(O.shape());  
 }  
   
 //! Copy constructor.  
 Difference::Difference(const Difference& U)  
   : Shape(U),  
     __shape(U.__shape)  
 {  
   ;  
 }  
44    

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26