Update Mesher.cpp
removed old code for smesh <v7. Freecad now requre smesh version >=7.7.1
This commit is contained in:
committed by
Yorik van Havre
parent
dacdc2b1d1
commit
9975c74c45
@@ -37,7 +37,6 @@
|
||||
|
||||
#include "Mesher.h"
|
||||
|
||||
|
||||
#ifdef HAVE_SMESH
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
@@ -53,10 +52,6 @@
|
||||
#include <SMESH_Mesh.hxx>
|
||||
#include <StdMeshers_MaxLength.hxx>
|
||||
|
||||
#if SMESH_VERSION_MAJOR < 7
|
||||
#include <StdMeshers_TrianglePreference.hxx>
|
||||
#endif
|
||||
|
||||
#include <StdMeshers_Arithmetic1D.hxx>
|
||||
#include <StdMeshers_AutomaticLength.hxx>
|
||||
#include <StdMeshers_Deflection1D.hxx>
|
||||
@@ -362,7 +357,6 @@ Mesh::MeshObject* Mesher::createMesh() const
|
||||
SMESH_Mesh* mesh = meshgen->CreateMesh(0, true);
|
||||
#endif
|
||||
|
||||
|
||||
int hyp = 0;
|
||||
|
||||
switch (method) {
|
||||
@@ -490,11 +484,7 @@ Mesh::MeshObject* Mesher::createMesh() const
|
||||
#endif
|
||||
hypoth.push_back(hyp1d);
|
||||
}
|
||||
#if SMESH_VERSION_MAJOR < 7
|
||||
StdMeshers_TrianglePreference* hyp2d_1 =
|
||||
new StdMeshers_TrianglePreference(hyp++, 0, meshgen);
|
||||
hypoth.push_back(hyp2d_1);
|
||||
#endif
|
||||
|
||||
#if SMESH_VERSION_MAJOR >= 9
|
||||
StdMeshers_MEFISTO_2D* alg2d = new StdMeshers_MEFISTO_2D(hyp++, meshgen);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user