add flag grow edges to python export of BoundaryLayers

This commit is contained in:
Christopher Lackner 2022-03-10 12:07:07 +01:00
parent 0d475f4c43
commit eea8054af6

View File

@ -1154,7 +1154,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
variant<double, py::list> thickness, variant<double, py::list> thickness,
string material, string material,
variant<string, int> domain, bool outside, variant<string, int> domain, bool outside,
optional<string> project_boundaries) optional<string> project_boundaries,
bool grow_edges)
{ {
BoundaryLayerParameters blp; BoundaryLayerParameters blp;
if(int* bc = get_if<int>(&boundary); bc) if(int* bc = get_if<int>(&boundary); bc)
@ -1222,13 +1223,13 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
} }
blp.outside = outside; blp.outside = outside;
blp.grow_edges = true; blp.grow_edges = grow_edges;
GenerateBoundaryLayer (self, blp); GenerateBoundaryLayer (self, blp);
self.UpdateTopology(); self.UpdateTopology();
}, py::arg("boundary"), py::arg("thickness"), py::arg("material"), }, py::arg("boundary"), py::arg("thickness"), py::arg("material"),
py::arg("domains") = ".*", py::arg("outside") = false, py::arg("domains") = ".*", py::arg("outside") = false,
py::arg("project_boundaries")=nullopt, py::arg("project_boundaries")=nullopt, py::arg("grow_edges")=true,
R"delimiter( R"delimiter(
Add boundary layer to mesh. Add boundary layer to mesh.