mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
Merge branch 'fixbcname' into 'master'
fix behavior if not each segment has a bcname See merge request jschoeberl/netgen!86
This commit is contained in:
commit
cbe8bcb553
@ -86,10 +86,8 @@ DLL_HEADER void ExportGeom2d(py::module &m)
|
|||||||
else if (py::extract<string>(bc).check())
|
else if (py::extract<string>(bc).check())
|
||||||
{
|
{
|
||||||
string bcname = py::extract<string>(bc)();
|
string bcname = py::extract<string>(bc)();
|
||||||
int bcnum = self.GetBCNumber(bcname);
|
seg->bc = self.GetNSplines()+1;
|
||||||
if (bcnum == 0)
|
self.SetBCName(seg->bc, bcname);
|
||||||
bcnum = self.AddBCName(bcname);
|
|
||||||
seg->bc = bcnum;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
seg->bc = self.GetNSplines()+1;
|
seg->bc = self.GetNSplines()+1;
|
||||||
|
Loading…
Reference in New Issue
Block a user