From c9c2a13e387b0e65d9c953483977a7538fabebc1 Mon Sep 17 00:00:00 2001 From: Benoit LELANDAIS Date: Tue, 7 Jan 2025 09:35:04 +0100 Subject: [PATCH] Fix issue#160: UniformSmoothFix removed --- Docs/CMakeLists.txt | 1 - .../EdgeMeshingPropertyUniformSmoothFix.cpp | 90 ------------------- .../EdgeMeshingPropertyUniformSmoothFix.h | 61 ------------- src/pyMagix3D/pyMagix3D.i | 2 - 4 files changed, 154 deletions(-) delete mode 100644 src/Core/Topo/EdgeMeshingPropertyUniformSmoothFix.cpp delete mode 100644 src/Core/protected/Topo/EdgeMeshingPropertyUniformSmoothFix.h diff --git a/Docs/CMakeLists.txt b/Docs/CMakeLists.txt index 4e4c9d2..cd774b2 100644 --- a/Docs/CMakeLists.txt +++ b/Docs/CMakeLists.txt @@ -33,7 +33,6 @@ set(DOXYGEN_DIRS ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/TopoInfo.h ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/TopoManagerIfc.h ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/EdgeMeshingPropertyUniform.h - ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/EdgeMeshingPropertyUniformSmoothFix.h ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/EdgeMeshingPropertyGeometric.h ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/EdgeMeshingPropertyBigeometric.h ${PROJECT_SOURCE_DIR}/src/Core/protected/Topo/EdgeMeshingPropertyHyperbolic.h diff --git a/src/Core/Topo/EdgeMeshingPropertyUniformSmoothFix.cpp b/src/Core/Topo/EdgeMeshingPropertyUniformSmoothFix.cpp deleted file mode 100644 index d04d417..0000000 --- a/src/Core/Topo/EdgeMeshingPropertyUniformSmoothFix.cpp +++ /dev/null @@ -1,90 +0,0 @@ -/*----------------------------------------------------------------------------*/ -/* - * \file EdgeMeshingPropertyUniformSmoothFix.cpp - * - * \date 24 janv. 2012 - */ -/*----------------------------------------------------------------------------*/ -#include "Topo/EdgeMeshingPropertyUniformSmoothFix.h" -#include -#include -#include "Utils/Common.h" -/*----------------------------------------------------------------------------*/ -namespace Mgx3D { -/*----------------------------------------------------------------------------*/ -namespace Topo { -/*----------------------------------------------------------------------------*/ - EdgeMeshingPropertyUniformSmoothFix:: - EdgeMeshingPropertyUniformSmoothFix(int nb) -: CoEdgeMeshingProperty(nb, uniforme_smoothfix, true) -{ -} -/*----------------------------------------------------------------------------*/ - EdgeMeshingPropertyUniformSmoothFix:: - EdgeMeshingPropertyUniformSmoothFix(int nb, Utils::Math::Point polar_center) -: CoEdgeMeshingProperty(nb, polar_center, uniforme_smoothfix, true) -{ -} -/*----------------------------------------------------------------------------*/ -EdgeMeshingPropertyUniformSmoothFix::EdgeMeshingPropertyUniformSmoothFix (const CoEdgeMeshingProperty& prop) -: CoEdgeMeshingProperty (prop.getNbEdges(), uniforme_smoothfix, prop.getDirect()) -{ - const EdgeMeshingPropertyUniformSmoothFix* p = reinterpret_cast(&prop); - if (0 == p) - { - TkUtil::UTF8String messErr (TkUtil::Charset::UTF_8); - messErr << "EdgeMeshingPropertyUniformSmoothFix, la propriété transmise en argument n'est pas de type EdgeMeshingPropertyUniformSmoothFix"; - throw TkUtil::Exception(messErr); - } // if (0 == p) -} - -/*----------------------------------------------------------------------------*/ -bool EdgeMeshingPropertyUniformSmoothFix::operator == (const CoEdgeMeshingProperty& cedp) const -{ - const EdgeMeshingPropertyUniformSmoothFix* props = - dynamic_cast (&cedp); - if (0 == props) - return false; - - return CoEdgeMeshingProperty::operator == (cedp); -} -/*----------------------------------------------------------------------------*/ -double EdgeMeshingPropertyUniformSmoothFix:: -nextCoeff() -{ - m_dernierIndice+=1; - -#ifdef _DEBUG - if (m_dernierIndice>m_nb_edges){ - TkUtil::UTF8String messErr (TkUtil::Charset::UTF_8); - messErr<<"EdgeMeshingPropertyUniformSmoothFix::nextCoeff est en dehors des limites: dernierIndice : " - <<(long)m_dernierIndice<<", nb de bras : "<<(long)m_nb_edges; - throw TkUtil::Exception(messErr); - } -#endif - - return ((double)m_dernierIndice)/((double)m_nb_edges); -} -/*----------------------------------------------------------------------------*/ -TkUtil::UTF8String EdgeMeshingPropertyUniformSmoothFix:: -getScriptCommand() const -{ - TkUtil::UTF8String o (TkUtil::Charset::UTF_8); - o << getMgx3DAlias() << ".EdgeMeshingPropertyUniformSmoothFix(" << (long)m_nb_edges ; - if (isPolarCut()) - o << ", "<