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

Diff of /ff3d/geometry/Intersection.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, Fri Feb 28 14:56:55 2003 UTC
# Line 27  Line 27 
27  std::ostream& Intersection::put(std::ostream& s) const  std::ostream& Intersection::put(std::ostream& s) const
28  {  {
29    s << "intersection {\n";    s << "intersection {\n";
30    for (size_t i = 0; i<__shape.size(); i++)    for (Intersection::const_iterator i = __objects.begin();
31      s << (*__shape[i]);         i != __objects.end(); ++i) {
32        s << (*(*i));
33      }
34    for (size_t i=0; i<nbTransform(); i++)    for (size_t i=0; i<nbTransform(); i++)
35      s << (*__trans[i]).povWrite() << '\n';      s << (*__trans[i]).povWrite() << '\n';
36    s << "}\n";    s << "}\n";
# Line 42  Intersection::Intersection() Line 44  Intersection::Intersection()
44    ;    ;
45  }  }
46    
 //! Constructs and Intersection using an Object \a O.  
 Intersection::Intersection(const Object& O)  
   : Shape(intersection)  
 {  
   __shape.push_back(O.shape());  
 }  
   
47  //! Copy constructor.  //! Copy constructor.
48  Intersection::Intersection(const Intersection& U)  Intersection::Intersection(const Intersection& U)
49    : Shape(U),    : Shape(U),
50      __shape(U.__shape)      __objects(U.__objects)
51  {  {
52    ;    ;
53  }  }

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