Blob Blame Raw

#ifndef SHAPE_H
#define SHAPE_H


#include "geometry.h"
#include "model.h"


class Shape {
public:
    virtual ~Shape() { }
    virtual Real distance_to_triangle(const Triangle &triangle) const = 0;
};

class CilinderShape: public Shape {
public:
    Matrix4 matrix;
    CilinderShape(Real radius, const Vector3 &pos, const Vector3 &dir);
    Real distance_to_triangle(const Triangle &triangle) const override;
};


#endif