mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
stlmeshing - set shared ptr
This commit is contained in:
parent
50e5b2ef7b
commit
dade5551b5
@ -1340,8 +1340,11 @@ int STLMeshingDummy (STLGeometry* stlgeometry, shared_ptr<Mesh> & mesh, MeshingP
|
||||
|
||||
if (perfstepsstart <= MESHCONST_MESHEDGES)
|
||||
{
|
||||
if (mesh)
|
||||
mesh -> DeleteMesh();
|
||||
else
|
||||
mesh = make_shared<Mesh>();
|
||||
|
||||
mesh = make_shared<Mesh>();
|
||||
mesh->geomtype = Mesh::GEOM_STL;
|
||||
|
||||
mesh -> SetGlobalH (mparam.maxh);
|
||||
|
Loading…
Reference in New Issue
Block a user