+ check input of approxSurface for obviously wrong values
This commit is contained in:
parent
b1ea3f70da
commit
977411b4cc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user