You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
948 B
C++
52 lines
948 B
C++
#include "FITKElementPolygon.h"
|
|
|
|
namespace Interface
|
|
{
|
|
FITKModelEnum::FITKEleType FITKElementPolygon::getEleType()
|
|
{
|
|
return FITKModelEnum::FITKEleType::Polygon;
|
|
}
|
|
|
|
void FITKElementPolygon::setNodeCount(const int c)
|
|
{
|
|
FITKAbstractElement::setNodeCount(c);
|
|
}
|
|
|
|
|
|
int FITKElementPolygon::getNodeCount()
|
|
{
|
|
return _elemenTopo.size();
|
|
}
|
|
|
|
int FITKElementPolygon::getFaceCount()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int FITKElementPolygon::getElementDim()
|
|
{
|
|
return 2;
|
|
}
|
|
|
|
int FITKElementPolygon::getEdgeCount()
|
|
{
|
|
return _elemenTopo.size();
|
|
}
|
|
|
|
QList<int> FITKElementPolygon::getFace(const int index)
|
|
{
|
|
return _elemenTopo;
|
|
}
|
|
|
|
QList<int> FITKElementPolygon::getEdge(const int index)
|
|
{
|
|
const int np = _elemenTopo.size();
|
|
QList<int> edge;
|
|
edge << index % np << (index + 1) % np;
|
|
return edge;
|
|
}
|
|
|
|
}
|
|
|
|
|