Merge pull request #460 from realthunder/PathArea

Added Path.Area and Path::FeatureArea
This commit is contained in:
wwmayer
2017-02-04 11:36:21 +01:00
committed by GitHub
43 changed files with 7871 additions and 218 deletions

View File

@@ -147,7 +147,7 @@ struct EdgePoints {
TopoDS_Edge edge;
};
static std::list<TopoDS_Edge> sort_Edges(double tol3d, std::list<TopoDS_Edge>& edges)
PartExport std::list<TopoDS_Edge> sort_Edges(double tol3d, std::list<TopoDS_Edge>& edges)
{
tol3d = tol3d * tol3d;
std::list<EdgePoints> edge_points;

View File

@@ -105,7 +105,9 @@ PyObject* Curve2dPy::reverse(PyObject * args)
return 0;
}
namespace Part {
extern Py::Object shape2pyshape(const TopoDS_Shape &shape);
}
PyObject* Curve2dPy::toShape(PyObject *args)
{

View File

@@ -157,8 +157,9 @@ int TopoShapePy::PyInit(PyObject* args, PyObject*)
return 0;
}
namespace Part {
//common code.. maybe put somewhere else?
Py::Object shape2pyshape(const TopoDS_Shape &shape)
PartExport Py::Object shape2pyshape(const TopoDS_Shape &shape)
{
PyObject* ret = 0;
if (!shape.IsNull()) {
@@ -204,6 +205,7 @@ Py::Object shape2pyshape(const TopoDS_Shape &shape)
return Py::asObject(ret);
}
} //namespace Part
PyObject* TopoShapePy::copy(PyObject *args)
{