Merge pull request #460 from realthunder/PathArea
Added Path.Area and Path::FeatureArea
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user