MantisBT - Community
View Issue Details
0024439Community[OCCT] OCCT:Modeling Datapublic2013-12-05 12:052017-07-28 12:56
Laszlo Kudela 
ifv 
lowminor 
newopen 
ALL
[OCCT] 6.6.0 
 
Not required
0024439: Change the messages that Geom_BSplineSurface throws on bad construction
The CheckSurfaceData function in Geom_BSplineSurface.cxx checks the validity of the B-Spline surface with given knots, control points, etc. If something goes wrong, the function throws (or "raises"), but the message is not really verbose: in every case, the message string of the thrown Standard_Failure is "Geom_BSplineSurface".

It would be nice if someone could fix this, e.g, if the uKnots length and uMultiplicities length is different, throw something like: "Geom_BSplineSurface: number of knots and multiplicities does not match!".

This way, one would not have to debug into it anymore. Catching the expression and couting the message string would do the job.
Easy to reproduce: call the constructor of Geom_BSplineSurface with any configuration of invalid data, and catch the exception.
No tags attached.
Issue History
2013-12-05 12:05Laszlo KudelaNew Issue
2013-12-05 12:05Laszlo KudelaAssigned To => ifv
2017-07-28 12:56apvTest case number => Not required

There are no notes attached to this issue.