#pragma once

#include <TNL/Meshes/Topologies/Edge.h>

namespace TNL {
namespace Meshes {
namespace Topologies {

struct Polygon
{
   static constexpr int dimension = 2;
};

template<>
struct Subtopology< Polygon, 0 >
{
   typedef Vertex Topology;
};

template<>
struct Subtopology< Polygon, 1 >
{
   typedef Edge Topology;
};

} // namespace Topologies
} // namespace Meshes
} // namespace TNL