mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
remove any cast
This commit is contained in:
parent
fd42f24d37
commit
34c1e0667c
@ -198,13 +198,9 @@ DLL_HEADER void ExportSTL(py::module & m)
|
|||||||
{ py::gil_scoped_acquire aq;
|
{ py::gil_scoped_acquire aq;
|
||||||
if(pars)
|
if(pars)
|
||||||
{
|
{
|
||||||
try
|
auto mp_flags = pars->geometrySpecificParameters;
|
||||||
{
|
auto mp_kwargs = CreateDictFromFlags(mp_flags);
|
||||||
auto mp_flags = any_cast<Flags>(pars->geometrySpecificParameters);
|
CreateSTLParametersFromKwargs(stlparam, mp_kwargs);
|
||||||
auto mp_kwargs = CreateDictFromFlags(mp_flags);
|
|
||||||
CreateSTLParametersFromKwargs(stlparam, mp_kwargs);
|
|
||||||
}
|
|
||||||
catch(std::bad_any_cast) {}
|
|
||||||
mp = *pars;
|
mp = *pars;
|
||||||
}
|
}
|
||||||
CreateSTLParametersFromKwargs(stlparam, kwargs);
|
CreateSTLParametersFromKwargs(stlparam, kwargs);
|
||||||
|
Loading…
Reference in New Issue
Block a user