[Reverse Eng] App: enable precompiled headers

- also some sorting
This commit is contained in:
Uwe
2022-12-11 03:19:11 +01:00
parent ec9b2c0966
commit bea2f9be2c
16 changed files with 129 additions and 130 deletions

View File

@@ -22,35 +22,29 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <TColgp_Array1OfPnt.hxx>
# include <Geom_BSplineSurface.hxx>
# include <TColgp_Array1OfPnt.hxx>
#endif
#include <Base/Console.h>
#include <Base/Converter.h>
#include <Base/Interpreter.h>
#include <Base/PyObjectBase.h>
#include <Base/GeometryPyCXX.h>
#include <CXX/Extensions.hxx>
#include <CXX/Objects.hxx>
#include <Base/Interpreter.h>
#include <Mod/Part/App/BSplineSurfacePy.h>
#include <Mod/Mesh/App/Mesh.h>
#include <Mod/Mesh/App/MeshPy.h>
#include <Mod/Points/App/PointsPy.h>
#if defined(HAVE_PCL_FILTERS)
# include <pcl/filters/passthrough.h>
# include <pcl/filters/voxel_grid.h>
# include <pcl/point_types.h>
#endif
#include "ApproxSurface.h"
#include "BSplineFitting.h"
#include "SurfaceTriangulation.h"
#include "RegionGrowing.h"
#include "Segmentation.h"
#include "SampleConsensus.h"
#if defined(HAVE_PCL_FILTERS)
#include <pcl/filters/passthrough.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/point_types.h>
#endif
#include "Segmentation.h"
#include "SurfaceTriangulation.h"
/*
Dependency of pcl components:

View File

@@ -20,24 +20,25 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include <math_Gauss.hxx>
#include <math_Householder.hxx>
#include <Geom_BSplineSurface.hxx>
#include <Precision.hxx>
#ifndef _PreComp_
# include <QFuture>
# include <QFutureWatcher>
# include <QtConcurrentMap>
#include <QFuture>
#include <QFutureWatcher>
#include <QtConcurrentMap>
# include <Geom_BSplineSurface.hxx>
# include <math_Gauss.hxx>
# include <math_Householder.hxx>
# include <Precision.hxx>
#endif
#include <Mod/Mesh/App/Core/Approximation.h>
#include <Base/Sequencer.h>
#include <Base/Tools2D.h>
#include <Base/Tools.h>
#include <Mod/Mesh/App/Core/Approximation.h>
#include "ApproxSurface.h"
using namespace Reen;
namespace bp = boost::placeholders;

View File

@@ -20,21 +20,21 @@
* *
***************************************************************************/
#ifndef REEN_APPROXSURFACE_H
#define REEN_APPROXSURFACE_H
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TColgp_Array1OfPnt.hxx>
#include <TColgp_Array2OfPnt.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <Geom_BSplineSurface.hxx>
#include <math_Matrix.hxx>
#include <Base/Vector3D.h>
#include <Mod/ReverseEngineering/ReverseEngineeringGlobal.h>
namespace Base {
class SequencerLauncher;
}

View File

@@ -20,16 +20,16 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#if defined(HAVE_PCL_OPENNURBS)
#ifndef _PreComp_
# include <map>
# include <Geom_BSplineSurface.hxx>
# include <TColgp_Array2OfPnt.hxx>
# include <TColStd_Array2OfReal.hxx>
# include <TColStd_Array1OfInteger.hxx>
# include <TColStd_Array1OfReal.hxx>
# include <map>
# include <TColStd_Array2OfReal.hxx>
#endif
#include <Mod/Points/App/PointsPy.h>

View File

@@ -20,14 +20,15 @@
* *
***************************************************************************/
#ifndef REEN_BSPLINEFITTING_H
#define REEN_BSPLINEFITTING_H
#if defined(HAVE_PCL_OPENNURBS)
#include <Geom_BSplineSurface.hxx>
#include <Base/Vector3D.h>
#include <vector>
# include <vector>
# include <Base/Vector3D.h>
# include <Geom_BSplineSurface.hxx>
namespace Reen {

View File

@@ -72,10 +72,15 @@ SET(Reen_SRCS
PreCompiled.h
)
if(FREECAD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Reen_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(ReverseEngineering PreCompiled.h PreCompiled.cpp PCH_SRCS)
endif(FREECAD_USE_PCH)
add_library(ReverseEngineering SHARED ${Reen_SRCS})
target_link_libraries(ReverseEngineering ${Reen_LIBS})
SET_BIN_DIR(ReverseEngineering ReverseEngineering /Mod/ReverseEngineering)
SET_PYTHON_PREFIX_SUFFIX(ReverseEngineering)

View File

@@ -20,5 +20,4 @@
* *
***************************************************************************/
#include "PreCompiled.h"

View File

@@ -20,51 +20,43 @@
* *
***************************************************************************/
#ifndef __PRECOMPILED__
#define __PRECOMPILED__
#include <FCConfig.h>
#ifdef _MSC_VER
# pragma warning(disable : 4181)
# pragma warning(disable : 4267)
# pragma warning(disable : 4275)
# pragma warning(disable : 4305)
# pragma warning(disable : 4522)
# pragma warning(disable : 4181)
# pragma warning(disable : 4267)
# pragma warning(disable : 4275)
# pragma warning(disable : 4305)
# pragma warning(disable : 4522)
#endif
// pcl headers include <boost/bind.hpp> instead of <boost/bind/bind.hpp>
#ifndef BOOST_BIND_GLOBAL_PLACEHOLDERS
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
# define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
#ifdef _PreComp_
// standard
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <bitset>
// boost
#include <boost/math/special_functions/fpclassify.hpp>
// OpenCasCade
#include <Geom_BSplineSurface.hxx>
#include <math_Gauss.hxx>
#include <math_Householder.hxx>
#include <math_Matrix.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <Precision.hxx>
#include <TColgp_Array1OfPnt.hxx>
#include <TColgp_Array2OfPnt.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
#include <Geom_BSplineSurface.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <TopoDS_Face.hxx>
#endif
// Qt
#include <QFuture>
#include <QFutureWatcher>
#include <QtConcurrentMap>
#endif // _PreComp_
#endif

View File

@@ -20,24 +20,26 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <boost/math/special_functions/fpclassify.hpp>
#endif
#include <Mod/Points/App/Points.h>
#include "RegionGrowing.h"
#include <Mod/Points/App/Points.h>
#include <Base/Exception.h>
#include <boost/math/special_functions/fpclassify.hpp>
#if defined(HAVE_PCL_FILTERS)
#include <pcl/filters/passthrough.h>
#include <pcl/point_types.h>
# include <pcl/filters/passthrough.h>
# include <pcl/point_types.h>
#endif
#if defined(HAVE_PCL_SEGMENTATION)
#include <pcl/search/search.h>
#include <pcl/search/kdtree.h>
#include <pcl/features/normal_3d.h>
#include <pcl/segmentation/region_growing.h>
#include <pcl/filters/extract_indices.h>
# include <pcl/search/search.h>
# include <pcl/search/kdtree.h>
# include <pcl/features/normal_3d.h>
# include <pcl/segmentation/region_growing.h>
# include <pcl/filters/extract_indices.h>
using namespace std;
using namespace Reen;

View File

@@ -20,13 +20,14 @@
* *
***************************************************************************/
#ifndef REEN_REGIONGROWING_H
#define REEN_REGIONGROWING_H
#include <Base/Vector3D.h>
#include <vector>
#include <list>
#include <vector>
#include <Base/Vector3D.h>
namespace Points {class PointKernel;}

View File

@@ -20,22 +20,25 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <boost/math/special_functions/fpclassify.hpp>
#endif
#include <Base/Exception.h>
#include <Mod/Points/App/Points.h>
#include "SampleConsensus.h"
#include <Mod/Points/App/Points.h>
#include <Base/Exception.h>
#include <boost/math/special_functions/fpclassify.hpp>
#if defined(HAVE_PCL_SAMPLE_CONSENSUS)
#include <pcl/point_types.h>
#include <pcl/features/normal_3d.h>
#include <pcl/sample_consensus/ransac.h>
#include <pcl/sample_consensus/sac_model_plane.h>
#include <pcl/sample_consensus/sac_model_sphere.h>
#include <pcl/sample_consensus/sac_model_cylinder.h>
#include <pcl/sample_consensus/sac_model_cone.h>
# include <pcl/point_types.h>
# include <pcl/features/normal_3d.h>
# include <pcl/sample_consensus/ransac.h>
# include <pcl/sample_consensus/sac_model_cone.h>
# include <pcl/sample_consensus/sac_model_cylinder.h>
# include <pcl/sample_consensus/sac_model_plane.h>
# include <pcl/sample_consensus/sac_model_sphere.h>
using namespace std;
using namespace Reen;

View File

@@ -20,13 +20,14 @@
* *
***************************************************************************/
#ifndef REEN_SAMPLECONSENSUS_H
#define REEN_SAMPLECONSENSUS_H
#include <Base/Vector3D.h>
#include <vector>
#include <Base/Vector3D.h>
namespace Points {class PointKernel;}
namespace Reen {

View File

@@ -20,29 +20,29 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "Segmentation.h"
#include <Mod/Points/App/Points.h>
#include <Base/Exception.h>
#include "Segmentation.h"
#if defined(HAVE_PCL_FILTERS)
#include <pcl/filters/extract_indices.h>
#include <pcl/filters/passthrough.h>
#include <pcl/features/normal_3d.h>
# include <pcl/filters/extract_indices.h>
# include <pcl/filters/passthrough.h>
# include <pcl/features/normal_3d.h>
#endif
#if defined(HAVE_PCL_SAMPLE_CONSENSUS)
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
# include <pcl/sample_consensus/method_types.h>
# include <pcl/sample_consensus/model_types.h>
#endif
#if defined(HAVE_PCL_SEGMENTATION)
#include <pcl/ModelCoefficients.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/segmentation/sac_segmentation.h>
# include <pcl/io/pcd_io.h>
# include <pcl/ModelCoefficients.h>
# include <pcl/point_types.h>
# include <pcl/segmentation/sac_segmentation.h>
#endif
using namespace std;

View File

@@ -20,13 +20,14 @@
* *
***************************************************************************/
#ifndef REEN_SEGMENTATION_H
#define REEN_SEGMENTATION_H
#include <Base/Vector3D.h>
#include <vector>
#include <list>
#include <vector>
#include <Base/Vector3D.h>
namespace Points {class PointKernel;}

View File

@@ -20,40 +20,39 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "SurfaceTriangulation.h"
#include <Base/Exception.h>
#include <Mod/Points/App/Points.h>
#include <Mod/Mesh/App/Mesh.h>
#include <Mod/Mesh/App/Core/Algorithm.h>
#include <Mod/Mesh/App/Core/Elements.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include <Base/Exception.h>
#include "SurfaceTriangulation.h"
// http://svn.pointclouds.org/pcl/tags/pcl-1.5.1/test/
#if defined(HAVE_PCL_SURFACE)
#include <pcl/pcl_config.h>
#include <pcl/point_types.h>
#include <pcl/features/normal_3d.h>
#include <pcl/surface/mls.h>
#include <pcl/point_traits.h>
#include <pcl/surface/gp3.h>
#include <pcl/surface/grid_projection.h>
#include <pcl/surface/poisson.h>
//#include <pcl/surface/convex_hull.h>
//#include <pcl/surface/concave_hull.h>
#include <pcl/surface/organized_fast_mesh.h>
#include <pcl/surface/marching_cubes_rbf.h>
#include <pcl/surface/marching_cubes_hoppe.h>
#include <pcl/surface/ear_clipping.h>
#include <pcl/common/common.h>
#include <pcl/common/io.h>
#include <boost/random.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
# include <boost/random.hpp>
# include <boost/math/special_functions/fpclassify.hpp>
# include <pcl/pcl_config.h>
# include <pcl/point_types.h>
# include <pcl/features/normal_3d.h>
# include <pcl/surface/mls.h>
# include <pcl/point_traits.h>
# include <pcl/surface/gp3.h>
# include <pcl/surface/grid_projection.h>
# include <pcl/surface/poisson.h>
# include <pcl/surface/organized_fast_mesh.h>
# include <pcl/surface/marching_cubes_rbf.h>
# include <pcl/surface/marching_cubes_hoppe.h>
# include <pcl/surface/ear_clipping.h>
# include <pcl/common/common.h>
# include <pcl/common/io.h>
#ifndef PCL_REVISION_VERSION
#define PCL_REVISION_VERSION 0
# define PCL_REVISION_VERSION 0
#endif
using namespace pcl;
@@ -765,4 +764,3 @@ void MeshConversion::convert(const pcl::PolygonMesh& pclMesh, Mesh::MeshObject&
}
#endif // HAVE_PCL_SURFACE

View File

@@ -20,13 +20,14 @@
* *
***************************************************************************/
#ifndef REEN_SURFACETRIANGULATION_H
#define REEN_SURFACETRIANGULATION_H
#include <Base/Vector3D.h>
#include <vector>
#include <Base/Vector3D.h>
namespace Points {class PointKernel;}
namespace Mesh {class MeshObject;}
namespace pcl {struct PolygonMesh;}