[Mesh] Core P-end: remove unused includes

- also some sorting
This commit is contained in:
Uwe
2022-11-22 02:34:18 +01:00
parent 43463077f1
commit 69dd6ea965
24 changed files with 70 additions and 92 deletions

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <algorithm>
@@ -28,19 +27,13 @@
#endif
#include "Projection.h"
#include "MeshKernel.h"
#include "Iterator.h"
#include "Algorithm.h"
#include "Grid.h"
#include <Base/Exception.h>
#include <Base/Console.h>
#include <Base/Sequencer.h>
#include "Iterator.h"
#include "MeshKernel.h"
using namespace MeshCore;
// ------------------------------------------------------------------------
MeshProjection::MeshProjection(const MeshKernel& mesh)

View File

@@ -20,14 +20,14 @@
* *
***************************************************************************/
#ifndef MESH_PROJECTION_H
#define MESH_PROJECTION_H
#include <vector>
#include <Base/BoundBox.h>
#include <Base/Vector3D.h>
#include <Mod/Mesh/App/Core/Elements.h>
#include "Elements.h"
using Base::Vector3f;

View File

@@ -23,11 +23,13 @@
#ifndef MESHCORE_SEGMENTATION_H
#define MESHCORE_SEGMENTATION_H
#include "MeshKernel.h"
#include "Curvature.h"
#include "Visitor.h"
#include <vector>
#include <memory>
#include <vector>
#include "Curvature.h"
#include "MeshKernel.h"
#include "Visitor.h"
namespace MeshCore {

View File

@@ -20,31 +20,26 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <fstream>
# include <ios>
#endif
#include <fstream>
#include <Base/Builder3D.h>
#include <Base/Sequencer.h>
#include "SetOperations.h"
#include "Algorithm.h"
#include "Elements.h"
#include "Iterator.h"
#include "Grid.h"
#include "MeshIO.h"
#include "Visitor.h"
#include "Builder.h"
#include "Grid.h"
#include "Evaluation.h"
#include "Definitions.h"
#include "Elements.h"
#include "Grid.h"
#include "Iterator.h"
#include "Triangulation.h"
#include "Visitor.h"
#include <Base/Sequencer.h>
#include <Base/Builder3D.h>
#include <Base/Tools2D.h>
using namespace Base;
using namespace MeshCore;

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#ifndef MESH_SETOPERATIONS_H
#define MESH_SETOPERATIONS_H
@@ -28,12 +27,12 @@
#include <map>
#include <set>
#include "MeshKernel.h"
#include "Elements.h"
#include <Base/Builder3D.h>
#include "Iterator.h"
#include "MeshKernel.h"
#include "Visitor.h"
#include <Base/Builder3D.h>
// forward declarations

View File

@@ -11,7 +11,7 @@
// * Remove macros loop,i,j,k
#include <vector>
#include <Base/Vector3D.h>
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES

View File

@@ -20,18 +20,15 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include <Base/Tools.h>
#include "Smoothing.h"
#include "MeshKernel.h"
#include "Algorithm.h"
#include "Elements.h"
#include "Iterator.h"
#include "Approximation.h"
#include <Base/Tools.h>
#include "Iterator.h"
#include "MeshKernel.h"
using namespace MeshCore;

View File

@@ -20,13 +20,14 @@
* *
***************************************************************************/
#ifndef MESH_SMOOTHING_H
#define MESH_SMOOTHING_H
#include <vector>
#include "Definitions.h"
namespace MeshCore
{
class MeshKernel;

View File

@@ -29,19 +29,18 @@
#endif
#include "SphereFit.h"
#include <Base/Console.h>
using namespace MeshCoreFit;
SphereFit::SphereFit()
: _vCenter(0,0,0)
, _dRadius(0)
, _numIter(0)
, _posConvLimit(0.0001)
, _vConvLimit(0.001)
, _maxIter(50)
{
}
: _vCenter(0, 0, 0),
_dRadius(0),
_numIter(0),
_posConvLimit(0.0001),
_vConvLimit(0.001),
_maxIter(50)
{}
SphereFit::~SphereFit()
{

View File

@@ -20,12 +20,12 @@
* *
***************************************************************************/
#ifndef MESH_SPHERE_FIT_H
#define MESH_SPHERE_FIT_H
#include "Approximation.h"
#include <Eigen/Eigenvalues>
#include "Approximation.h"
// -------------------------------------------------------------------------------
namespace MeshCoreFit {

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
@@ -28,7 +27,6 @@
#endif
#include "Tools.h"
#include "Iterator.h"
using namespace MeshCore;

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#ifndef MESH_TOOLS_H
#define MESH_TOOLS_H
@@ -28,11 +27,11 @@
#include <Mod/Mesh/App/WildMagic4/Wm4DistVector3Triangle3.h>
#include <Mod/Mesh/App/WildMagic4/Wm4Sphere3.h>
#include <Mod/Mesh/App/WildMagic4/Wm4Triangle3.h>
#include "MeshKernel.h"
#include "Algorithm.h"
#include "Iterator.h"
#include "MeshKernel.h"
namespace MeshCore {

View File

@@ -20,26 +20,23 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <algorithm>
# include <utility>
# include <queue>
# include <utility>
#endif
#include <Base/Console.h>
#include <Mod/Mesh/App/WildMagic4/Wm4MeshCurvature.h>
#include <Mod/Mesh/App/WildMagic4/Wm4Vector3.h>
#include "TopoAlgorithm.h"
#include "Evaluation.h"
#include "Iterator.h"
#include "MeshKernel.h"
#include "Algorithm.h"
#include "Evaluation.h"
#include "Triangulation.h"
#include "Definitions.h"
#include <Base/Console.h>
using namespace MeshCore;

View File

@@ -20,22 +20,16 @@
* *
***************************************************************************/
#ifndef MESH_TOPOALGORITHM_H
#define MESH_TOPOALGORITHM_H
#include <map>
#include <vector>
#include "Definitions.h"
#include "Iterator.h"
#include "MeshKernel.h"
#include "Elements.h"
#include "Visitor.h"
#include "Algorithm.h"
#include "Elements.h"
#include "MeshKernel.h"
#include <Base/Vector3D.h>
#include <Base/Sequencer.h>
namespace MeshCore {
class AbstractPolygonTriangulator;

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <queue>
@@ -28,13 +27,12 @@
#include <Base/Console.h>
#include <Base/Exception.h>
#include <Mod/Mesh/App/WildMagic4/Wm4Delaunay2.h>
#include "Triangulation.h"
#include "Approximation.h"
#include "Algorithm.h"
#include "MeshKernel.h"
#include <Mod/Mesh/App/WildMagic4/Wm4Delaunay2.h>
using namespace MeshCore;

View File

@@ -20,12 +20,11 @@
* *
***************************************************************************/
#ifndef MESH_TRIANGULATION_H
#define MESH_TRIANGULATION_H
#include "Elements.h"
#include <Base/Vector3D.h>
namespace MeshCore
{

View File

@@ -21,12 +21,16 @@
***************************************************************************/
#include "PreCompiled.h"
#include <algorithm>
#ifndef _PreComp_
# include <algorithm>
#endif
#include <Base/Sequencer.h>
#include "Trim.h"
#include "Grid.h"
#include "Iterator.h"
#include <Base/Sequencer.h>
using namespace MeshCore;

View File

@@ -23,11 +23,11 @@
#ifndef MESHTRIM_H
#define MESHTRIM_H
#include <Mod/Mesh/App/Core/Elements.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include <Base/Tools2D.h>
#include <Base/ViewProj.h>
#include "MeshKernel.h"
namespace MeshCore {
/**

View File

@@ -21,12 +21,15 @@
***************************************************************************/
#include "PreCompiled.h"
#include <algorithm>
#ifndef _PreComp_
# include <algorithm>
#endif
#include "TrimByPlane.h"
#include "Grid.h"
#include "Iterator.h"
using namespace MeshCore;
MeshTrimByPlane::MeshTrimByPlane(MeshKernel &rclM)

View File

@@ -23,8 +23,8 @@
#ifndef MESHTRIM_BY_PLANE_H
#define MESHTRIM_BY_PLANE_H
#include <Mod/Mesh/App/Core/Elements.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include "MeshKernel.h"
namespace MeshCore {

View File

@@ -20,13 +20,13 @@
* *
***************************************************************************/
#ifndef MESH_UTILITIES_H
#define MESH_UTILITIES_H
#include <Base/Converter.h>
#include <Mod/Mesh/App/WildMagic4/Wm4Vector3.h>
namespace Base {
// Specialization for Wm4::Vector3d
template <>

View File

@@ -20,14 +20,14 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "MeshKernel.h"
#include "MeshKernel.h" // must be before Visitor.h
#include "Visitor.h"
#include "Algorithm.h"
#include "Approximation.h"
using namespace MeshCore;

View File

@@ -20,14 +20,13 @@
* *
***************************************************************************/
#ifndef VISITOR_H
#define VISITOR_H
#include <vector>
#include <Base/Vector3D.h>
#include <Mod/Mesh/MeshGlobal.h>
namespace MeshCore {
class MeshFacet;

View File

@@ -43,6 +43,7 @@
#include <cmath>
#include <cfloat>
#include <fcntl.h>
#include <fstream>
#include <ios>
#ifdef FC_USE_GTS