Part: use CMake to generate precompiled headers on all platforms

"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
 should be considered an optimization, not a requirement. In particular, do not explicitly include a
 precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
 generated precompile header on the compiler command line instead. This is more portable across
 the major compilers and is likely to be easier to maintain. It will also avoid warnings being
 generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
This commit is contained in:
Markus Reitböck
2025-09-21 22:53:51 +02:00
parent edd13d5e6d
commit 68114945fa
337 changed files with 425 additions and 781 deletions

View File

@@ -21,13 +21,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Interface_Static.hxx>
# include <IGESControl_Controller.hxx>
# include <STEPControl_Controller.hxx>
# include <Standard_Version.hxx>
#endif
#include <FCConfig.h>
#include <App/Application.h>
#include <Base/Console.h>

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRep_Builder.hxx>
# include <BRep_Tool.hxx>
# include <BRepAdaptor_Curve.hxx>
@@ -68,7 +66,7 @@
# include <TopoDS_Shell.hxx>
# include <TopoDS_Solid.hxx>
# include <TopTools_ListIteratorOfListOfShape.hxx>
#endif
# include <BRepFill_Generator.hxx>
#include <App/Application.h>

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeArcOfCircle.hxx>
# include <Geom_Circle.hxx>
# include <Geom_TrimmedCurve.hxx>
#endif
#include <Base/VectorPy.h>

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Geom_TrimmedCurve.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/VectorPy.h>

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeArcOfEllipse.hxx>
# include <Geom_Ellipse.hxx>
# include <Geom_TrimmedCurve.hxx>
#endif
#include "ArcOfEllipsePy.h"
#include "ArcOfEllipsePy.cpp"

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeArcOfHyperbola.hxx>
# include <Geom_Hyperbola.hxx>
# include <Geom_TrimmedCurve.hxx>
#endif
#include "ArcOfHyperbolaPy.h"
#include "ArcOfHyperbolaPy.cpp"

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeArcOfParabola.hxx>
# include <Geom_Parabola.hxx>
# include <Geom_TrimmedCurve.hxx>
#endif
#include "ArcOfParabolaPy.h"
#include "ArcOfParabolaPy.cpp"

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeArcOfCircle.hxx>
# include <GC_MakeArcOfEllipse.hxx>
# include <GC_MakeArcOfHyperbola.hxx>
@@ -30,7 +28,7 @@
# include <Geom_Ellipse.hxx>
# include <Geom_Hyperbola.hxx>
# include <Geom_Parabola.hxx>
#endif
#include <Base/VectorPy.h>

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Standard_Failure.hxx>
#endif
#include <App/DocumentObjectPy.h>
#include <Base/PlacementPy.h>

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include <Base/Console.h>
#include <Base/Tools.h>

View File

@@ -34,6 +34,8 @@
#include <Base/Exception.h>
#include <Base/Placement.h>
#include <Mod/Part/PartGlobal.h>
#include "Attacher.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "AttachExtensionPy.h"
#include "AttachExtensionPy.cpp"

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRep_Tool.hxx>
# include <BRepAdaptor_Curve.hxx>
# include <BRepAdaptor_Surface.hxx>
@@ -61,7 +59,6 @@
# include <TopoDS_Vertex.hxx>
# include <TopTools_HSequenceOfShape.hxx>
# include <GeomAbs_CurveType.hxx>
#endif
#include <App/Application.h>
#include <App/Document.h>

View File

@@ -37,6 +37,8 @@
#include <Base/Exception.h>
#include <Base/Placement.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,12 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
# include <TopoDS_Face.hxx>
#endif
#include <Base/PyWrapParseTupleAndKeywords.h>
#include <Base/VectorPy.h>

View File

@@ -22,11 +22,9 @@
**************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <algorithm>
#include <Precision.hxx>
#endif
#include "BRepMesh.h"
#include <Base/Tools.h>

View File

@@ -20,15 +20,15 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <memory>
# include <BRepOffsetAPI_MakeFilling.hxx>
# include <GeomAbs_Shape.hxx>
# include <gp_Pnt.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Face.hxx>
#endif
#include <Base/PyWrapParseTupleAndKeywords.h>
#include <Base/VectorPy.h>

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRep_Builder.hxx>
# include <BRepAdaptor_Curve.hxx>
# include <BRepBuilderAPI_MakeEdge.hxx>
@@ -40,7 +38,7 @@
# include <TopTools_ListIteratorOfListOfShape.hxx>
# include <TopTools_ListOfShape.hxx>
# include <TopTools_MapOfShape.hxx>
#endif
#include "BRepOffsetAPI_MakeOffsetFix.h"

View File

@@ -20,8 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <BRepOffsetAPI_MakePipeShell.hxx>
# include <gp_Ax2.hxx>
# include <gp_Dir.hxx>
@@ -29,7 +29,7 @@
# include <Standard_Version.hxx>
# include <TopoDS.hxx>
# include <TopTools_ListIteratorOfListOfShape.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/PyWrapParseTupleAndKeywords.h>

View File

@@ -27,13 +27,11 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeArcOfCircle.hxx>
# include <gp_Ax2.hxx>
# include <gp_Circ.hxx>
# include <gp_Pln.hxx>
#endif
#include "BSplineCurveBiArcs.h"
#include "Geometry.h"

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <cmath>
# include <Geom_BSplineCurve.hxx>
# include <GeomAPI_Interpolate.hxx>
@@ -36,7 +34,7 @@
# include <TColStd_Array1OfReal.hxx>
# include <TColStd_HArray1OfBoolean.hxx>
# include <TColStd_HArray1OfReal.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/PyWrapParseTupleAndKeywords.h>

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Geom_BSplineSurface.hxx>
# include <GeomAbs_Shape.hxx>
# include <GeomAPI_PointsToBSplineSurface.hxx>
@@ -31,7 +29,7 @@
# include <TColStd_Array1OfReal.hxx>
# include <TColStd_Array2OfReal.hxx>
# include <TColStd_Array1OfInteger.hxx>
#endif
# include <GeomFill_NSections.hxx>
#include <Base/GeometryPyCXX.h>

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BSplCLib.hxx>
# include <Geom_BezierCurve.hxx>
# include <gp_Pnt.hxx>
@@ -29,7 +27,7 @@
# include <math_Matrix.hxx>
# include <TColgp_Array1OfPnt.hxx>
# include <TColStd_Array1OfReal.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/VectorPy.h>

View File

@@ -20,14 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Geom_BezierSurface.hxx>
# include <TColgp_Array1OfPnt.hxx>
# include <TColgp_Array2OfPnt.hxx>
# include <TColStd_Array1OfReal.hxx>
# include <TColStd_Array2OfReal.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/VectorPy.h>

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include <App/Document.h>

View File

@@ -26,6 +26,8 @@
#include <App/PropertyStandard.h>
#include <App/OriginGroupExtension.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "BodyBase.h"
// inclusion of the generated files (generated out of ItemPy.xml)

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <sstream>
#endif
#include <Base/GeometryPyCXX.h>

View File

@@ -562,7 +562,6 @@ SET(Part_SRCS
ImportStep.h
Interface.cpp
Interface.h
PreCompiled.cpp
PreCompiled.h
Services.cpp
Services.h
@@ -598,9 +597,9 @@ SET(Part_SRCS
)
if(FREECAD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Part_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(Part PreCompiled.h PreCompiled.cpp PCH_SRCS)
target_precompile_headers(Part PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:"${CMAKE_CURRENT_LIST_DIR}/PreCompiled.h">
)
endif(FREECAD_USE_PCH)
# Suppress some very long Eigen3 warnings of older versions

View File

@@ -20,12 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <Standard_Failure.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
#endif
#include "ChFi2d/ChFi2d_AnaFilletAlgoPy.h"
#include "ChFi2d/ChFi2d_AnaFilletAlgoPy.cpp"

View File

@@ -20,12 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <Standard_Failure.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
#endif
#include "ChFi2d/ChFi2d_ChamferAPIPy.h"
#include "ChFi2d/ChFi2d_ChamferAPIPy.cpp"

View File

@@ -20,12 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <Standard_Failure.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
#endif
#include <Base/VectorPy.h>

View File

@@ -20,13 +20,13 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <Mod/Part/PartGlobal.h>
# include <gp_Pln.hxx>
# include <Standard_Failure.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
#endif
#include <Base/VectorPy.h>

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeCircle.hxx>
# include <Geom_Circle.hxx>
# include <gp_Circ.hxx>
#endif
#include <Base/PyWrapParseTupleAndKeywords.h>
#include <Base/VectorPy.h>

View File

@@ -20,13 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeConicalSurface.hxx>
# include <Geom_ConicalSurface.hxx>
# include <gp_Cone.hxx>
# include <Standard_Failure.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/PyWrapParseTupleAndKeywords.h>

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Geom_Conic.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/VectorPy.h>

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <algorithm>
# include <BRepAdaptor_Surface.hxx>
# include <Mod/Part/App/FCBRepAlgoAPI_Common.h>
@@ -41,7 +39,7 @@
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
# include <TopoDS_Wire.hxx>
#endif
#include "CrossSection.h"
#include "TopoShapeOpCode.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "CustomFeature.h"

View File

@@ -24,6 +24,8 @@
#ifndef PART_CUSTOMFEATURE_H
#define PART_CUSTOMFEATURE_H
#include <Mod/Part/PartGlobal.h>
#include <Mod/Part/App/PartFeature.h>
namespace Part

View File

@@ -20,13 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeCylindricalSurface.hxx>
# include <Geom_Circle.hxx>
# include <Geom_CylindricalSurface.hxx>
# include <gp_Cylinder.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/PyWrapParseTupleAndKeywords.h>

View File

@@ -21,7 +21,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "DatumFeature.h"
#include "OCCError.h"

View File

@@ -24,6 +24,8 @@
#ifndef PART_DATUMFEATURE_H
#define PART_DATUMFEATURE_H
#include <Mod/Part/PartGlobal.h>
#include "AttachExtension.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "Datums.h"

View File

@@ -25,6 +25,8 @@
#include <App/Datums.h>
#include <Mod/Part/PartGlobal.h>
#include "AttachExtension.h"
namespace Part

View File

@@ -20,11 +20,9 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GC_MakeEllipse.hxx>
# include <Geom_Ellipse.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/PyWrapParseTupleAndKeywords.h>

View File

@@ -20,8 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <FCConfig.h>
# include <Mod/Part/App/FCBRepAlgoAPI_Cut.h>
# include <BRepBuilderAPI_MakeFace.hxx>
# include <BRepBuilderAPI_MakeWire.hxx>
@@ -37,7 +37,7 @@
# include <Precision.hxx>
# include <TopExp_Explorer.hxx>
# include <TopoDS.hxx>
#endif
#include <Base/Console.h>
#include <Base/Exception.h>

View File

@@ -25,11 +25,10 @@
* Project (www.freetype.org). All rights reserved. *
***************************************************************************/
#include "PreCompiled.h"
#include <FCConfig.h>
#ifdef FCUseFreeType
#ifndef _PreComp_
# include <iostream>
# include <fstream>
# include <cstdio>
@@ -55,7 +54,6 @@
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
# include <TopoDS_Wire.hxx>
#endif // _PreComp
#include <Base/Console.h>
#include <Base/FileInfo.h>

View File

@@ -20,15 +20,13 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepBuilderAPI_MakeFace.hxx>
# include <BRepBuilderAPI_MakeWire.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Builder.hxx>
# include <TopoDS_Iterator.hxx>
# include <QtGlobal>
#endif
#include <memory>

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRep_Builder.hxx>
# include <BRep_Tool.hxx>
# include <BRepAdaptor_Surface.hxx>
@@ -38,7 +36,6 @@
# include <TopExp_Explorer.hxx>
# include <QtGlobal>
# include <TopExp.hxx>
#endif
#include "FaceMakerBullseye.h"
#include "FaceMakerCheese.h"

View File

@@ -29,6 +29,7 @@
#include <gp_Pln.hxx>
#include <Bnd_Box.hxx>
#include <Mod/Part/PartGlobal.h>
namespace Part
{

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <algorithm>
# include <Bnd_Box.hxx>
# include <BRep_Builder.hxx>
@@ -43,7 +41,7 @@
# include <TopTools_IndexedMapOfShape.hxx>
# include <TopTools_HSequenceOfShape.hxx>
# include <QtGlobal>
#endif
#include "FaceMakerCheese.h"

View File

@@ -26,6 +26,8 @@
#include "FaceMaker.h"
#include <list>
#include <Mod/Part/PartGlobal.h>
namespace Part
{

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepFilletAPI_MakeChamfer.hxx>
# include <Precision.hxx>
# include <TopExp.hxx>
@@ -29,7 +27,7 @@
# include <TopoDS_Edge.hxx>
# include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "FeatureChamfer.h"
#include "TopoShapeOpCode.h"

View File

@@ -25,6 +25,7 @@
#include "PartFeature.h"
#include <Mod/Part/PartGlobal.h>
namespace Part
{

View File

@@ -20,14 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRep_Builder.hxx>
# include <Standard_Failure.hxx>
# include <TopoDS_Compound.hxx>
# include <TopExp.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "FeatureCompound.h"

View File

@@ -24,6 +24,9 @@
#define PART_FEATURECOMPOUND_H
#include <App/PropertyLinks.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,8 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <FCConfig.h>
# include <BRepAdaptor_Curve.hxx>
# include <BRepAdaptor_Surface.hxx>
# include <BRepBuilderAPI_Copy.hxx>
@@ -35,7 +35,7 @@
# include <TopExp_Explorer.hxx>
# include <TopoDS.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include <App/Document.h>
#include <Base/Exception.h>

View File

@@ -25,8 +25,10 @@
#include <App/PropertyStandard.h>
#include <App/PropertyUnits.h>
#include <App/Document.h>
#include <Mod/Part/PartGlobal.h>
#include "FaceMakerCheese.h"
#include "PartFeature.h"
#include "ExtrusionHelper.h"

View File

@@ -20,11 +20,9 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepBuilderAPI_Copy.hxx>
# include <TopoDS.hxx>
#endif
#include "FeatureFace.h"
#include "FaceMaker.h"

View File

@@ -23,6 +23,8 @@
#ifndef PART_FACE_H
#define PART_FACE_H
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,8 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <FCConfig.h>
# include <BRepFilletAPI_MakeFillet.hxx>
# include <Precision.hxx>
# include <TopExp.hxx>
@@ -29,7 +29,7 @@
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include <Base/Exception.h>

View File

@@ -23,6 +23,8 @@
#ifndef PART_FEATUREFILLET_H
#define PART_FEATUREFILLET_H
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "FeatureGeometrySet.h"

View File

@@ -23,6 +23,8 @@
#ifndef PART_FeatureGeometrySet_H
#define PART_FeatureGeometrySet_H
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"
#include "PropertyGeometryList.h"

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepBuilderAPI_Transform.hxx>
# include <BRep_Tool.hxx>
# include <gp_Ax2.hxx>
@@ -36,7 +34,7 @@
# include <TopoDS.hxx>
# include <TopoDS_Face.hxx>
# include <TopExp_Explorer.hxx>
#endif
#include <Mod/Part/App/PrimitiveFeature.h>
#include <App/Link.h>

View File

@@ -25,6 +25,8 @@
#include <App/PropertyStandard.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Precision.hxx>
#endif
#include <App/Link.h>

View File

@@ -25,6 +25,8 @@
#include <App/PropertyStandard.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,14 +20,13 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <FCConfig.h>
# include <memory>
# include <Mod/Part/App/FCBRepAlgoAPI_BooleanOperation.h>
# include <BRepCheck_Analyzer.hxx>
# include <Standard_Failure.hxx>
#endif
#include <App/Application.h>
#include <Base/Exception.h>

View File

@@ -25,6 +25,9 @@
#define PART_FEATUREPARTBOOLEAN_H
#include <App/PropertyLinks.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"
class FCBRepAlgoAPI_BooleanOperation;

View File

@@ -20,11 +20,9 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepPrimAPI_MakeBox.hxx>
# include <Precision.hxx>
#endif
#include <Base/Reader.h>

View File

@@ -25,6 +25,8 @@
#include <App/PropertyStandard.h>
#include <Mod/Part/PartGlobal.h>
#include "PrimitiveFeature.h"

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepBuilderAPI_MakeEdge.hxx>
# include <gp_Circ.hxx>
# include <TopoDS_Edge.hxx>
#endif
#include <Base/Tools.h>

View File

@@ -25,8 +25,9 @@
#include <App/PropertyUnits.h>
#include "PrimitiveFeature.h"
#include <Mod/Part/PartGlobal.h>
#include "PrimitiveFeature.h"
namespace Part
{

View File

@@ -20,15 +20,13 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Mod/Part/App/FCBRepAlgoAPI_Common.h>
# include <BRepCheck_Analyzer.hxx>
# include <Standard_Failure.hxx>
# include <TopExp.hxx>
# include <TopoDS_Iterator.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "FeaturePartCommon.h"
#include "TopoShapeOpCode.h"

View File

@@ -23,6 +23,8 @@
#ifndef PART_FEATUREPARTCOMMON_H
#define PART_FEATUREPARTCOMMON_H
#include <Mod/Part/PartGlobal.h>
#include "FeaturePartBoolean.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include <Base/Console.h>

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Mod/Part/App/FCBRepAlgoAPI_Cut.h>
#endif
#include "FeaturePartCut.h"
#include "TopoShapeOpCode.h"

View File

@@ -20,15 +20,13 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Mod/Part/App/FCBRepAlgoAPI_Fuse.h>
# include <BRepCheck_Analyzer.hxx>
# include <Standard_Failure.hxx>
# include <TopoDS_Iterator.hxx>
# include <TopExp.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "FeaturePartFuse.h"
#include "TopoShape.h"

View File

@@ -23,6 +23,8 @@
#ifndef PART_FEATUREPARTFUSE_H
#define PART_FEATUREPARTFUSE_H
#include <Mod/Part/PartGlobal.h>
#include "FeaturePartBoolean.h"

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <fcntl.h>
#endif
#include <Base/Console.h>
#include <Base/FileInfo.h>

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <fcntl.h>
#endif
#include <Base/Console.h>
#include <Base/FileInfo.h>

View File

@@ -20,10 +20,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <fcntl.h>
#endif
#include <Base/Console.h>
#include <Base/FileInfo.h>

View File

@@ -20,12 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepBuilderAPI_MakePolygon.hxx>
# include <gp_Pnt.hxx>
# include <TopoDS_Wire.hxx>
#endif
#include "FeaturePartPolygon.h"

View File

@@ -20,11 +20,9 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Mod/Part/App/FCBRepAlgoAPI_Section.h>
# include <Standard_Version.hxx>
#endif
#include "FeaturePartSection.h"
#include "TopoShapeOpCode.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "FeaturePartSpline.h"

View File

@@ -23,6 +23,8 @@
#ifndef PART_FEATUREPARTSPLINE_H
#define PART_FEATUREPARTSPLINE_H
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -22,8 +22,6 @@
* *
**************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <BRep_Tool.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
@@ -43,7 +41,7 @@
#include <TopoDS.hxx>
#include <TopoDS_Builder.hxx>
#include <sstream>
#endif
#include "FeatureProjectOnSurface.h"
#include <Base/Exception.h>

View File

@@ -29,6 +29,7 @@
#include <App/PropertyLinks.h>
#include <App/PropertyUnits.h>
#include <Mod/Part/PartGlobal.h>
namespace Part
{

View File

@@ -20,15 +20,13 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepAdaptor_Curve.hxx>
# include <gp_Ax1.hxx>
# include <gp_Circ.hxx>
# include <gp_Lin.hxx>
# include <TopExp_Explorer.hxx>
# include <TopoDS.hxx>
#endif
#include <App/Document.h>
#include <Base/Tools.h>

View File

@@ -26,6 +26,8 @@
#include <App/PropertyStandard.h>
#include <Base/Vector3D.h>
#include <Mod/Part/PartGlobal.h>
#include "PartFeature.h"

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <BRepBuilderAPI_GTransform.hxx>
#include <BRepBuilderAPI_Transform.hxx>
#include <BRepBuilderAPI_Copy.hxx>
@@ -29,7 +27,7 @@
#include <gp_GTrsf.hxx>
#include <gp_Trsf.hxx>
#include <Precision.hxx>
#endif
#include <Base/Exception.h>

View File

@@ -26,6 +26,8 @@
#include <App/PropertyStandard.h>
#include <App/PropertyUnits.h>
#include <Mod/Part/PartGlobal.h>
#include "FaceMakerCheese.h"
#include "PartFeature.h"

View File

@@ -22,7 +22,6 @@
* *
**************************************************************************/
#include "PreCompiled.h"
#include <FuzzyHelper.h>
using namespace Part;

View File

@@ -20,13 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GCE2d_MakeArcOfCircle.hxx>
# include <Geom2d_Circle.hxx>
# include <Geom2d_TrimmedCurve.hxx>
# include <gp_Circ2d.hxx>
#endif
#include <Base/GeometryPyCXX.h>

View File

@@ -20,11 +20,9 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Geom2d_Conic.hxx>
# include <Geom2d_TrimmedCurve.hxx>
#endif
#include <Base/GeometryPyCXX.h>

View File

@@ -20,13 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GCE2d_MakeArcOfEllipse.hxx>
# include <Geom2d_Ellipse.hxx>
# include <Geom2d_TrimmedCurve.hxx>
# include <gp_Elips2d.hxx>
#endif
#include "Geom2d/ArcOfEllipse2dPy.h"
#include "Geom2d/ArcOfEllipse2dPy.cpp"

View File

@@ -20,13 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GCE2d_MakeArcOfHyperbola.hxx>
# include <Geom2d_Hyperbola.hxx>
# include <Geom2d_TrimmedCurve.hxx>
# include <gp_Hypr2d.hxx>
#endif
#include "Geom2d/ArcOfHyperbola2dPy.h"
#include "Geom2d/ArcOfHyperbola2dPy.cpp"

View File

@@ -20,13 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <GCE2d_MakeArcOfParabola.hxx>
# include <Geom2d_Parabola.hxx>
# include <Geom2d_TrimmedCurve.hxx>
# include <gp_Parab2d.hxx>
#endif
#include "Geom2d/ArcOfParabola2dPy.h"
#include "Geom2d/ArcOfParabola2dPy.cpp"

View File

@@ -20,8 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Geom2d_BSplineCurve.hxx>
# include <Geom2dAPI_PointsToBSpline.hxx>
# include <Geom2dAPI_Interpolate.hxx>
@@ -35,7 +33,7 @@
# include <TColStd_Array1OfReal.hxx>
# include <TColStd_HArray1OfBoolean.hxx>
# include <TColStd_HArray1OfReal.hxx>
#endif
#include <Base/GeometryPyCXX.h>
#include <Base/PyWrapParseTupleAndKeywords.h>

Some files were not shown because too many files have changed in this diff Show More