mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0026937: Eliminate NO_CXX_EXCEPTION macro support
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
This commit is contained in:
@@ -123,7 +123,7 @@ void BRepProj_Projection::BuildSection (const TopoDS_Shape& theShape,
|
||||
aShape = C;
|
||||
}
|
||||
if ( aShape.IsNull() )
|
||||
Standard_ConstructionError::Raise(__FILE__": target shape has no faces");
|
||||
throw Standard_ConstructionError(__FILE__": target shape has no faces");
|
||||
|
||||
// build section computing pcurves on the shape
|
||||
// BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
|
||||
@@ -178,7 +178,7 @@ BRepProj_Projection::BRepProj_Projection(const TopoDS_Shape& Wire,
|
||||
Standard_NullObject_Raise_if((Wire.IsNull() || Shape.IsNull()),__FILE__": null input shape");
|
||||
if (Wire.ShapeType() != TopAbs_EDGE &&
|
||||
Wire.ShapeType() != TopAbs_WIRE )
|
||||
Standard_ConstructionError::Raise(__FILE__": projected shape is neither wire nor edge");
|
||||
throw Standard_ConstructionError(__FILE__": projected shape is neither wire nor edge");
|
||||
|
||||
// compute the "length" of the cylindrical surface to build
|
||||
Standard_Real mdis = DistanceIn(Wire, Shape);
|
||||
@@ -214,7 +214,7 @@ BRepProj_Projection::BRepProj_Projection (const TopoDS_Shape& Wire,
|
||||
Standard_NullObject_Raise_if((Wire.IsNull() || Shape.IsNull()),__FILE__": null input shape");
|
||||
if (Wire.ShapeType() != TopAbs_EDGE &&
|
||||
Wire.ShapeType() != TopAbs_WIRE )
|
||||
Standard_ConstructionError::Raise(__FILE__": projected shape is neither wire nor edge");
|
||||
throw Standard_ConstructionError(__FILE__": projected shape is neither wire nor edge");
|
||||
|
||||
// if Wire is only an edge, transform it into a Wire
|
||||
TopoDS_Wire aWire;
|
||||
@@ -240,7 +240,7 @@ BRepProj_Projection::BRepProj_Projection (const TopoDS_Shape& Wire,
|
||||
// compute the ratio of the scale transformation
|
||||
Standard_Real Scale = PC.Distance(P);
|
||||
if ( Abs (Scale) < Precision::Confusion() )
|
||||
Standard_ConstructionError::Raise("Projection");
|
||||
throw Standard_ConstructionError("Projection");
|
||||
Scale = 1. + mdis / Scale;
|
||||
|
||||
// move the base of the conical surface by scaling it with ratio Scale
|
||||
|
Reference in New Issue
Block a user