mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027775: Different behavior of GeomFill_BSplineCurves algorithm in DEBUG and RELEASE mode
Throw an exception in case of incorrect input data.
This commit is contained in:
@@ -285,10 +285,9 @@ void GeomFill_BSplineCurves::Init
|
||||
Standard_Integer NbVPoles = SetSameDistribution(CC2,CC4);
|
||||
|
||||
if(Type == GeomFill_CoonsStyle) {
|
||||
Standard_ConstructionError_Raise_if
|
||||
(NbUPoles < 4 || NbVPoles < 4, " GeomFill_BSplineCurves: invalid filling style");
|
||||
if(NbUPoles < 4 || NbVPoles < 4)
|
||||
Standard_ConstructionError::Raise("GeomFill_BSplineCurves: invalid filling style");
|
||||
}
|
||||
|
||||
|
||||
TColgp_Array1OfPnt P1(1,NbUPoles);
|
||||
TColgp_Array1OfPnt P2(1,NbVPoles);
|
||||
|
Reference in New Issue
Block a user