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

gmshpy : add bindings to set transfinite/recombine flags

parent 0655ee89
Branches
Tags
No related merge requests found
...@@ -152,3 +152,30 @@ namespace std { ...@@ -152,3 +152,30 @@ namespace std {
return p; return p;
} }
} }
%extend GEdge {
void setTransfinite(int nbPointsTransfinite, int typeTransfinite = 0, double coeffTransfinite = 1) {
$self->meshAttributes.method = MESH_TRANSFINITE;
$self->meshAttributes.typeTransfinite = typeTransfinite;
$self->meshAttributes.nbPointsTransfinite = std::max(2, nbPointsTransfinite);
$self->meshAttributes.coeffTransfinite = coeffTransfinite;
}
}
%extend GFace {
void setTransfinite() {
$self->meshAttributes.method = MESH_TRANSFINITE;
}
void setRecombine() {
$self->meshAttributes.recombine = 1;
}
}
%extend GRegion {
void setTransfinite() {
$self->meshAttributes.method = MESH_TRANSFINITE;
}
void setRecombine() {
$self->meshAttributes.recombine3D = 1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment