Curve3d = GeomH3d;
}
else {
- Standard_NotImplemented::Raise();
+ throw Standard_NotImplemented();
}
return Curve3d;
const Standard_Real RequestedLast,
Handle(Geom2d_Curve)& NewCurvePtr)
{
- if(CurvePtr.IsNull()) Standard_Failure::Raise();
+ if(CurvePtr.IsNull()) throw Standard_Failure();
if (Abs(LastOnCurve - RequestedLast) <= Tolerance &&
Abs(FirstOnCurve - RequestedFirst) <= Tolerance)
{
// Interpolation des contraintes
math_Matrix Mat(1, 4, 1, 4);
if (!PLib::HermiteCoefficients(0., 1., 1, 1, Mat))
- Standard_ConstructionError::Raise();
+ throw Standard_ConstructionError();
for (jj=1; jj<=4; jj++) {
gp_XYZ aux(0.,0.,0.);
}
if (aDef->NbPoles() != aIn->NbPoles())
- Standard_ConstructionError::Raise("Inconsistent poles's number");
+ throw Standard_ConstructionError("Inconsistent poles's number");
for (ii=1; ii<=aDef->NbPoles(); ii++) {
P = aIn->Pole(ii);
// Concatenation
Ok = Concat.Add(Bezier, Tol, After);
- if (!Ok) Standard_ConstructionError::Raise("ExtendCurveToPoint");
+ if (!Ok) throw Standard_ConstructionError("ExtendCurveToPoint");
Curve = Concat.BSplineCurve();
}
NewDenominator,
status);
if (status!=0)
- Standard_ConstructionError::Raise("GeomLib Multiplication Error") ;
+ throw Standard_ConstructionError("GeomLib Multiplication Error") ;
for (i = 1 ; i <= new_num_u_poles ; i++) {
for (j = 1 ; j <= new_num_v_poles ; j++) {
for (k = 1 ; k <= 3 ; k++) {