+ port to OCC 6.5.2
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5318 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
3888e949f4
commit
52d65e2085
|
@ -73,6 +73,7 @@
|
|||
# include <TColStd_Array1OfReal.hxx>
|
||||
# include <TColStd_Array1OfInteger.hxx>
|
||||
# include <Precision.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
#endif
|
||||
|
||||
#include <BRepOffsetAPI_ThruSections.hxx>
|
||||
|
@ -492,7 +493,11 @@ static PyObject * makePlane(PyObject *self, PyObject *args)
|
|||
d.SetCoord(vec.x, vec.y, vec.z);
|
||||
}
|
||||
Handle_Geom_Plane aPlane = new Geom_Plane(p, d);
|
||||
BRepBuilderAPI_MakeFace Face(aPlane, 0.0, length, 0.0, width);
|
||||
BRepBuilderAPI_MakeFace Face(aPlane, 0.0, length, 0.0, width
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
return new TopoShapeFacePy(new TopoShape((Face.Face())));
|
||||
}
|
||||
catch (Standard_DomainError) {
|
||||
|
|
|
@ -66,6 +66,7 @@
|
|||
# include <gp_Sphere.hxx>
|
||||
# include <gp_Torus.hxx>
|
||||
# include <Standard_Real.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
# include <TColgp_Array1OfPnt.hxx>
|
||||
# include <TColgp_Array2OfPnt.hxx>
|
||||
# include <TColStd_Array1OfReal.hxx>
|
||||
|
@ -1252,7 +1253,11 @@ TopoDS_Shape GeomSurface::toShape() const
|
|||
Handle_Geom_Surface s = Handle_Geom_Surface::DownCast(handle());
|
||||
Standard_Real u1,u2,v1,v2;
|
||||
s->Bounds(u1,u2,v1,v2);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(s, u1, u2, v1, v2);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(s, u1, u2, v1, v2
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
return mkBuilder.Shape();
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
# include <GeomLProp_SLProps.hxx>
|
||||
# include <Precision.hxx>
|
||||
# include <Standard_Failure.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
# include <ShapeAnalysis_Surface.hxx>
|
||||
#endif
|
||||
|
||||
|
@ -79,7 +80,11 @@ PyObject* GeometrySurfacePy::toShape(PyObject *args)
|
|||
s->Bounds(u1,u2,v1,v2);
|
||||
if (!PyArg_ParseTuple(args, "|dddd", &u1,&u2,&v1,&v2))
|
||||
return 0;
|
||||
BRepBuilderAPI_MakeFace mkBuilder(s, u1, u2, v1, v2);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(s, u1, u2, v1, v2
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
TopoDS_Shape sh = mkBuilder.Shape();
|
||||
return new TopoShapeFacePy(new TopoShape(sh));
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
# include <TopoDS.hxx>
|
||||
# include <TopoDS_Solid.hxx>
|
||||
# include <TopoDS_Vertex.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -255,7 +256,11 @@ App::DocumentObjectExecReturn *Plane::execute(void)
|
|||
gp_Pnt pnt(0.0,0.0,0.0);
|
||||
gp_Dir dir(0.0,0.0,1.0);
|
||||
Handle_Geom_Plane aPlane = new Geom_Plane(pnt, dir);
|
||||
BRepBuilderAPI_MakeFace mkFace(aPlane, 0.0, L, 0.0, W);
|
||||
BRepBuilderAPI_MakeFace mkFace(aPlane, 0.0, L, 0.0, W
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
|
||||
const char *error=0;
|
||||
switch (mkFace.Error())
|
||||
|
|
|
@ -133,6 +133,7 @@
|
|||
# include <ShapeFix_Solid.hxx>
|
||||
# include <ShapeUpgrade_ShellSewing.hxx>
|
||||
# include <ShapeUpgrade_RemoveInternalWires.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
#endif
|
||||
# include <Poly_Polygon3D.hxx>
|
||||
# include <Poly_PolygonOnTriangulation.hxx>
|
||||
|
@ -1338,7 +1339,11 @@ TopoDS_Shape TopoShape::makeTube(double radius, double tol) const
|
|||
double u1,u2,v1,v2;
|
||||
surf->Bounds(u1,u2,v1,v2);
|
||||
|
||||
BRepBuilderAPI_MakeFace mkBuilder(surf, umin, umax, v1, v2);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(surf, umin, umax, v1, v2
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
return mkBuilder.Face();
|
||||
}
|
||||
|
||||
|
@ -1391,7 +1396,11 @@ TopoDS_Shape TopoShape::makeTube() const
|
|||
|
||||
Standard_Real u1,u2,v1,v2;
|
||||
mySurface->Bounds(u1,u2,v1,v2);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(mySurface, u1, u2, v1, v2);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(mySurface, u1, u2, v1, v2
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
return mkBuilder.Shape();
|
||||
}
|
||||
|
||||
|
@ -1443,7 +1452,11 @@ TopoDS_Shape TopoShape::makeSweep(const TopoDS_Shape& profile, double tol, int f
|
|||
mkSweep.Perform(tol, Standard_False, GeomAbs_C1, BSplCLib::MaxDegree(), 1000);
|
||||
|
||||
const Handle_Geom_Surface& surf = mkSweep.Surface();
|
||||
BRepBuilderAPI_MakeFace mkBuilder(surf, umin, umax, vmin, vmax);
|
||||
BRepBuilderAPI_MakeFace mkBuilder(surf, umin, umax, vmin, vmax
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
return mkBuilder.Face();
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
# include <gp_Cone.hxx>
|
||||
# include <gp_Sphere.hxx>
|
||||
# include <gp_Torus.hxx>
|
||||
# include <Standard_Version.hxx>
|
||||
#endif
|
||||
|
||||
#include <BRepTopAdaptor_FClass2d.hxx>
|
||||
|
@ -135,7 +136,11 @@ int TopoShapeFacePy::PyInit(PyObject* args, PyObject* /*kwd*/)
|
|||
return -1;
|
||||
}
|
||||
|
||||
BRepBuilderAPI_MakeFace mkFace(S);
|
||||
BRepBuilderAPI_MakeFace mkFace(S
|
||||
#if OCC_VERSION_HEX >= 0x060502
|
||||
, Precision::Confusion()
|
||||
#endif
|
||||
);
|
||||
if (bound) {
|
||||
Py::List list(bound);
|
||||
for (Py::List::iterator it = list.begin(); it != list.end(); ++it) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user