Newer
Older
cg / hw04 / src / Tri.h
// Copyright (c) 2021. Pascal Syma <pascal@syma.dev> and Antonio Martinez Casadesus <acasadesus@stud.hs-bremen.de>.
// All rights reserved.

//
// Created by Pascal on 17.05.2021.
//

#ifndef OPENGL_EXAMPLE_TRI_H
#define OPENGL_EXAMPLE_TRI_H

class Mesh;

class Tri {
public:
    int iv[3]{}; // vertex indices
    int it[3]{}; // adjacent triangle indices
    int ie[3]{}; // edge vertex indices
    Mesh *mesh;  // parent mesh

    explicit Tri(Mesh* mesh);
    explicit Tri(Mesh* mesh, int i[3]);
    Tri(Mesh* mesh, int i, int j, int k);
    void Print();

    Tri* copy(Mesh* mesh);
};


#endif //OPENGL_EXAMPLE_TRI_H