mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'occ_init_mesh_ptr' into 'master'
OCCGenerateMesh: Initialize mesh if nullptr is given See merge request jschoeberl/netgen!76
This commit is contained in:
commit
356fc6c42f
@ -1295,8 +1295,8 @@ namespace netgen
|
||||
|
||||
if (mparam.perfstepsstart <= MESHCONST_ANALYSE)
|
||||
{
|
||||
// delete mesh;
|
||||
// mesh = make_shared<Mesh>();
|
||||
if(mesh.get() == nullptr)
|
||||
mesh = make_shared<Mesh>();
|
||||
mesh->geomtype = Mesh::GEOM_OCC;
|
||||
|
||||
OCCSetLocalMeshSize(geom,*mesh);
|
||||
|
Loading…
Reference in New Issue
Block a user