mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
* Fixed bug in nglib.cpp - Local redefining of global object "mparam" in the STL mesh generation functions prevented mesh parameters from being propagated into the netgen meshing kernel
This commit is contained in:
parent
091f525828
commit
20cfea7f30
@ -457,7 +457,10 @@ DLL_HEADER Ng_Result Ng_STL_MakeEdges (Ng_STL_Geometry * geom,
|
||||
STLGeometry* stlgeometry = (STLGeometry*)geom;
|
||||
Mesh* me = (Mesh*)mesh;
|
||||
|
||||
MeshingParameters mparam;
|
||||
// Philippose - 27/07/2009
|
||||
// Do not locally re-define "mparam" here... "mparam" is a global
|
||||
// object
|
||||
//MeshingParameters mparam;
|
||||
|
||||
mparam.maxh = mp->maxh;
|
||||
mparam.meshsizefilename = mp->meshsize_filename;
|
||||
@ -496,7 +499,10 @@ DLL_HEADER Ng_Result Ng_STL_GenerateSurfaceMesh (Ng_STL_Geometry * geom,
|
||||
STLGeometry* stlgeometry = (STLGeometry*)geom;
|
||||
Mesh* me = (Mesh*)mesh;
|
||||
|
||||
MeshingParameters mparam;
|
||||
// Philippose - 27/07/2009
|
||||
// Do not locally re-define "mparam" here... "mparam" is a global
|
||||
// object
|
||||
//MeshingParameters mparam;
|
||||
|
||||
mparam.maxh = mp->maxh;
|
||||
mparam.meshsizefilename = mp->meshsize_filename;
|
||||
|
Loading…
Reference in New Issue
Block a user