Select Git revision
GModelIO_P3D.cpp
-
Christophe Geuzaine authoredChristophe Geuzaine authored
MVertexBoundaryLayerData.cpp 821 B
// Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include "MVertexBoundaryLayerData.h"
std::vector<MVertex *> *MVertexBoundaryLayerData::getChildren(int i)
{
if(i < (int)this->children.size() && i >= 0) {
return &(children[i]);
}
else {
return 0;
}
}
int MVertexBoundaryLayerData::getNumChildren(int i)
{
if(i < (int)this->children.size() && i >= 0) {
return (int)this->children[i].size();
}
else {
return -1;
}
}
int MVertexBoundaryLayerData::getNumChildrenFamilies()
{
return (int)this->children.size();
}
void MVertexBoundaryLayerData::addChildrenFamily(
const std::vector<MVertex *> &family)
{
this->children.push_back(family);
}