+ check input of approxSurface for obviously wrong values

This commit is contained in:
wmayer 2015-10-25 12:46:02 +01:00
parent b1ea3f70da
commit 977411b4cc

View File

@ -118,6 +118,9 @@ private:
try {
Py::Sequence l(o);
TColgp_Array1OfPnt clPoints(0, l.size()-1);
if (clPoints.Length() < uPoles * vPoles) {
throw Py::ValueError("Too less data points for the specified number of poles");
}
int index=0;
for (Py::Sequence::iterator it = l.begin(); it != l.end(); ++it) {