Skip to content
Snippets Groups Projects
Commit e7bb1173 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

complete model+mesh extrusion (for simple meshes) in lua

parent 4f04e40b
Branches
Tags
No related merge requests found
......@@ -1925,6 +1925,10 @@ void GModel::glue(double eps)
glueFacesInRegions(this, Unique2Duplicates, Duplicates2Unique);
}
}
void GModel::insertRegion(GRegion *r)
{
regions.insert(r);
}
#include "Bindings.h"
......@@ -1976,6 +1980,9 @@ void GModel::registerBindings(binding *b)
cm->setDescription("access a geometrical region by tag");
cm->setArgNames("tag", NULL);
cm = cb->addMethod("insertRegion", &GModel::insertRegion);
cm->setDescription("insert an existing region to the model list");
cm->setArgNames("region", NULL);
cm = cb->addMethod("getRegions", &GModel::bindingsGetRegions);
cm->setDescription("return a vector of the regions");
cm = cb->addMethod("getFaces", &GModel::bindingsGetFaces);
......
......@@ -118,6 +118,8 @@ class GModel
std::set<GEdge*, GEntityLessThan> edges;
std::set<GVertex*, GEntityLessThan> vertices;
void insertRegion (GRegion*);
// map between the pair <dimension, elementary or physical number>
// and an optional associated name
std::map<std::pair<int, int>, std::string> physicalNames, elementaryNames;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment