Sketcher: PCH
This commit is contained in:
committed by
abdullahtahiriyo
parent
7b0a501c0a
commit
893d7afccc
@@ -24,13 +24,14 @@
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <cmath>
|
||||
# include <QDateTime>
|
||||
#endif
|
||||
|
||||
#include <Base/Writer.h>
|
||||
#include <Base/Reader.h>
|
||||
#include <Base/Tools.h>
|
||||
#include <App/Property.h>
|
||||
#include <QDateTime>
|
||||
|
||||
|
||||
#include "Constraint.h"
|
||||
#include "ConstraintPy.h"
|
||||
|
||||
@@ -21,7 +21,11 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include <sstream>
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <sstream>
|
||||
#endif
|
||||
|
||||
#include "Constraint.h"
|
||||
#include "ConstraintPy.h"
|
||||
#include "ConstraintPy.cpp"
|
||||
|
||||
@@ -52,11 +52,36 @@
|
||||
#include <set>
|
||||
#include <bitset>
|
||||
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
// QT
|
||||
#include <QDateTime>
|
||||
|
||||
// Boost
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
// Opencascade
|
||||
#include <Mod/Part/App/OpenCascadeAll.h>
|
||||
|
||||
// Other needed opencascade
|
||||
# include <ShapeFix_Wire.hxx>
|
||||
# include <BRepOffsetAPI_NormalProjection.hxx>
|
||||
# include <GeomConvert_BSplineCurveKnotSplitting.hxx>
|
||||
# include <TopoDS.hxx>
|
||||
# include <TopoDS_Edge.hxx>
|
||||
# include <BRepBuilderAPI_MakeWire.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
|
||||
@@ -28,6 +28,11 @@
|
||||
# include <ShapeFix_Wire.hxx>
|
||||
# include <TopoDS_Compound.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
# include <TopoDS.hxx>
|
||||
# include <TopoDS_Edge.hxx>
|
||||
# include <BRepBuilderAPI_MakeWire.hxx>
|
||||
# include <cmath>
|
||||
# include <iostream>
|
||||
#endif
|
||||
|
||||
#include <Base/Writer.h>
|
||||
@@ -50,15 +55,8 @@
|
||||
#include <Mod/Part/App/LineSegmentPy.h>
|
||||
#include <Mod/Part/App/BSplineCurvePy.h>
|
||||
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <BRepBuilderAPI_MakeWire.hxx>
|
||||
|
||||
#include "Sketch.h"
|
||||
#include "Constraint.h"
|
||||
#include <cmath>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace Sketcher;
|
||||
using namespace Base;
|
||||
|
||||
@@ -26,20 +26,20 @@
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <Standard_math.hxx>
|
||||
# include <BRep_Tool.hxx>
|
||||
# include <gp_Pnt.hxx>
|
||||
# include <Precision.hxx>
|
||||
# include <TopTools_IndexedMapOfShape.hxx>
|
||||
# include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
|
||||
# include <TopExp.hxx>
|
||||
# include <TopExp_Explorer.hxx>
|
||||
# include <TopoDS.hxx>
|
||||
# include <TopoDS_Edge.hxx>
|
||||
# include <TopoDS_Vertex.hxx>
|
||||
# include <algorithm>
|
||||
# include <cmath>
|
||||
#endif
|
||||
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
#include <algorithm>
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -47,8 +47,6 @@
|
||||
#include <Mod/Sketcher/App/SketchObject.h>
|
||||
#include <Mod/Part/App/Geometry.h>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "SketchAnalysis.h"
|
||||
|
||||
using namespace Sketcher;
|
||||
|
||||
@@ -58,11 +58,10 @@
|
||||
# include <Standard_Version.hxx>
|
||||
# include <cmath>
|
||||
# include <vector>
|
||||
# include <boost/bind.hpp>
|
||||
//# include <QtGlobal>
|
||||
#endif
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
#include <App/Part.h>
|
||||
|
||||
@@ -24,10 +24,9 @@
|
||||
#ifndef _PreComp_
|
||||
# include <sstream>
|
||||
# include <Geom_TrimmedCurve.hxx>
|
||||
# include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <Mod/Sketcher/App/SketchObject.h>
|
||||
#include <Mod/Part/App/LinePy.h>
|
||||
#include <Mod/Part/App/Geometry.h>
|
||||
|
||||
@@ -48,7 +48,7 @@ std::string SketchPy::representation(void) const
|
||||
|
||||
PyObject *SketchPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper
|
||||
{
|
||||
// create a new instance of SketchPy and the Twin object
|
||||
// create a new instance of SketchPy and the Twin object
|
||||
return new SketchPy(new Sketch());
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ PyObject *SketchPy::getCustomAttributes(const char* /*attr*/) const
|
||||
|
||||
int SketchPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
|
||||
{
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user