Compare commits
2 Commits
master
...
asozinov/3
Author | SHA1 | Date | |
---|---|---|---|
|
1fea6c8d41 | ||
|
05ebaa28ea |
@ -31,6 +31,7 @@
|
|||||||
#include "NETGENPlugin_Hypothesis_2D.hxx"
|
#include "NETGENPlugin_Hypothesis_2D.hxx"
|
||||||
#include "NETGENPlugin_SimpleHypothesis_3D.hxx"
|
#include "NETGENPlugin_SimpleHypothesis_3D.hxx"
|
||||||
|
|
||||||
|
#include <BRepBndLib.hxx>
|
||||||
#include <SMDS_FaceOfNodes.hxx>
|
#include <SMDS_FaceOfNodes.hxx>
|
||||||
#include <SMDS_LinearEdge.hxx>
|
#include <SMDS_LinearEdge.hxx>
|
||||||
#include <SMDS_MeshElement.hxx>
|
#include <SMDS_MeshElement.hxx>
|
||||||
@ -2897,7 +2898,7 @@ bool NETGENPlugin_Mesher::Compute()
|
|||||||
// Generate the mesh
|
// Generate the mesh
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
_ngMesh = NULL;
|
//_ngMesh = NULL;
|
||||||
NETGENPlugin_ngMeshInfo initState; // it remembers size of ng mesh equal to size of Smesh
|
NETGENPlugin_ngMeshInfo initState; // it remembers size of ng mesh equal to size of Smesh
|
||||||
|
|
||||||
SMESH_Comment comment;
|
SMESH_Comment comment;
|
||||||
@ -4511,6 +4512,7 @@ int NETGENPlugin_NetgenLibWrapper::GenerateMesh( netgen::OCCGeometry& occgeo,
|
|||||||
|
|
||||||
ngMesh->SetGeometry( shared_ptr<netgen::NetgenGeometry>( &occgeo, &NOOP_Deleter ));
|
ngMesh->SetGeometry( shared_ptr<netgen::NetgenGeometry>( &occgeo, &NOOP_Deleter ));
|
||||||
|
|
||||||
|
occgeo.BuildFMap();
|
||||||
netgen::mparam.perfstepsstart = startWith;
|
netgen::mparam.perfstepsstart = startWith;
|
||||||
netgen::mparam.perfstepsend = endWith;
|
netgen::mparam.perfstepsend = endWith;
|
||||||
std::shared_ptr<netgen::Mesh> meshPtr( ngMesh, &NOOP_Deleter );
|
std::shared_ptr<netgen::Mesh> meshPtr( ngMesh, &NOOP_Deleter );
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
#include "NETGENPlugin_Mesher.hxx"
|
#include "NETGENPlugin_Mesher.hxx"
|
||||||
#include "NETGENPlugin_Hypothesis_2D.hxx"
|
#include "NETGENPlugin_Hypothesis_2D.hxx"
|
||||||
|
|
||||||
|
#include <BRepBndLib.hxx>
|
||||||
|
#include <TopExp.hxx>
|
||||||
#include <SMDS_MeshElement.hxx>
|
#include <SMDS_MeshElement.hxx>
|
||||||
#include <SMDS_MeshNode.hxx>
|
#include <SMDS_MeshNode.hxx>
|
||||||
#include <SMESHDS_Mesh.hxx>
|
#include <SMESHDS_Mesh.hxx>
|
||||||
@ -290,6 +292,8 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh,
|
|||||||
#endif
|
#endif
|
||||||
occgeoComm.face_maxh = netgen::mparam.maxh;
|
occgeoComm.face_maxh = netgen::mparam.maxh;
|
||||||
#ifdef NETGEN_V6
|
#ifdef NETGEN_V6
|
||||||
|
occgeoComm.BuildFMap();
|
||||||
|
|
||||||
netgen::OCCParameters occparam;
|
netgen::OCCParameters occparam;
|
||||||
netgen::OCCSetLocalMeshSize( occgeoComm, *ngMeshes[0], netgen::mparam, occparam );
|
netgen::OCCSetLocalMeshSize( occgeoComm, *ngMeshes[0], netgen::mparam, occparam );
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user