text: #ifndef BOUNDARYOBJECT_H
  #define BOUNDARYOBJECT_H
  
  #include <vector>
  #include <string>
  
  #include <QString>
  #include <QFile>
  #include <QRegularExpression>
  
  
  #include <iostream>
  #include <stdlib.h>
  #include <cstring>
  #include "Triangle.h"
  #include "Object.h"
  #include "Cara.h"
  #include "ReadFile.h"
  
  using namespace std;
  
  class BoundaryObject : public Object
  {
  public:
      BoundaryObject(string s, float data);
      BoundaryObject(const QString &fileName, float data);
      virtual bool intersection(const Ray& r, float t_min, float t_max, IntersectionInfo& info) const;
      virtual ~BoundaryObject();
  
  private:
  
      string nom;
      vector<Cara> cares; // cares de l'objecte
      vector<vec4> vertexs; // vertexs de l'objecte sense repetits
      vector<Triangle*> triangles;
      void aplicaTG(TG *tg);
      void readObj(string filename);
      void construeix_cara (char **words, int nwords, BoundaryObject *objActual, int vindexUlt);
  
  };
  
  #endif // BOUNDARYOBJECT_H
  