occgeo.shape = shape;
occgeo.changed = 1;
occgeo.BuildFMap();
+ //amv for test
+ occgeo.amv_test();
+
BRepTools::Clean (shape);
BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh (shape, 0.01, true);
Bnd_Box bb;
// create tetrahedra
for (i = 1; i <= nbVol/* && isOK*/; ++i)
{
- const netgen::Element& elem = ngMesh->VolumeElement(i);
+ const netgen::Element& elem = ngMesh->VolumeElement(i);
int aSolidInd = elem.GetIndex();
TopoDS_Solid aSolid;
if (aSolidInd > 0 && aSolidInd <= occgeo.somap.Extent())
#define OCCGEOMETRY
#include <occgeom.hpp>
#include <meshing.hpp>
+//#include <meshtype.hpp>
namespace netgen {
extern int OCCGenerateMesh (OCCGeometry&, Mesh*&, int, int, char*);
- extern MeshingParameters mparam;
+ /*extern*/ MeshingParameters mparam;
}
using namespace std;
seg.p2 = firstPointID;
}
- ngMesh.CalcSurfacesOfNode();
+ ngMesh.CalcSurfacesOfNode();
return TError();
}
#include "SMESH_2D_Algo.hxx"
#include "SMESH_Mesh.hxx"
+/*#define OCCGEOMETRY
+#include <occgeom.hpp>
+#include <meshing.hpp>//amv*/
+
class StdMeshers_MaxElementArea;
class StdMeshers_LengthFromEdges;
class StdMeshers_QuadranglePreference;
//class NETGENPlugin_Hypothesis;
+/*namespace netgen {
+ class OCCGeometry;
+}*/
+/*namespace netgen {
+ class OCCGeometry;
+ extern int OCCGenerateMesh (OCCGeometry&, Mesh*&, int, int, char*);
+ extern MeshingParameters mparam;
+}*/
+
+//using namespace netgen;
+
/*!
* \brief Mesher generating 2D elements on a geometrical face taking
* into account pre-existing nodes on face boundaries
virtual bool Compute(SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape);
+ /*static TError AddSegmentsToMesh(netgen::Mesh& ngMesh,
+ OCCGeometry& geom,
+ const TSideVector& wires,
+ SMESH_MesherHelper& helper,
+ vector< const SMDS_MeshNode* > & nodeVec); //amv*/
+
protected:
const StdMeshers_MaxElementArea* _hypMaxElementArea;
const StdMeshers_LengthFromEdges* _hypLengthFromEdges;