make computation of the length of an edge consistent to the computation of a (limited) curve

This commit is contained in:
wmayer
2017-09-15 19:29:44 +02:00
parent c08f2efb63
commit f1b9e751c8

View File

@@ -708,7 +708,7 @@ Py::Float TopoShapeEdgePy::getLength(void) const
{
const TopoDS_Edge& e = TopoDS::Edge(getTopoShapePtr()->getShape());
BRepAdaptor_Curve adapt(e);
return Py::Float(GCPnts_AbscissaPoint::Length(adapt));
return Py::Float(GCPnts_AbscissaPoint::Length(adapt, Precision::Confusion()));
}
#include <App/Application.h>