1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +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:
ski 2017-02-02 16:35:21 +03:00 committed by apn
parent 0c63f2f8b9
commit 9775fa6110
1146 changed files with 4860 additions and 6183 deletions

View File

@ -752,7 +752,7 @@ In order to actually convert signals to exceptions, macro *OCC_CATCH_SIGNALS* ne
@subsubsection occt_fcug_2_4_4 Implementation on various platforms.
The exception handling mechanism in Open CASCADE Technology is implemented in different ways depending on the preprocessor macros *NO_CXX_EXCEPTIONS* and *OCC_CONVERT_SIGNALS*, which shall be consistently defined by compilation procedures for both Open CASCADE Technology and user applications:
The exception handling mechanism in Open CASCADE Technology is implemented in different ways depending on the preprocessor macro *OCC_CONVERT_SIGNALS*, which shall be consistently defined by compilation procedures for both Open CASCADE Technology and user applications:
1. On Windows, these macros are not defined by default, and normal C++ exceptions are used in all cases, including throwing from signal handler. Thus the behavior is as expected in C++.
@ -763,18 +763,7 @@ The exception handling mechanism in Open CASCADE Technology is implemented in d
* macro *OCC_CATCH_SIGNALS* is necessary (besides call to *OSD::SetSignal()* described above) for conversion of signals into exceptions;
* the destructors for automatic C++ objects created in the code after that macro and till the place where signal is raised will not be called in case of signal, since no C++ stack unwinding is performed by long jump.
3. On Linux Open CASCADE Technology can also be compiled in compatibility mode. In that case macro *NO_CXX_EXCEPTIONS* is defined and the C++ exceptions are simulated with C long jumps. As a consequence, the behavior is slightly different from that expected in the C++ standard.
While exception handling with *NO_CXX_EXCEPTIONS* is very similar to C++ by syntax, it has a number of peculiarities that should be taken into account:
* try and catch are actually macros defined in the file *Standard_ErrorHandler.hxx*. Therefore, including this file is necessary for handling OCCT exceptions;
* due to being a macro, catch cannot contain a declaration of the exception object after its type; only type is allowed in the catch statement. Use method *Standard_Failure::Caught()* to access an exception object;
* catch macro may conflict with some STL classes that might use catch(...) statements in their header files. So STL headers should not be included after *Standard_ErrorHandler.hxx*;
* Open CASCADE Technology try/catch block will not handle normal C++ exceptions; however this can be achieved using special workarounds;
* the try macro defines a C++ object that holds an entry point in the exception handler. Therefore if exception is raised by code located immediately after the try/catch block but on the same nesting level as *try*, it may be handled by that *catch*. This may lead to unexpected behavior, including infinite loop. To avoid that, always surround the try/catch block with curved brackets;
* the destructors of C++ objects allocated on the stack after handler initialization are not called by exception raising.
In general, for writing platform-independent code it is recommended to insert macros *OCC_CATCH_SIGNALS* in try {} blocks or other code where signals may happen. For compatibility with previous versions of Open CASCADE Technology the limitations described above for *NO_CXX_EXCEPTIONS* shall be assumed.
In general, for writing platform-independent code it is recommended to insert macros *OCC_CATCH_SIGNALS* in try {} blocks or other code where signals may happen.
@subsection occt_fcug_2_5 Plug-In Management

View File

@ -102,7 +102,7 @@ void CGeometryView2D::OnLButtonDown(UINT nFlags, CPoint point)
case CurAction2d_GlobalPanning :// noting
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
}
@ -163,7 +163,7 @@ void CGeometryView2D::OnLButtonUp(UINT nFlags, CPoint point)
myCurrentMode = CurAction2d_Nothing;
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
} //switch (myCurrentMode)
} // else // if ( Ctrl )
@ -247,7 +247,7 @@ void CGeometryView2D::OnMouseMove(UINT nFlags, CPoint point)
case CurAction2d_GlobalPanning : // nothing
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}// switch (myCurrentMode)
}// if ( nFlags & MK_CONTROL ) else

View File

@ -4736,7 +4736,7 @@ void CModelingDoc::OnStopStop()
if (!(W.Closed())){
AfxMessageBox (L"Wire is not closed!");
return;
//Standard_Failure::Raise("Wire is not closed");
//throw Standard_Failure("Wire is not closed");
}
BRepBuilderAPI_MakeFace MF(support,W,Standard_True);

View File

@ -943,10 +943,10 @@ void CViewer3dDoc::DoSample()
{
myPresentation->DoSample();
}
catch (Standard_Failure)
catch (Standard_Failure const& anException)
{
Standard_SStream aSStream;
aSStream << "An exception was caught: " << Standard_Failure::Caught() << ends;
aSStream << "An exception was caught: " << anException << ends;
CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg);
}

View File

@ -113,9 +113,9 @@ Standard_Integer TOcafFunction_CutDriver::Execute(Handle(TFunction_Logbook)& /*l
// Get the TNaming_NamedShape attributes of these labels
Handle(TNaming_NamedShape) OriginalNShape, ToolNShape;
if (!( OriginalLab.FindAttribute(TNaming_NamedShape::GetID(),OriginalNShape) ))
Standard_Failure::Raise("TOcaf_Commands::CutObjects");
throw Standard_Failure("TOcaf_Commands::CutObjects");
if (!( ToolLab.FindAttribute(TNaming_NamedShape::GetID(),ToolNShape) ))
Standard_Failure::Raise("TOcaf_Commands::CutObjects");
throw Standard_Failure("TOcaf_Commands::CutObjects");
// Now, let's get the TopoDS_Shape of these TNaming_NamedShape:
TopoDS_Shape OriginalShape = OriginalNShape->Get();

View File

@ -346,10 +346,10 @@ void CTriangulationDoc::DoSample()
{
myPresentation->DoSample();
}
catch (Standard_Failure)
catch (Standard_Failure const& anException)
{
Standard_SStream aSStream;
aSStream << "An exception was caught: " << Standard_Failure::Caught() << ends;
aSStream << "An exception was caught: " << anException << ends;
CString aMsg = aSStream.str().c_str();
// aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array
AfxMessageBox (aMsg);

View File

@ -167,7 +167,7 @@ void CHLRView2D::OnMouseMove(UINT nFlags, CPoint point)
case CurAction2d_GlobalPanning :
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
}

View File

@ -144,7 +144,7 @@ void CHLRView3D::OnLButtonDown(UINT nFlags, CPoint point)
myView->StartRotation(point.x,point.y);
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
}
@ -205,7 +205,7 @@ void CHLRView3D::OnLButtonUp(UINT nFlags, CPoint point)
myCurrentMode = CurAction3d_Nothing;
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
} //switch (myCurrentMode)
} // else // if ( Ctrl )
@ -276,7 +276,7 @@ void CHLRView3D::OnMouseMove(UINT nFlags, CPoint point)
myView->Redraw();
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}// switch (myCurrentMode)
}// if ( nFlags & CASCADESHORTCUTKEY ) else

View File

@ -359,7 +359,7 @@ void CAnimationView3D::OnLButtonDown(UINT nFlags, CPoint point)
SetTimer ( 1 , 100 , NULL ) ;
break ;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
}
@ -426,7 +426,7 @@ void CAnimationView3D::OnLButtonUp(UINT nFlags, CPoint point)
KillTimer ( 1 ) ;
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
} //switch (myCurrentMode)
} // else // if ( Ctrl )
@ -529,7 +529,7 @@ void CAnimationView3D::OnMouseMove(UINT nFlags, CPoint point)
case CurrentAction3d_Turn :
break ;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}// switch (myCurrentMode)
}// if ( nFlags & MK_CONTROL ) else

View File

@ -150,10 +150,10 @@ void COCCDemoDoc::DoSample()
{
myPresentation->DoSample();
}
catch (Standard_Failure)
catch (Standard_Failure const& anException)
{
Standard_SStream aSStream;
aSStream << "An exception was caught: " << Standard_Failure::Caught() << ends;
aSStream << "An exception was caught: " << anException << ends;
CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg);
}

View File

@ -232,7 +232,7 @@ void OCC_2dView::OnBUTTONGridValues()
TheCircularGridDialog.ShowWindow(SW_SHOW);
break;
default :
Standard_Failure::Raise("invalid Aspect_GridType");
throw Standard_Failure("invalid Aspect_GridType");
}
}
void OCC_2dView::OnUpdateBUTTONGridValues(CCmdUI* pCmdUI)
@ -282,7 +282,7 @@ void OCC_2dView::OnLButtonDown(UINT nFlags, CPoint point)
case CurAction2d_GlobalPanning :// nothing
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
}
@ -344,7 +344,7 @@ void OCC_2dView::OnLButtonUp(UINT nFlags, CPoint point)
myCurrentMode = CurAction2d_Nothing;
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
} //switch (myCurrentMode)
} // else // if ( CASCADESHORTCUTKEY )
@ -432,7 +432,7 @@ void OCC_2dView::OnMouseMove(UINT nFlags, CPoint point)
case CurAction2d_GlobalPanning : // nothing
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}// switch (myCurrentMode)
}// if ( nFlags & CASCADESHORTCUTKEY ) else

View File

@ -177,7 +177,7 @@ void OCC_2dViewRD::OnBUTTONGridValues()
TheCircularGridDialog.ShowWindow(SW_SHOW); \n\
break; \n\
default : \n\
Standard_Failure::Raise(\"invalid Aspect_GridType\"); \n\
throw Standard_Failure(\"invalid Aspect_GridType\"); \n\
} \n\
\n");
// Update The Result Dialog

View File

@ -302,7 +302,7 @@ void OCC_3dView::OnLButtonDown(UINT nFlags, CPoint point)
myView->StartRotation(point.x,point.y);
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
}
@ -372,7 +372,7 @@ void OCC_3dView::OnLButtonUp(UINT nFlags, CPoint point)
}
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
} //switch (myCurrentMode)
} // else // if ( Ctrl )
@ -472,7 +472,7 @@ void OCC_3dView::OnMouseMove(UINT nFlags, CPoint point)
myView->Redraw();
break;
default :
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}// switch (myCurrentMode)
}// if ( nFlags & MK_CONTROL ) else

View File

@ -103,10 +103,10 @@ Application:
nReturnCode = pApp->Run();
}
// if(_Function.Catches(STANDARD_TYPE(Standard_Failure)))
catch(Standard_Failure)
catch(Standard_Failure const& anException)
{
Standard_SStream ostr;
ostr<<Standard_Failure::Caught()<<"\n\0";
ostr<<anException<<"\n\0";
CString aMsg = ostr.str().c_str();
MessageBoxW (NULL, aMsg, L"CasCade Error", MB_ICONERROR);
goto Application; // restart application loop

View File

@ -634,7 +634,7 @@ void View::onLButtonDown( const int/*Qt::MouseButtons*/ nFlags, const QPoint poi
myView->StartRotation( point.x(), point.y() );
break;
default:
Standard_Failure::Raise( "incompatible Current Mode" );
throw Standard_Failure( "incompatible Current Mode" );
break;
}
}
@ -720,7 +720,7 @@ void View::onLButtonUp( Qt::MouseButtons nFlags, const QPoint point )
noActiveActions();
break;
default:
Standard_Failure::Raise(" incompatible Current Mode ");
throw Standard_Failure(" incompatible Current Mode ");
break;
}
activateCursor( myCurrentMode );
@ -788,7 +788,7 @@ void View::onMouseMove( Qt::MouseButtons nFlags, const QPoint point )
myView->Redraw();
break;
default:
Standard_Failure::Raise( "incompatible Current Mode" );
throw Standard_Failure( "incompatible Current Mode" );
break;
}
}

View File

@ -1300,7 +1300,7 @@ void AIS_AngleDimension::SetTextPosition (const gp_Pnt& theTextPos)
// The text position point for angle dimension should belong to the working plane.
if (!GetPlane().Contains (theTextPos, Precision::Confusion()))
{
Standard_ProgramError::Raise ("The text position point for angle dimension doesn't belong to the working plane.");
throw Standard_ProgramError("The text position point for angle dimension doesn't belong to the working plane.");
}
myIsTextPositionFixed = Standard_True;

View File

@ -59,7 +59,7 @@ void AIS_Animation::Add (const Handle(AIS_Animation)& theAnimation)
{
if (theAnimation.IsNull())
{
Standard_ProgramError::Raise ("AIS_Animation::Add() - attempt to add a NULL animation!");
throw Standard_ProgramError("AIS_Animation::Add() - attempt to add a NULL animation!");
}
for (NCollection_Sequence<Handle(AIS_Animation)>::Iterator anIter (myAnimations); anIter.More(); anIter.Next())
@ -189,7 +189,7 @@ Standard_Real AIS_Animation::UpdateTimer()
{
if (myTimer.IsNull())
{
Standard_ProgramError::Raise ("AIS_Animation::UpdateTimer() - timer was not created!");
throw Standard_ProgramError("AIS_Animation::UpdateTimer() - timer was not created!");
}
const Standard_Real anElapsedTime = myTimer->ElapsedTime();

View File

@ -187,7 +187,7 @@ void AIS_Axis::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_Axis::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Axis::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Axis::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -212,13 +212,13 @@ void AIS_Chamf2dDimension::Compute(const Handle(PrsMgr_PresentationManager3d)& ,
void AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -186,13 +186,13 @@ void AIS_Chamf3dDimension::Compute(const Handle(PrsMgr_PresentationManager3d)& ,
void AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -94,7 +94,7 @@ void AIS_Circle::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Circle::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Circle::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -88,7 +88,7 @@ void AIS_ConcentricRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&
void AIS_ConcentricRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_ConcentricRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_ConcentricRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -75,7 +75,7 @@ void AIS_ConnectedInteractive::connect (const Handle(AIS_InteractiveObject)& the
}
else
{
Standard_ProgramError::Raise ("AIS_ConnectedInteractive::Connect() - object without own presentation can not be connected");
throw Standard_ProgramError("AIS_ConnectedInteractive::Connect() - object without own presentation can not be connected");
}
if (!myReference.IsNull())

View File

@ -656,7 +656,7 @@ void AIS_Dimension::DrawLinearDimension (const Handle(Prs3d_Presentation)& thePr
// do not build any dimension for equal points
if (theFirstPoint.IsEqual (theSecondPoint, Precision::Confusion()))
{
Standard_ProgramError::Raise ("Can not build presentation for equal points.");
throw Standard_ProgramError("Can not build presentation for equal points.");
}
Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
@ -684,7 +684,7 @@ void AIS_Dimension::DrawLinearDimension (const Handle(Prs3d_Presentation)& thePr
if (!AdjustParametersForLinear (myFixedTextPosition, theFirstPoint, theSecondPoint,
anExtensionSize, aHorisontalTextPos, myFlyout, myPlane, myIsPlaneCustom))
{
Standard_ProgramError::Raise ("Can not adjust plane to the custom label position.");
throw Standard_ProgramError("Can not adjust plane to the custom label position.");
}
}

View File

@ -164,7 +164,7 @@ void AIS_EllipseRadiusDimension::ComputeCylFaceGeometry(const AIS_KindOfSurface
}
else
{
Standard_ConstructionError::Raise("AIS:: Not expected type of surface") ;
throw Standard_ConstructionError("AIS:: Not expected type of surface") ;
return;
}
@ -174,7 +174,7 @@ void AIS_EllipseRadiusDimension::ComputeCylFaceGeometry(const AIS_KindOfSurface
{
if(Offset <0.0 && Abs(Offset) > myEllipse.MinorRadius ())
{
Standard_ConstructionError::Raise("AIS:: Absolute value of negative offset is larger than MinorRadius");
throw Standard_ConstructionError("AIS:: Absolute value of negative offset is larger than MinorRadius");
return;
}
@ -225,7 +225,7 @@ void AIS_EllipseRadiusDimension::ComputePlanarFaceGeometry()
}
if( !find )
{
Standard_ConstructionError::Raise("AIS:: Curve is not an ellipsee or is Null") ;
throw Standard_ConstructionError("AIS:: Curve is not an ellipsee or is Null") ;
return;
}

View File

@ -215,7 +215,7 @@ void AIS_EqualDistanceRelation::Compute( const Handle( PrsMgr_PresentationManage
void AIS_EqualDistanceRelation::Compute( const Handle( Prs3d_Projector )& /*aProjector*/,
const Handle( Prs3d_Presentation )& /*aPresentation*/)
{
// Standard_NotImplemented::Raise("AIS_EqualDistanceRelation::Compute( const Handle( Prs3d_Projector )&,
// throw Standard_NotImplemented("AIS_EqualDistanceRelation::Compute( const Handle( Prs3d_Projector )&,
// const Handle( Prs3d_Presentation )& )");
// PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -228,7 +228,7 @@ void AIS_EqualDistanceRelation::Compute(const Handle(Prs3d_Projector)& aProjecto
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_EqualDistanceRelation::Compute(const Handle(Prs3d_Projector)&,
// throw Standard_NotImplemented("AIS_EqualDistanceRelation::Compute(const Handle(Prs3d_Projector)&,
// const Handle(Geom_Transformation)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -155,7 +155,7 @@ void AIS_EqualRadiusRelation::Compute( const Handle( PrsMgr_PresentationManager3
void AIS_EqualRadiusRelation::Compute( const Handle( Prs3d_Projector )& /*aProjector*/,
const Handle( Prs3d_Presentation )& /*aPresentation*/)
{
// Standard_NotImplemented::Raise("AIS_EqualRadiusRelation::Compute( const Handle( Prs3d_Projector )&,const Handle( Prs3d_Presentation )& )");
// throw Standard_NotImplemented("AIS_EqualRadiusRelation::Compute( const Handle( Prs3d_Projector )&,const Handle( Prs3d_Presentation )& )");
// PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -168,7 +168,7 @@ void AIS_EqualRadiusRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_EqualRadiusRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_EqualRadiusRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -204,7 +204,7 @@ void AIS_FixRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_FixRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_FixRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_FixRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -217,7 +217,7 @@ void AIS_FixRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_FixRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_FixRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -359,13 +359,13 @@ void AIS_IdenticRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -840,7 +840,7 @@ void AIS_InteractiveContext::Remove (const Handle(AIS_InteractiveObject)& theIOb
{
if (theIObj->myCTXPtr != this)
{
Standard_ProgramError::Raise ("AIS_InteractiveContext - object has been displayed in another context!");
throw Standard_ProgramError("AIS_InteractiveContext - object has been displayed in another context!");
}
theIObj->SetContext (Handle(AIS_InteractiveContext)());
}

View File

@ -1796,7 +1796,7 @@ protected:
{
if (theObj->myCTXPtr != this)
{
Standard_ProgramError::Raise ("AIS_InteractiveContext - object has been already displayed in another context!");
throw Standard_ProgramError("AIS_InteractiveContext - object has been already displayed in another context!");
}
}
else

View File

@ -126,7 +126,7 @@ void AIS_Line::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_Line::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Line::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Line::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation) ;
}

View File

@ -126,7 +126,7 @@ void AIS_MaxRadiusDimension::Compute(const Handle(PrsMgr_PresentationManager3d)&
void AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation)");
// throw Standard_NotImplemented("AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -139,7 +139,7 @@ void AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -144,16 +144,16 @@ void AIS_MidPointRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
const Handle(Prs3d_Presentation)& /*aPresentation*/)
{
// Standard_NotImplemented::Raise("AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
void AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&,
const Handle(Geom_Transformation)&,
const Handle(Prs3d_Presentation)&)
{
Standard_NotImplemented::Raise("AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
throw Standard_NotImplemented("AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}
//=======================================================================

View File

@ -126,7 +126,7 @@ void AIS_MinRadiusDimension::Compute(const Handle(PrsMgr_PresentationManager3d)&
void AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation)");
// throw Standard_NotImplemented("AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -139,7 +139,7 @@ void AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -140,7 +140,7 @@ void AIS_OffsetDimension::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
const Handle(Prs3d_Presentation)& /*aPresentation*/)
{
// Standard_NotImplemented::Raise("AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation)");
// throw Standard_NotImplemented("AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation)");
// PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -148,7 +148,7 @@ void AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)&,const Handle(Geom_Transformation)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)&,const Handle(Geom_Transformation)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -124,13 +124,13 @@ void AIS_ParallelRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}
@ -209,7 +209,7 @@ void AIS_ParallelRelation::ComputeSelection(const Handle(SelectMgr_Selection)& a
//=======================================================================
void AIS_ParallelRelation::ComputeTwoFacesParallel(const Handle(Prs3d_Presentation)&)
{
Standard_NotImplemented::Raise("AIS_ParallelRelation::ComputeTwoFacesParallel not implemented");
throw Standard_NotImplemented("AIS_ParallelRelation::ComputeTwoFacesParallel not implemented");
}
//=======================================================================

View File

@ -114,13 +114,13 @@ void AIS_PerpendicularRelation::Compute(const Handle(PrsMgr_PresentationManager3
void AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -185,7 +185,7 @@ void AIS_PlaneTrihedron::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_PlaneTrihedron::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_PlaneTrihedron::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_PlaneTrihedron::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation) ;
}

View File

@ -110,7 +110,7 @@ void AIS_Point::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Point::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Point::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation) ;
}

View File

@ -129,16 +129,16 @@ void AIS_SymmetricRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
const Handle(Prs3d_Presentation)& /*aPresentation*/)
{
// Standard_NotImplemented::Raise("AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
void AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
void AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&,
const Handle(Geom_Transformation)&,
const Handle(Prs3d_Presentation)&)
{
Standard_NotImplemented::Raise("AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
throw Standard_NotImplemented("AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}
//=======================================================================

View File

@ -120,7 +120,7 @@ void AIS_TangentRelation::Compute(const Handle(PrsMgr_PresentationManager3d)&,
void AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
}
@ -128,7 +128,7 @@ void AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
}

View File

@ -297,7 +297,7 @@ void AIS_Trihedron::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation)
{
// Standard_NotImplemented::Raise("AIS_Trihedron::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
// throw Standard_NotImplemented("AIS_Trihedron::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation) ;
}

View File

@ -46,8 +46,7 @@ Adaptor2d_Curve2d::~Adaptor2d_Curve2d()
Standard_Real Adaptor2d_Curve2d::FirstParameter() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::FirstParameter");
return 0.;
throw Standard_NotImplemented("Adaptor2d_Curve2d::FirstParameter");
}
@ -58,8 +57,7 @@ Standard_Real Adaptor2d_Curve2d::FirstParameter() const
Standard_Real Adaptor2d_Curve2d::LastParameter() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::LastParameter");
return 0.;
throw Standard_NotImplemented("Adaptor2d_Curve2d::LastParameter");
}
@ -70,8 +68,7 @@ Standard_Real Adaptor2d_Curve2d::LastParameter() const
GeomAbs_Shape Adaptor2d_Curve2d::Continuity() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Continuity");
return GeomAbs_C0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::Continuity");
}
@ -83,8 +80,7 @@ GeomAbs_Shape Adaptor2d_Curve2d::Continuity() const
//Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape S) const
Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::NbIntervals");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::NbIntervals");
}
@ -98,7 +94,7 @@ Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape ) const
void Adaptor2d_Curve2d::Intervals(TColStd_Array1OfReal& ,
const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Intervals");
throw Standard_NotImplemented("Adaptor2d_Curve2d::Intervals");
}
@ -114,8 +110,7 @@ Handle(Adaptor2d_HCurve2d) Adaptor2d_Curve2d::Trim(const Standard_Real ,
const Standard_Real ,
const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Trim");
return Handle(Adaptor2d_HCurve2d)();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Trim");
}
//=======================================================================
@ -125,8 +120,7 @@ Handle(Adaptor2d_HCurve2d) Adaptor2d_Curve2d::Trim(const Standard_Real ,
Standard_Boolean Adaptor2d_Curve2d::IsClosed() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::IsClosed");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::IsClosed");
}
@ -137,8 +131,7 @@ Standard_Boolean Adaptor2d_Curve2d::IsClosed() const
Standard_Boolean Adaptor2d_Curve2d::IsPeriodic() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::IsPeriodic");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::IsPeriodic");
}
@ -149,8 +142,7 @@ Standard_Boolean Adaptor2d_Curve2d::IsPeriodic() const
Standard_Real Adaptor2d_Curve2d::Period() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Period");
return 0.;
throw Standard_NotImplemented("Adaptor2d_Curve2d::Period");
}
@ -162,8 +154,7 @@ Standard_Real Adaptor2d_Curve2d::Period() const
//gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real U) const
gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Value");
return gp_Pnt2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Value");
}
@ -175,7 +166,7 @@ gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real ) const
//void Adaptor2d_Curve2d::D0(const Standard_Real U, gp_Pnt2d& P) const
void Adaptor2d_Curve2d::D0(const Standard_Real , gp_Pnt2d& ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::D0");
throw Standard_NotImplemented("Adaptor2d_Curve2d::D0");
}
@ -189,7 +180,7 @@ void Adaptor2d_Curve2d::D0(const Standard_Real , gp_Pnt2d& ) const
void Adaptor2d_Curve2d::D1(const Standard_Real ,
gp_Pnt2d& , gp_Vec2d& ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::D1");
throw Standard_NotImplemented("Adaptor2d_Curve2d::D1");
}
@ -203,7 +194,7 @@ void Adaptor2d_Curve2d::D1(const Standard_Real ,
void Adaptor2d_Curve2d::D2(const Standard_Real ,
gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::D2");
throw Standard_NotImplemented("Adaptor2d_Curve2d::D2");
}
@ -217,7 +208,7 @@ void Adaptor2d_Curve2d::D2(const Standard_Real ,
void Adaptor2d_Curve2d::D3(const Standard_Real ,
gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& , gp_Vec2d& ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::D3");
throw Standard_NotImplemented("Adaptor2d_Curve2d::D3");
}
@ -231,8 +222,7 @@ void Adaptor2d_Curve2d::D3(const Standard_Real ,
gp_Vec2d Adaptor2d_Curve2d::DN(const Standard_Real ,
const Standard_Integer ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::DN");
return gp_Vec2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::DN");
}
@ -244,8 +234,7 @@ gp_Vec2d Adaptor2d_Curve2d::DN(const Standard_Real ,
//Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real R3d) const
Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Resolution");
return 0.;
throw Standard_NotImplemented("Adaptor2d_Curve2d::Resolution");
}
@ -256,8 +245,7 @@ Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real ) const
GeomAbs_CurveType Adaptor2d_Curve2d::GetType() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::GetType");
return GeomAbs_OtherCurve;
throw Standard_NotImplemented("Adaptor2d_Curve2d::GetType");
}
@ -268,8 +256,7 @@ GeomAbs_CurveType Adaptor2d_Curve2d::GetType() const
gp_Lin2d Adaptor2d_Curve2d::Line() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Line");
return gp_Lin2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Line");
}
@ -280,8 +267,7 @@ gp_Lin2d Adaptor2d_Curve2d::Line() const
gp_Circ2d Adaptor2d_Curve2d::Circle() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Circle");
return gp_Circ2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Circle");
}
@ -292,8 +278,7 @@ gp_Circ2d Adaptor2d_Curve2d::Circle() const
gp_Elips2d Adaptor2d_Curve2d::Ellipse() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Ellipse");
return gp_Elips2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Ellipse");
}
@ -304,8 +289,7 @@ gp_Elips2d Adaptor2d_Curve2d::Ellipse() const
gp_Hypr2d Adaptor2d_Curve2d::Hyperbola() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Hyperbola");
return gp_Hypr2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Hyperbola");
}
@ -316,8 +300,7 @@ gp_Hypr2d Adaptor2d_Curve2d::Hyperbola() const
gp_Parab2d Adaptor2d_Curve2d::Parabola() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Parabola");
return gp_Parab2d();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Parabola");
}
@ -328,8 +311,7 @@ gp_Parab2d Adaptor2d_Curve2d::Parabola() const
Standard_Integer Adaptor2d_Curve2d::Degree() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Degree");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::Degree");
}
@ -340,8 +322,7 @@ Standard_Integer Adaptor2d_Curve2d::Degree() const
Standard_Boolean Adaptor2d_Curve2d::IsRational() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::IsRational");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::IsRational");
}
@ -352,8 +333,7 @@ Standard_Boolean Adaptor2d_Curve2d::IsRational() const
Standard_Integer Adaptor2d_Curve2d::NbPoles() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::NbPole");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::NbPole");
}
@ -364,8 +344,7 @@ Standard_Integer Adaptor2d_Curve2d::NbPoles() const
Standard_Integer Adaptor2d_Curve2d::NbKnots() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::NbKnots");
return 0;
throw Standard_NotImplemented("Adaptor2d_Curve2d::NbKnots");
}
@ -376,8 +355,7 @@ Standard_Integer Adaptor2d_Curve2d::NbKnots() const
Handle(Geom2d_BezierCurve) Adaptor2d_Curve2d::Bezier() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::Bezier");
return Handle(Geom2d_BezierCurve)();
throw Standard_NotImplemented("Adaptor2d_Curve2d::Bezier");
}
@ -388,8 +366,7 @@ Handle(Geom2d_BezierCurve) Adaptor2d_Curve2d::Bezier() const
Handle(Geom2d_BSplineCurve) Adaptor2d_Curve2d::BSpline() const
{
Standard_NotImplemented::Raise("Adaptor2d_Curve2d::BSpline");
return Handle(Geom2d_BSplineCurve)();
throw Standard_NotImplemented("Adaptor2d_Curve2d::BSpline");
}
//=======================================================================

View File

@ -173,8 +173,7 @@ Standard_Boolean Adaptor2d_Line2d::IsPeriodic() const
Standard_Real Adaptor2d_Line2d::Period() const
{
Standard_NoSuchObject::Raise();
return 0;
throw Standard_NoSuchObject();
}
//=======================================================================
@ -238,7 +237,7 @@ void Adaptor2d_Line2d::D3(const Standard_Real X, gp_Pnt2d& P, gp_Vec2d& V1, gp_V
//gp_Vec2d Adaptor2d_Line2d::DN(const Standard_Real U, const Standard_Integer N) const
gp_Vec2d Adaptor2d_Line2d::DN(const Standard_Real , const Standard_Integer N) const
{
if (N<=0) {Standard_OutOfRange::Raise();}
if (N<=0) {throw Standard_OutOfRange();}
if (N==1) {
return myAx2d.Direction();
}
@ -282,8 +281,7 @@ gp_Lin2d Adaptor2d_Line2d::Line() const
gp_Circ2d Adaptor2d_Line2d::Circle() const
{
Standard_NoSuchObject::Raise();
return gp_Circ2d();
throw Standard_NoSuchObject();
}
//=======================================================================
@ -293,8 +291,7 @@ gp_Circ2d Adaptor2d_Line2d::Circle() const
gp_Elips2d Adaptor2d_Line2d::Ellipse() const
{
Standard_NoSuchObject::Raise();
return gp_Elips2d();
throw Standard_NoSuchObject();
}
//=======================================================================
@ -304,8 +301,7 @@ gp_Elips2d Adaptor2d_Line2d::Ellipse() const
gp_Hypr2d Adaptor2d_Line2d::Hyperbola() const
{
Standard_NoSuchObject::Raise();
return gp_Hypr2d();
throw Standard_NoSuchObject();
}
//=======================================================================
@ -315,8 +311,7 @@ gp_Hypr2d Adaptor2d_Line2d::Hyperbola() const
gp_Parab2d Adaptor2d_Line2d::Parabola() const
{
Standard_NoSuchObject::Raise();
return gp_Parab2d();
throw Standard_NoSuchObject();
}
//=======================================================================
@ -326,8 +321,7 @@ gp_Parab2d Adaptor2d_Line2d::Parabola() const
Standard_Integer Adaptor2d_Line2d::Degree() const
{
Standard_NoSuchObject::Raise();
return 0 ;
throw Standard_NoSuchObject();
}
//=======================================================================
//function : IsRational
@ -336,8 +330,7 @@ Standard_Integer Adaptor2d_Line2d::Degree() const
Standard_Boolean Adaptor2d_Line2d::IsRational() const
{
Standard_NoSuchObject::Raise();
return 0 ;
throw Standard_NoSuchObject();
}
//=======================================================================
//function : NbPoles
@ -346,8 +339,7 @@ Standard_Boolean Adaptor2d_Line2d::IsRational() const
Standard_Integer Adaptor2d_Line2d::NbPoles() const
{
Standard_NoSuchObject::Raise();
return 0 ;
throw Standard_NoSuchObject();
}
//=======================================================================
//function : NbKnots
@ -356,8 +348,7 @@ Standard_Integer Adaptor2d_Line2d::NbPoles() const
Standard_Integer Adaptor2d_Line2d::NbKnots() const
{
Standard_NoSuchObject::Raise();
return 0 ;
throw Standard_NoSuchObject();
}
//=======================================================================
//function : Bezier
@ -366,9 +357,7 @@ Standard_Integer Adaptor2d_Line2d::NbKnots() const
Handle(Geom2d_BezierCurve) Adaptor2d_Line2d::Bezier() const
{
Standard_NoSuchObject::Raise();
Handle(Geom2d_BezierCurve) nul;
return nul;
throw Standard_NoSuchObject();
}
//=======================================================================
@ -378,8 +367,6 @@ Handle(Geom2d_BezierCurve) Adaptor2d_Line2d::Bezier() const
Handle(Geom2d_BSplineCurve) Adaptor2d_Line2d::BSpline() const
{
Standard_NoSuchObject::Raise();
Handle(Geom2d_BSplineCurve) nul;
return nul;
throw Standard_NoSuchObject();
}

View File

@ -145,7 +145,7 @@ GeomAbs_Shape Adaptor2d_OffsetCurve::Continuity() const
case GeomAbs_G1: return GeomAbs_C0;
case GeomAbs_C0:
// No Continuity !!
Standard_TypeMismatch::Raise("Adaptor2d_OffsetCurve::IntervalContinuity");
throw Standard_TypeMismatch("Adaptor2d_OffsetCurve::IntervalContinuity");
break;
}
@ -309,8 +309,7 @@ gp_Pnt2d Adaptor2d_OffsetCurve::Value(const Standard_Real U) const
return gp_Pnt2d(P.XY()+myOffset*V.XY()/Norme);
}
else {
gp_VectorWithNullMagnitude::Raise("Adaptor2d_OffsetCurve::Value");
return gp_Pnt2d();
throw gp_VectorWithNullMagnitude("Adaptor2d_OffsetCurve::Value");
}
}
else {
@ -351,7 +350,7 @@ void Adaptor2d_OffsetCurve::D1
(V2.XY()*V3.XY())/(Norme*Norme)));
}
else {
gp_VectorWithNullMagnitude::Raise("Adaptor2d_OffsetCurve::D1");
throw gp_VectorWithNullMagnitude("Adaptor2d_OffsetCurve::D1");
}
}
else {
@ -392,7 +391,7 @@ void Adaptor2d_OffsetCurve::D2
D1( U,P,V1);
}
else {
gp_VectorWithNullMagnitude::Raise("Adaptor2d_OffsetCurve::D2");
throw gp_VectorWithNullMagnitude("Adaptor2d_OffsetCurve::D2");
}
}
else {
@ -412,7 +411,7 @@ void Adaptor2d_OffsetCurve::D3
(const Standard_Real ,
gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& , gp_Vec2d& ) const
{
Standard_NotImplemented::Raise("Adaptor2d_OffsetCurve::D3");
throw Standard_NotImplemented("Adaptor2d_OffsetCurve::D3");
}
//=======================================================================
@ -424,8 +423,7 @@ gp_Vec2d Adaptor2d_OffsetCurve::DN
// (const Standard_Real T, const Standard_Integer N) const
(const Standard_Real , const Standard_Integer ) const
{
Standard_NotImplemented::Raise("Adaptor2d_OffsetCurve::DN");
return gp_Vec2d();
throw Standard_NotImplemented("Adaptor2d_OffsetCurve::DN");
}
@ -480,8 +478,7 @@ gp_Lin2d Adaptor2d_OffsetCurve::Line() const
return gp_Lin2d(P,V);
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve::Line");
return gp_Lin2d();
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve::Line");
}
}
@ -516,15 +513,13 @@ gp_Circ2d Adaptor2d_OffsetCurve::Circle() const
return gp_Circ2d( axes,radius);
}
else { // Cercle de rayon Nul
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve::Circle");
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve::Circle");
}
}
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve::Circle");
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve::Circle");
}
// portage WNT
return gp_Circ2d();
}
//=======================================================================
@ -538,10 +533,8 @@ gp_Elips2d Adaptor2d_OffsetCurve::Ellipse() const
return myCurve->Ellipse();;
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve:Ellipse");
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve:Ellipse");
}
// portage WNT
return gp_Elips2d();
}
//=======================================================================
@ -555,10 +548,8 @@ gp_Hypr2d Adaptor2d_OffsetCurve::Hyperbola() const
return myCurve->Hyperbola();
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve:Hyperbola");
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve:Hyperbola");
}
// portage WNT
return gp_Hypr2d();
}
//=======================================================================
@ -572,10 +563,8 @@ gp_Parab2d Adaptor2d_OffsetCurve::Parabola() const
return myCurve->Parabola();
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve:Parabola");
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve:Parabola");
}
// portage WNT
return gp_Parab2d();
}
//=======================================================================
//function : Degree
@ -590,8 +579,7 @@ Standard_Integer Adaptor2d_OffsetCurve::Degree() const
return myCurve->Degree();
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve::Degree");
return 0;
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve::Degree");
}
}
//=======================================================================
@ -619,8 +607,7 @@ Standard_Integer Adaptor2d_OffsetCurve::NbPoles() const
return myCurve->NbPoles();
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve::NbPoles");
return 0;
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve::NbPoles");
}
}
@ -635,8 +622,7 @@ Standard_Integer Adaptor2d_OffsetCurve::NbKnots() const
return myCurve->NbKnots();
}
else {
Standard_NoSuchObject::Raise("Adaptor2d_OffsetCurve::NbKnots");
return 0;
throw Standard_NoSuchObject("Adaptor2d_OffsetCurve::NbKnots");
}
}

View File

@ -47,8 +47,7 @@ Adaptor3d_Curve::~Adaptor3d_Curve()
Standard_Real Adaptor3d_Curve::FirstParameter() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::FirstParameter");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Curve::FirstParameter");
}
@ -59,8 +58,7 @@ Standard_Real Adaptor3d_Curve::FirstParameter() const
Standard_Real Adaptor3d_Curve::LastParameter() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::LastParameter");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Curve::LastParameter");
}
@ -71,8 +69,7 @@ Standard_Real Adaptor3d_Curve::LastParameter() const
GeomAbs_Shape Adaptor3d_Curve::Continuity() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Continuity");
return GeomAbs_C0;
throw Standard_NotImplemented("Adaptor3d_Curve::Continuity");
}
@ -83,8 +80,7 @@ GeomAbs_Shape Adaptor3d_Curve::Continuity() const
Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbIntervals");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::NbIntervals");
}
@ -95,7 +91,7 @@ Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Intervals");
throw Standard_NotImplemented("Adaptor3d_Curve::Intervals");
}
@ -107,8 +103,7 @@ void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) co
//Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real , const Standard_Real , const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Trim");
return Handle(Adaptor3d_HCurve)();
throw Standard_NotImplemented("Adaptor3d_Curve::Trim");
}
@ -119,8 +114,7 @@ Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real , const Stand
Standard_Boolean Adaptor3d_Curve::IsClosed() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::IsClosed");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::IsClosed");
}
@ -131,8 +125,7 @@ Standard_Boolean Adaptor3d_Curve::IsClosed() const
Standard_Boolean Adaptor3d_Curve::IsPeriodic() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::IsPeriodic");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::IsPeriodic");
}
@ -143,8 +136,7 @@ Standard_Boolean Adaptor3d_Curve::IsPeriodic() const
Standard_Real Adaptor3d_Curve::Period() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Period");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Curve::Period");
}
@ -156,8 +148,7 @@ Standard_Real Adaptor3d_Curve::Period() const
//gp_Pnt Adaptor3d_Curve::Value(const Standard_Real U) const
gp_Pnt Adaptor3d_Curve::Value(const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Value");
return gp_Pnt();
throw Standard_NotImplemented("Adaptor3d_Curve::Value");
}
@ -169,7 +160,7 @@ gp_Pnt Adaptor3d_Curve::Value(const Standard_Real ) const
//void Adaptor3d_Curve::D0(const Standard_Real U, gp_Pnt& P) const
void Adaptor3d_Curve::D0(const Standard_Real , gp_Pnt& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::D0");
throw Standard_NotImplemented("Adaptor3d_Curve::D0");
}
@ -181,7 +172,7 @@ void Adaptor3d_Curve::D0(const Standard_Real , gp_Pnt& ) const
//void Adaptor3d_Curve::D1(const Standard_Real U, gp_Pnt& P, gp_Vec& V) const
void Adaptor3d_Curve::D1(const Standard_Real , gp_Pnt& , gp_Vec& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::D1");
throw Standard_NotImplemented("Adaptor3d_Curve::D1");
}
@ -193,7 +184,7 @@ void Adaptor3d_Curve::D1(const Standard_Real , gp_Pnt& , gp_Vec& ) const
//void Adaptor3d_Curve::D2(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) const
void Adaptor3d_Curve::D2(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::D2");
throw Standard_NotImplemented("Adaptor3d_Curve::D2");
}
@ -205,7 +196,7 @@ void Adaptor3d_Curve::D2(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) con
//void Adaptor3d_Curve::D3(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3) const
void Adaptor3d_Curve::D3(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::D3");
throw Standard_NotImplemented("Adaptor3d_Curve::D3");
}
@ -217,8 +208,7 @@ void Adaptor3d_Curve::D3(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_
//gp_Vec Adaptor3d_Curve::DN(const Standard_Real U, const Standard_Integer N) const
gp_Vec Adaptor3d_Curve::DN(const Standard_Real , const Standard_Integer ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::DN");
return gp_Vec();
throw Standard_NotImplemented("Adaptor3d_Curve::DN");
}
@ -230,8 +220,7 @@ gp_Vec Adaptor3d_Curve::DN(const Standard_Real , const Standard_Integer ) const
//Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real R3d) const
Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Resolution");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Curve::Resolution");
}
@ -242,8 +231,7 @@ Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const
GeomAbs_CurveType Adaptor3d_Curve::GetType() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::GetType");
return GeomAbs_OtherCurve;
throw Standard_NotImplemented("Adaptor3d_Curve::GetType");
}
@ -254,8 +242,7 @@ GeomAbs_CurveType Adaptor3d_Curve::GetType() const
gp_Lin Adaptor3d_Curve::Line() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Line");
return gp_Lin();
throw Standard_NotImplemented("Adaptor3d_Curve::Line");
}
@ -266,8 +253,7 @@ gp_Lin Adaptor3d_Curve::Line() const
gp_Circ Adaptor3d_Curve::Circle() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Circle");
return gp_Circ();
throw Standard_NotImplemented("Adaptor3d_Curve::Circle");
}
@ -278,8 +264,7 @@ gp_Circ Adaptor3d_Curve::Circle() const
gp_Elips Adaptor3d_Curve::Ellipse() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Ellipse");
return gp_Elips();
throw Standard_NotImplemented("Adaptor3d_Curve::Ellipse");
}
@ -290,8 +275,7 @@ gp_Elips Adaptor3d_Curve::Ellipse() const
gp_Hypr Adaptor3d_Curve::Hyperbola() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Hyperbola");
return gp_Hypr();
throw Standard_NotImplemented("Adaptor3d_Curve::Hyperbola");
}
@ -302,8 +286,7 @@ gp_Hypr Adaptor3d_Curve::Hyperbola() const
gp_Parab Adaptor3d_Curve::Parabola() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Parabola");
return gp_Parab();
throw Standard_NotImplemented("Adaptor3d_Curve::Parabola");
}
@ -314,8 +297,7 @@ gp_Parab Adaptor3d_Curve::Parabola() const
Standard_Integer Adaptor3d_Curve::Degree() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Degree");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::Degree");
}
@ -326,8 +308,7 @@ Standard_Integer Adaptor3d_Curve::Degree() const
Standard_Boolean Adaptor3d_Curve::IsRational() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::IsRational");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::IsRational");
}
@ -338,8 +319,7 @@ Standard_Boolean Adaptor3d_Curve::IsRational() const
Standard_Integer Adaptor3d_Curve::NbPoles() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbPoles");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::NbPoles");
}
@ -350,8 +330,7 @@ Standard_Integer Adaptor3d_Curve::NbPoles() const
Standard_Integer Adaptor3d_Curve::NbKnots() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbKnots");
return 0;
throw Standard_NotImplemented("Adaptor3d_Curve::NbKnots");
}
@ -362,8 +341,7 @@ Standard_Integer Adaptor3d_Curve::NbKnots() const
Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Bezier");
return Handle(Geom_BezierCurve)();
throw Standard_NotImplemented("Adaptor3d_Curve::Bezier");
}
@ -374,8 +352,7 @@ Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const
Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::BSpline");
return Handle(Geom_BSplineCurve)();
throw Standard_NotImplemented("Adaptor3d_Curve::BSpline");
}
//=======================================================================
@ -385,6 +362,5 @@ Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const
Handle(Geom_OffsetCurve) Adaptor3d_Curve::OffsetCurve() const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::OffsetCurve");
return Handle(Geom_OffsetCurve)();
throw Standard_NotImplemented("Adaptor3d_Curve::OffsetCurve");
}

View File

@ -158,7 +158,7 @@ static void Hunt(const TColStd_Array1OfReal& Arr,
Iloc = i;
else
if(Abs(Coord - Arr(i)) > Tol)
Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:Hunt");
throw Standard_NotImplemented("Adaptor3d_CurveOnSurface:Hunt");
}
//=======================================================================
@ -1179,7 +1179,7 @@ gp_Vec Adaptor3d_CurveOnSurface::DN
D3(U,P,V1,V2,V);
break ;
default:
Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:DN");
throw Standard_NotImplemented("Adaptor3d_CurveOnSurface:DN");
break;
}
return V;
@ -1305,8 +1305,7 @@ Standard_Integer Adaptor3d_CurveOnSurface::NbKnots() const {
if (mySurface->GetType()==GeomAbs_Plane)
return myCurve->NbKnots();
else {
Standard_NoSuchObject::Raise();
return 0;
throw Standard_NoSuchObject();
}
}
@ -1635,7 +1634,7 @@ void Adaptor3d_CurveOnSurface::EvalFirstLastSurf()
Ok = LocatePart_Offset(UV,DUV,mySurface,LeftBot,RightTop);
break;
default :
Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
throw Standard_NotImplemented("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
break;
}
}
@ -1673,7 +1672,7 @@ void Adaptor3d_CurveOnSurface::EvalFirstLastSurf()
Ok = LocatePart_Offset(UV,DUV,mySurface,LeftBot,RightTop);
break;
default :
Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
throw Standard_NotImplemented("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
break;
}
}

View File

@ -23,7 +23,7 @@
Adaptor3d_InterFunc::Adaptor3d_InterFunc(const Handle(Adaptor2d_HCurve2d)& C, const Standard_Real FixVal, const Standard_Integer Fix) : myCurve2d(C),myFixVal(FixVal),myFix(Fix)
{
if(Fix != 1 && Fix != 2 ) Standard_ConstructionError::Raise();
if(Fix != 1 && Fix != 2 ) throw Standard_ConstructionError();
}

View File

@ -137,7 +137,7 @@ void Adaptor3d_IsoCurve::Load(const GeomAbs_IsoType Iso,
break;
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -230,8 +230,7 @@ GeomAbs_Shape Adaptor3d_IsoCurve::Continuity() const
break;
}
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return GeomAbs_C0;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
//=======================================================================
@ -241,7 +240,7 @@ GeomAbs_Shape Adaptor3d_IsoCurve::Continuity() const
Standard_Integer Adaptor3d_IsoCurve::NbIntervals(const GeomAbs_Shape S) const
{
if (myIso == GeomAbs_NoneIso) Standard_NoSuchObject::Raise();
if (myIso == GeomAbs_NoneIso) throw Standard_NoSuchObject();
Standard_Boolean UIso = (myIso == GeomAbs_IsoU);
Standard_Integer nbInter = UIso ?
@ -272,7 +271,7 @@ Standard_Integer Adaptor3d_IsoCurve::NbIntervals(const GeomAbs_Shape S) const
void Adaptor3d_IsoCurve::Intervals(TColStd_Array1OfReal& TI,
const GeomAbs_Shape S) const
{
if (myIso == GeomAbs_NoneIso) Standard_NoSuchObject::Raise();
if (myIso == GeomAbs_NoneIso) throw Standard_NoSuchObject();
Standard_Boolean UIso = (myIso == GeomAbs_IsoU);
Standard_Integer nbInter = UIso ?
@ -338,8 +337,7 @@ Standard_Boolean Adaptor3d_IsoCurve::IsClosed() const
break;
}
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return Standard_False;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
//=======================================================================
@ -359,8 +357,7 @@ Standard_Boolean Adaptor3d_IsoCurve::IsPeriodic() const
break;
}
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return Standard_False;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
//=======================================================================
@ -380,8 +377,7 @@ Standard_Real Adaptor3d_IsoCurve::Period() const
break;
}
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return 0.;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
//=======================================================================
@ -401,7 +397,7 @@ gp_Pnt Adaptor3d_IsoCurve::Value(const Standard_Real T) const
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -428,7 +424,7 @@ void Adaptor3d_IsoCurve::D0(const Standard_Real T, gp_Pnt& P) const
break;
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -452,7 +448,7 @@ void Adaptor3d_IsoCurve::D1(const Standard_Real T, gp_Pnt& P, gp_Vec& V) const
break;
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -477,7 +473,7 @@ void Adaptor3d_IsoCurve::D2(const Standard_Real T, gp_Pnt& P,
P,V1,dummy1,V2,dummy2,dummy3);
break;
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -504,7 +500,7 @@ void Adaptor3d_IsoCurve::D3(const Standard_Real T, gp_Pnt& P,
break;
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -525,7 +521,7 @@ gp_Vec Adaptor3d_IsoCurve::DN(const Standard_Real T,
return mySurface->DN(T,myParameter,N,0);
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
}
@ -572,9 +568,7 @@ GeomAbs_CurveType Adaptor3d_IsoCurve::GetType() const {
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
// portage WNT
return GeomAbs_OtherCurve;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -600,9 +594,7 @@ GeomAbs_CurveType Adaptor3d_IsoCurve::GetType() const {
return GeomAbs_Circle;
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
// portage WNT
return GeomAbs_OtherCurve;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
break;
@ -618,9 +610,7 @@ GeomAbs_CurveType Adaptor3d_IsoCurve::GetType() const {
return mySurface->BasisCurve()->GetType();
case GeomAbs_NoneIso:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
// portage WNT
return GeomAbs_OtherCurve;
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break;
}
break;
@ -681,8 +671,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
case GeomAbs_IsoU:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:UIso");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:UIso");
}
case GeomAbs_IsoV:
{
@ -690,8 +679,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
}
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -705,8 +693,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
case GeomAbs_IsoU:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:UIso");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:UIso");
}
case GeomAbs_IsoV:
{
@ -715,8 +702,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
}
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -740,8 +726,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -766,8 +751,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
case GeomAbs_NoneIso:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -802,8 +786,7 @@ gp_Circ Adaptor3d_IsoCurve::Circle() const
}
default:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:Circle");
return gp_Circ();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:Circle");
}
}
@ -826,10 +809,9 @@ gp_Elips Adaptor3d_IsoCurve::Ellipse() const
}
default:
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:Ellipse");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:Ellipse");
}
}
return gp_Elips();
}
//=======================================================================
@ -839,8 +821,7 @@ gp_Elips Adaptor3d_IsoCurve::Ellipse() const
gp_Hypr Adaptor3d_IsoCurve::Hyperbola() const
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:Hyperbola");
return gp_Hypr();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:Hyperbola");
}
//=======================================================================
@ -850,8 +831,7 @@ gp_Hypr Adaptor3d_IsoCurve::Hyperbola() const
gp_Parab Adaptor3d_IsoCurve::Parabola() const
{
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:Parabola");
return gp_Parab();
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:Parabola");
}
//=======================================================================
@ -877,7 +857,7 @@ Standard_Integer Adaptor3d_IsoCurve::Degree() const
case GeomAbs_NoneIso:
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break ;
@ -888,7 +868,7 @@ Standard_Integer Adaptor3d_IsoCurve::Degree() const
degree = mySurface->BasisCurve()->Degree();
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -899,12 +879,12 @@ Standard_Integer Adaptor3d_IsoCurve::Degree() const
degree = mySurface->BasisCurve()->Degree();
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break ;
}
return degree ;
@ -933,7 +913,7 @@ Standard_Boolean Adaptor3d_IsoCurve::IsRational() const
case GeomAbs_NoneIso:
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break ;
@ -944,7 +924,7 @@ Standard_Boolean Adaptor3d_IsoCurve::IsRational() const
is_rational = mySurface->BasisCurve()->IsRational();
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -955,12 +935,12 @@ Standard_Boolean Adaptor3d_IsoCurve::IsRational() const
is_rational = mySurface->BasisCurve()->IsRational();
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
return is_rational;
}
@ -988,7 +968,7 @@ Standard_Integer Adaptor3d_IsoCurve::NbPoles() const
case GeomAbs_NoneIso:
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
break ;
case GeomAbs_SurfaceOfRevolution:
@ -1000,7 +980,7 @@ Standard_Integer Adaptor3d_IsoCurve::NbPoles() const
}
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
@ -1013,13 +993,13 @@ Standard_Integer Adaptor3d_IsoCurve::NbPoles() const
}
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break ;
}
return nb_poles ;
@ -1047,7 +1027,7 @@ Standard_Integer Adaptor3d_IsoCurve::NbKnots() const
case GeomAbs_NoneIso:
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break ;
@ -1060,7 +1040,7 @@ Standard_Integer Adaptor3d_IsoCurve::NbKnots() const
break ;
}
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break ;
@ -1073,12 +1053,12 @@ Standard_Integer Adaptor3d_IsoCurve::NbKnots() const
break ;
}
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
}
}
break ;
default:
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
throw Standard_NoSuchObject("Adaptor3d_IsoCurve:NoneIso");
break ;
}
return nb_knots ;

View File

@ -49,8 +49,7 @@ Adaptor3d_Surface::~Adaptor3d_Surface()
Standard_Real Adaptor3d_Surface::FirstUParameter() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstUParameter");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::FirstUParameter");
}
@ -61,8 +60,7 @@ Standard_Real Adaptor3d_Surface::FirstUParameter() const
Standard_Real Adaptor3d_Surface::LastUParameter() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::LastUParameter");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::LastUParameter");
}
@ -73,8 +71,7 @@ Standard_Real Adaptor3d_Surface::LastUParameter() const
Standard_Real Adaptor3d_Surface::FirstVParameter() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstVParameter");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::FirstVParameter");
}
@ -85,8 +82,7 @@ Standard_Real Adaptor3d_Surface::FirstVParameter() const
Standard_Real Adaptor3d_Surface::LastVParameter() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::LastVParameter");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::LastVParameter");
}
@ -97,8 +93,7 @@ Standard_Real Adaptor3d_Surface::LastVParameter() const
GeomAbs_Shape Adaptor3d_Surface::UContinuity() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::UContinuity");
return GeomAbs_C0;
throw Standard_NotImplemented("Adaptor3d_Surface::UContinuity");
}
@ -109,8 +104,7 @@ GeomAbs_Shape Adaptor3d_Surface::UContinuity() const
GeomAbs_Shape Adaptor3d_Surface::VContinuity() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::VContinuity");
return GeomAbs_C0;
throw Standard_NotImplemented("Adaptor3d_Surface::VContinuity");
}
@ -122,8 +116,7 @@ GeomAbs_Shape Adaptor3d_Surface::VContinuity() const
//Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape S) const
Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUIntervals");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::NbUIntervals");
}
@ -135,8 +128,7 @@ Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const
//Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape S) const
Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVIntervals");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::NbVIntervals");
}
@ -148,7 +140,7 @@ Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const
//void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const
void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::UIntervals");
throw Standard_NotImplemented("Adaptor3d_Surface::UIntervals");
}
@ -160,7 +152,7 @@ void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape )
//void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const
void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::VIntervals");
throw Standard_NotImplemented("Adaptor3d_Surface::VIntervals");
}
@ -172,8 +164,7 @@ void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape )
//Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::UTrim");
return Handle(Adaptor3d_HSurface)();
throw Standard_NotImplemented("Adaptor3d_Surface::UTrim");
}
@ -185,8 +176,7 @@ Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real , const
//Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::VTrim");
return Handle(Adaptor3d_HSurface)();
throw Standard_NotImplemented("Adaptor3d_Surface::VTrim");
}
@ -197,8 +187,7 @@ Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real , const
Standard_Boolean Adaptor3d_Surface::IsUClosed() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUClosed");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::IsUClosed");
}
@ -209,8 +198,7 @@ Standard_Boolean Adaptor3d_Surface::IsUClosed() const
Standard_Boolean Adaptor3d_Surface::IsVClosed() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVClosed");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::IsVClosed");
}
@ -221,8 +209,7 @@ Standard_Boolean Adaptor3d_Surface::IsVClosed() const
Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUPeriodic");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::IsUPeriodic");
}
@ -233,8 +220,7 @@ Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const
Standard_Real Adaptor3d_Surface::UPeriod() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::UPeriod");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::UPeriod");
}
@ -245,8 +231,7 @@ Standard_Real Adaptor3d_Surface::UPeriod() const
Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVPeriodic");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::IsVPeriodic");
}
@ -257,8 +242,7 @@ Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const
Standard_Real Adaptor3d_Surface::VPeriod() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::VPeriod");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::VPeriod");
}
@ -270,8 +254,7 @@ Standard_Real Adaptor3d_Surface::VPeriod() const
//gp_Pnt Adaptor3d_Surface::Value(const Standard_Real U, const Standard_Real V) const
gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Value");
return gp_Pnt();
throw Standard_NotImplemented("Adaptor3d_Surface::Value");
}
@ -283,7 +266,7 @@ gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) cons
//void Adaptor3d_Surface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const
void Adaptor3d_Surface::D0(const Standard_Real , const Standard_Real , gp_Pnt& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::D0");
throw Standard_NotImplemented("Adaptor3d_Surface::D0");
}
@ -295,7 +278,7 @@ void Adaptor3d_Surface::D0(const Standard_Real , const Standard_Real , gp_Pnt& )
//void Adaptor3d_Surface::D1(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const
void Adaptor3d_Surface::D1(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::D1");
throw Standard_NotImplemented("Adaptor3d_Surface::D1");
}
@ -307,7 +290,7 @@ void Adaptor3d_Surface::D1(const Standard_Real , const Standard_Real , gp_Pnt& ,
//void Adaptor3d_Surface::D2(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const
void Adaptor3d_Surface::D2(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::D2");
throw Standard_NotImplemented("Adaptor3d_Surface::D2");
}
@ -319,7 +302,7 @@ void Adaptor3d_Surface::D2(const Standard_Real , const Standard_Real , gp_Pnt& ,
//void Adaptor3d_Surface::D3(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const
void Adaptor3d_Surface::D3(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::D3");
throw Standard_NotImplemented("Adaptor3d_Surface::D3");
}
@ -331,8 +314,7 @@ void Adaptor3d_Surface::D3(const Standard_Real , const Standard_Real , gp_Pnt& ,
//gp_Vec Adaptor3d_Surface::DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const
gp_Vec Adaptor3d_Surface::DN(const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::DN");
return gp_Vec();
throw Standard_NotImplemented("Adaptor3d_Surface::DN");
}
@ -344,8 +326,7 @@ gp_Vec Adaptor3d_Surface::DN(const Standard_Real , const Standard_Real , const S
//Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real R3d) const
Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::UResolution");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::UResolution");
}
@ -357,8 +338,7 @@ Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const
//Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real R3d) const
Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::VResolution");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::VResolution");
}
@ -369,8 +349,7 @@ Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const
GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::GetType");
return GeomAbs_OtherSurface;
throw Standard_NotImplemented("Adaptor3d_Surface::GetType");
}
@ -381,8 +360,7 @@ GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const
gp_Pln Adaptor3d_Surface::Plane() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Plane");
return gp_Pln();
throw Standard_NotImplemented("Adaptor3d_Surface::Plane");
}
@ -393,8 +371,7 @@ gp_Pln Adaptor3d_Surface::Plane() const
gp_Cylinder Adaptor3d_Surface::Cylinder() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Cylinder");
return gp_Cylinder();
throw Standard_NotImplemented("Adaptor3d_Surface::Cylinder");
}
@ -405,8 +382,7 @@ gp_Cylinder Adaptor3d_Surface::Cylinder() const
gp_Cone Adaptor3d_Surface::Cone() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Cone");
return gp_Cone();
throw Standard_NotImplemented("Adaptor3d_Surface::Cone");
}
@ -417,8 +393,7 @@ gp_Cone Adaptor3d_Surface::Cone() const
gp_Sphere Adaptor3d_Surface::Sphere() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Sphere");
return gp_Sphere();
throw Standard_NotImplemented("Adaptor3d_Surface::Sphere");
}
@ -429,8 +404,7 @@ gp_Sphere Adaptor3d_Surface::Sphere() const
gp_Torus Adaptor3d_Surface::Torus() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Torus");
return gp_Torus();
throw Standard_NotImplemented("Adaptor3d_Surface::Torus");
}
@ -441,8 +415,7 @@ gp_Torus Adaptor3d_Surface::Torus() const
Standard_Integer Adaptor3d_Surface::UDegree() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::UDegree");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::UDegree");
}
@ -453,8 +426,7 @@ Standard_Integer Adaptor3d_Surface::UDegree() const
Standard_Integer Adaptor3d_Surface::NbUPoles() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUPoles");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::NbUPoles");
}
@ -465,8 +437,7 @@ Standard_Integer Adaptor3d_Surface::NbUPoles() const
Standard_Integer Adaptor3d_Surface::VDegree() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::VDegree");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::VDegree");
}
@ -477,8 +448,7 @@ Standard_Integer Adaptor3d_Surface::VDegree() const
Standard_Integer Adaptor3d_Surface::NbVPoles() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVPoles");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::NbVPoles");
}
@ -489,8 +459,7 @@ Standard_Integer Adaptor3d_Surface::NbVPoles() const
Standard_Integer Adaptor3d_Surface::NbUKnots() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUKnots");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::NbUKnots");
}
@ -501,8 +470,7 @@ Standard_Integer Adaptor3d_Surface::NbUKnots() const
Standard_Integer Adaptor3d_Surface::NbVKnots() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVKnots");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::NbVKnots");
}
@ -513,8 +481,7 @@ Standard_Integer Adaptor3d_Surface::NbVKnots() const
Standard_Boolean Adaptor3d_Surface::IsURational() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsURational");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::IsURational");
}
@ -525,8 +492,7 @@ Standard_Boolean Adaptor3d_Surface::IsURational() const
Standard_Boolean Adaptor3d_Surface::IsVRational() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVRational");
return 0;
throw Standard_NotImplemented("Adaptor3d_Surface::IsVRational");
}
@ -537,8 +503,7 @@ Standard_Boolean Adaptor3d_Surface::IsVRational() const
Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Bezier");
return Handle(Geom_BezierSurface)();
throw Standard_NotImplemented("Adaptor3d_Surface::Bezier");
}
@ -549,8 +514,7 @@ Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const
Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::BSpline");
return Handle(Geom_BSplineSurface)();
throw Standard_NotImplemented("Adaptor3d_Surface::BSpline");
}
@ -561,8 +525,7 @@ Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const
gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::AxeOfRevolution");
return gp_Ax1();
throw Standard_NotImplemented("Adaptor3d_Surface::AxeOfRevolution");
}
@ -573,8 +536,7 @@ gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const
gp_Dir Adaptor3d_Surface::Direction() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::Direction");
return gp_Dir();
throw Standard_NotImplemented("Adaptor3d_Surface::Direction");
}
@ -585,8 +547,7 @@ gp_Dir Adaptor3d_Surface::Direction() const
Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisCurve");
return Handle(Adaptor3d_HCurve)();
throw Standard_NotImplemented("Adaptor3d_Surface::BasisCurve");
}
@ -597,8 +558,7 @@ Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const
Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisSurface");
return Handle(Adaptor3d_HSurface)();
throw Standard_NotImplemented("Adaptor3d_Surface::BasisSurface");
}
@ -609,6 +569,5 @@ Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const
Standard_Real Adaptor3d_Surface::OffsetValue() const
{
Standard_NotImplemented::Raise("Adaptor3d_Surface::OffsetValue");
return 0.;
throw Standard_NotImplemented("Adaptor3d_Surface::OffsetValue");
}

View File

@ -73,7 +73,7 @@ Adaptor3d_TopolTool::Adaptor3d_TopolTool (const Handle(Adaptor3d_HSurface)& S)
void Adaptor3d_TopolTool::Initialize ()
{
Standard_NotImplemented::Raise("Adaptor3d_TopolTool::Initialize ()");
throw Standard_NotImplemented("Adaptor3d_TopolTool::Initialize ()");
}
void Adaptor3d_TopolTool::Initialize (const Handle(Adaptor3d_HSurface)& S)
@ -222,7 +222,7 @@ Standard_Boolean Adaptor3d_TopolTool::More ()
Handle(Adaptor2d_HCurve2d) Adaptor3d_TopolTool::Value ()
{
if (idRestr >= nbRestr) {Standard_DomainError::Raise();}
if (idRestr >= nbRestr) {throw Standard_DomainError();}
return myRestr[idRestr];
}
@ -266,7 +266,7 @@ Standard_Boolean Adaptor3d_TopolTool::MoreVertex ()
Handle(Adaptor3d_HVertex) Adaptor3d_TopolTool::Vertex ()
{
if (idVtx >= nbVtx) {Standard_DomainError::Raise();}
if (idVtx >= nbVtx) {throw Standard_DomainError();}
return myVtx[idVtx];
}
@ -812,8 +812,7 @@ Standard_Boolean Adaptor3d_TopolTool::Has3d() const
Standard_Real Adaptor3d_TopolTool::Tol3d(const Handle(Adaptor2d_HCurve2d)&) const
{
Standard_DomainError::Raise("Adaptor3d_TopolTool: has no 3d representation");
return 0.;
throw Standard_DomainError("Adaptor3d_TopolTool: has no 3d representation");
}
//=======================================================================
@ -823,8 +822,7 @@ Standard_Real Adaptor3d_TopolTool::Tol3d(const Handle(Adaptor2d_HCurve2d)&) cons
Standard_Real Adaptor3d_TopolTool::Tol3d(const Handle(Adaptor3d_HVertex)&) const
{
Standard_DomainError::Raise("Adaptor3d_TopolTool: has no 3d representation");
return 0.;
throw Standard_DomainError("Adaptor3d_TopolTool: has no 3d representation");
}
//=======================================================================
@ -834,8 +832,7 @@ Standard_Real Adaptor3d_TopolTool::Tol3d(const Handle(Adaptor3d_HVertex)&) const
gp_Pnt Adaptor3d_TopolTool::Pnt(const Handle(Adaptor3d_HVertex)&) const
{
Standard_DomainError::Raise("Adaptor3d_TopolTool: has no 3d representation");
return gp::Origin();
throw Standard_DomainError("Adaptor3d_TopolTool: has no 3d representation");
}

View File

@ -197,7 +197,7 @@ void AdvApp2Var_ApproxAFunc2Var::Init()
iu = 2;
break;
default :
Standard_ConstructionError::Raise("AdvApp2Var_ApproxAFunc2Var : UContinuity Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : UContinuity Error");
}
switch (myContInV) {
case GeomAbs_C0 :
@ -210,14 +210,14 @@ void AdvApp2Var_ApproxAFunc2Var::Init()
iv = 2;
break;
default :
Standard_ConstructionError::Raise("AdvApp2Var_ApproxAFunc2Var : VContinuity Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : VContinuity Error");
}
ndu = Max(myMaxDegInU+1,2*iu+2);
ndv = Max(myMaxDegInV+1,2*iv+2);
if (ndu<2*iu+2)
Standard_ConstructionError::Raise("AdvApp2Var_ApproxAFunc2Var : UMaxDegree Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : UMaxDegree Error");
if (ndv<2*iv+2)
Standard_ConstructionError::Raise("AdvApp2Var_ApproxAFunc2Var : VMaxDegree Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : VMaxDegree Error");
myPrecisionCode = Max(0,Min(myPrecisionCode,3));
AdvApp2Var_Context Conditions(ifav,iu,iv,ndu,ndv,
myPrecisionCode,
@ -363,8 +363,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice
myResult(FirstNA).Discretise(myConditions,myConstraints,Func);
if ( ! myResult(FirstNA).IsDiscretised() ) {
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Surface Discretisation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Surface Discretisation Error");
}
// calculate the number and the type of autorized cuts
@ -403,8 +402,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice
}
else {
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
}
break;
case 1 :
@ -426,8 +424,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice
break;
default :
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
}
}
}
@ -460,8 +457,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice
myResult(FirstNA).Discretise(myConditions,myConstraints,Func);
if ( ! myResult(FirstNA).IsDiscretised() ) {
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Surface Discretisation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Surface Discretisation Error");
}
// calculate the number and type of autorized cuts
@ -521,8 +517,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice
}
else {
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
}
break;
case 1 :
@ -544,8 +539,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice
break;
default :
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Surface Approximation Error");
}
}
}
@ -623,8 +617,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(const AdvApprox_Cutting& UCh
}
else {
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Curve Approximation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Curve Approximation Error");
}
}
}
@ -708,8 +701,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(const AdvApprox_Cutting& UCh
}
else {
myHasResult = myDone = Standard_False;
Standard_ConstructionError::Raise
("AdvApp2Var_ApproxAFunc2Var : Curve Approximation Error");
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : Curve Approximation Error");
}
}
}
@ -880,8 +872,7 @@ Handle(TColStd_HArray1OfReal)
{
Handle (TColStd_HArray1OfReal) EPtr;
if (Dimension <1 || Dimension >3) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::MaxError : Dimension must be equal to 1,2 or 3 !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::MaxError : Dimension must be equal to 1,2 or 3 !");
}
switch (Dimension) {
case 1:
@ -907,8 +898,7 @@ Handle(TColStd_HArray1OfReal)
{
Handle (TColStd_HArray1OfReal) EPtr;
if (Dimension <1 || Dimension >3) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::AverageError : Dimension must be equal to 1,2 or 3 !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::AverageError : Dimension must be equal to 1,2 or 3 !");
}
switch (Dimension) {
case 1:
@ -934,8 +924,7 @@ Handle(TColStd_HArray1OfReal)
{
Handle (TColStd_HArray1OfReal) EPtr;
if (Dimension <1 || Dimension >3) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::UFrontError : Dimension must be equal to 1,2 or 3 !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::UFrontError : Dimension must be equal to 1,2 or 3 !");
}
switch (Dimension) {
case 1:
@ -961,8 +950,7 @@ Handle(TColStd_HArray1OfReal)
{
Handle (TColStd_HArray1OfReal) EPtr;
if (Dimension <=0 || Dimension >3) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::VFrontError : Dimension must be equal to 1,2 or 3 !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::VFrontError : Dimension must be equal to 1,2 or 3 !");
}
switch (Dimension) {
case 1:
@ -988,8 +976,7 @@ Standard_Real
const Standard_Integer SSPIndex) const
{
if (Dimension !=3 || SSPIndex !=1) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::MaxError: ONE Surface 3D only !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::MaxError: ONE Surface 3D only !");
}
Handle (TColStd_HArray1OfReal) EPtr = MaxError(Dimension);
return EPtr->Value(SSPIndex);
@ -1005,8 +992,7 @@ Standard_Real
const Standard_Integer SSPIndex) const
{
if (Dimension !=3 || SSPIndex !=1) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::AverageError : ONE Surface 3D only !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::AverageError : ONE Surface 3D only !");
}
Handle (TColStd_HArray1OfReal) EPtr = AverageError(Dimension);
return EPtr->Value(SSPIndex);
@ -1022,8 +1008,7 @@ Standard_Real
const Standard_Integer SSPIndex) const
{
if (Dimension !=3 || SSPIndex !=1) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::UFrontError : ONE Surface 3D only !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::UFrontError : ONE Surface 3D only !");
}
Handle (TColStd_HArray1OfReal) EPtr = UFrontError(Dimension);
return EPtr->Value(SSPIndex);
@ -1039,8 +1024,7 @@ Standard_Real
const Standard_Integer SSPIndex) const
{
if (Dimension !=3 || SSPIndex !=1) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::VFrontError : ONE Surface 3D only !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::VFrontError : ONE Surface 3D only !");
}
Handle (TColStd_HArray1OfReal) EPtr = VFrontError(Dimension);
return EPtr->Value(SSPIndex);
@ -1057,8 +1041,7 @@ Standard_Real
const Standard_Integer SSPIndex) const
{
if (Dimension !=3 || SSPIndex !=1) {
Standard_OutOfRange::Raise
("AdvApp2Var_ApproxAFunc2Var::CritError: ONE Surface 3D only !");
throw Standard_OutOfRange("AdvApp2Var_ApproxAFunc2Var::CritError: ONE Surface 3D only !");
}
return myCriterionError;
}

View File

@ -102,7 +102,7 @@ Standard_Integer ncfl;
ncfl = nlimu;
if (ncfl<2*iu+2) ncfl = 2*iu+2;
if (!lesparam(iu,ncfl,iprecis,NbPntU,JDegU) )
{ Standard_ConstructionError::Raise("AdvApp2Var_Context");}
{ throw Standard_ConstructionError("AdvApp2Var_Context");}
myNbURoot = NbPntU;
myJDegU = JDegU;
if (iu>-1) NbPntU = myNbURoot - 2;
@ -121,7 +121,7 @@ ncfl = nlimv;
if (ncfl<2*iv+2) ncfl = 2*iv+2;
//Ma1nbp(&iv,&ncfl,&iprec,&NbPntV,&JDegV,&ErrorCode);
if (!lesparam(iv, ncfl, iprecis, NbPntV, JDegV) )
{ Standard_ConstructionError::Raise("AdvApp2Var_Context");}
{ throw Standard_ConstructionError("AdvApp2Var_Context");}
myNbVRoot = NbPntV;
myJDegV = JDegV;
if (iv>-1) NbPntV = myNbVRoot - 2;
@ -156,7 +156,7 @@ Standard_Real *UG_array =
(Standard_Real *) &UGauss->ChangeArray1()(UGauss->Lower());
AdvApp2Var_ApproxF2var::mmapptt_(&JDegU,&NbPntU,&iu,UG_array,&ErrorCode);
if (ErrorCode != 0 ) {
Standard_ConstructionError::Raise("AdvApp2Var_Context : Error in FORTRAN");
throw Standard_ConstructionError("AdvApp2Var_Context : Error in FORTRAN");
}
myUGauss = UGauss;
@ -168,7 +168,7 @@ Standard_Real *VG_array =
(Standard_Real *) &VGauss->ChangeArray1()(VGauss->Lower());
AdvApp2Var_ApproxF2var::mmapptt_(&JDegV,&NbPntV,&iv,VG_array,&ErrorCode);
if (ErrorCode != 0 ) {
Standard_ConstructionError::Raise("AdvApp2Var_Context : Error in FORTRAN");
throw Standard_ConstructionError("AdvApp2Var_Context : Error in FORTRAN");
}
myVGauss = VGauss;

View File

@ -502,8 +502,7 @@ void AdvApp2Var_Patch::AddConstraints(const AdvApp2Var_Context& Conditions,
if (IORDRV>=0) {
AdvApp2Var_ApproxF2var::mma1her_(&IORDRV,HermV,&IERCOD);
if (IERCOD!=0) {
Standard_ConstructionError::Raise
("AdvApp2Var_Patch::AddConstraints : Error in FORTRAN");
throw Standard_ConstructionError("AdvApp2Var_Patch::AddConstraints : Error in FORTRAN");
}
AdvApp2Var_ApproxF2var::mma2ac2_(&NDIMEN,
&NDegU,
@ -526,8 +525,7 @@ void AdvApp2Var_Patch::AddConstraints(const AdvApp2Var_Context& Conditions,
if (IORDRU>=0) {
AdvApp2Var_ApproxF2var::mma1her_(&IORDRU,HermU,&IERCOD);
if (IERCOD!=0) {
Standard_ConstructionError::Raise
("AdvApp2Var_Patch::AddConstraints : Error in FORTRAN");
throw Standard_ConstructionError("AdvApp2Var_Patch::AddConstraints : Error in FORTRAN");
}
AdvApp2Var_ApproxF2var::mma2ac3_(&NDIMEN,&NDegU,&NDegV,&IORDRU,&NCFLMV,
NCFU0,IsoU0,NCFU1,IsoU1,HermU,PATCAN);
@ -910,8 +908,7 @@ void AdvApp2Var_Patch::MakeApprox(const AdvApp2Var_Context& Conditions,
&myNbCoeffInV,
PATJAC,PATAUX,PATCAN,&IERCOD);
if (IERCOD !=0) {
Standard_ConstructionError::Raise
("AdvApp2Var_Patch::MakeApprox : Error in FORTRAN");
throw Standard_ConstructionError("AdvApp2Var_Patch::MakeApprox : Error in FORTRAN");
}
myEquation = HPCAN;
@ -1173,8 +1170,7 @@ AdvApp2Var_Patch::Poles(const Standard_Integer SSPIndex,
SousEquation = myEquation;
}
else {
Standard_ConstructionError::Raise
("AdvApp2Var_Patch::Poles : SSPIndex out of range");
throw Standard_ConstructionError("AdvApp2Var_Patch::Poles : SSPIndex out of range");
}
Handle(TColStd_HArray1OfReal) Intervalle =
new (TColStd_HArray1OfReal) (1,2);
@ -1214,8 +1210,7 @@ AdvApp2Var_Patch::Coefficients(const Standard_Integer SSPIndex,
SousEquation = myEquation;
}
else {
Standard_ConstructionError::Raise
("AdvApp2Var_Patch::Poles : SSPIndex out of range");
throw Standard_ConstructionError("AdvApp2Var_Patch::Poles : SSPIndex out of range");
}
return SousEquation;
}

View File

@ -459,7 +459,7 @@ void AdvApprox_ApproxAFunction::Approximation(
Continuity = GeomAbs_C2 ;
break ;
default:
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
//--------------------- Choix du nombre de points ----------------------
@ -683,7 +683,7 @@ void AdvApprox_ApproxAFunction::Perform(const Standard_Integer Num1DSS,
myLast < myFirst ||
myMaxDegree < 1 ||
myMaxSegments < 0)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
if (myMaxDegree > 14) {
myMaxDegree = 14 ;
}
@ -717,7 +717,7 @@ void AdvApprox_ApproxAFunction::Perform(const Standard_Integer Num1DSS,
ContinuityOrder = 2 ;
break ;
default:
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
Standard_Real ApproxStartEnd[2] ;
Standard_Integer NumMaxCoeffs = Max(myMaxDegree + 1, 2 * ContinuityOrder + 2);
@ -1019,7 +1019,7 @@ Handle(TColStd_HArray1OfReal)
if (D <= 0 ||
D > 3) {
Standard_OutOfRange::Raise() ;
throw Standard_OutOfRange() ;
}
switch (D) {
case 1:
@ -1059,7 +1059,7 @@ Handle(TColStd_HArray1OfReal)
if (D <= 0 ||
D > 3) {
Standard_OutOfRange::Raise() ;
throw Standard_OutOfRange() ;
}
switch (D) {
case 1:

View File

@ -90,5 +90,5 @@ AdvApprox_ApproxAFunction::Multiplicities() const
//=======================================================================
inline Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces(const Standard_Integer Dimension) const
{ if (Dimension < 1 || Dimension > 3) Standard_ConstructionError::Raise() ;
{ if (Dimension < 1 || Dimension > 3) throw Standard_ConstructionError() ;
return myNumSubSpaces[Dimension-1] ; }

View File

@ -28,7 +28,7 @@ AdvApprox_PrefAndRec::AdvApprox_PrefAndRec(const TColStd_Array1OfReal& RecCut,
{
myRecCutting = RecCut;
myPrefCutting = PrefCut;
if (myWeight <= 1) { Standard_DomainError::Raise("PrefAndRec : Weight is too small");}
if (myWeight <= 1) { throw Standard_DomainError("PrefAndRec : Weight is too small");}
}
Standard_Boolean AdvApprox_PrefAndRec::Value(const Standard_Real a,

View File

@ -56,7 +56,7 @@ AdvApprox_SimpleApprox(const Standard_Integer TotalDimension,
case GeomAbs_C1: myNivConstr = 1; break;
case GeomAbs_C2: myNivConstr = 2; break;
default:
Standard_ConstructionError::Raise("Invalid Continuity");
throw Standard_ConstructionError("Invalid Continuity");
}
Standard_Integer DegreeQ = myWorkDegree - 2*(myNivConstr+1);

View File

@ -117,7 +117,7 @@ void AppBlend_AppSurf::CriteriumWeight(Standard_Real& W1, Standard_Real& W2, Sta
void AppBlend_AppSurf::SetCriteriumWeight(const Standard_Real W1, const Standard_Real W2, const Standard_Real W3)
{
if (W1 < 0 || W2 < 0 || W3 < 0 ) Standard_DomainError::Raise();
if (W1 < 0 || W2 < 0 || W3 < 0 ) throw Standard_DomainError();
critweights[0] = W1;
critweights[1] = W2;
critweights[2] = W3;
@ -906,7 +906,7 @@ void AppBlend_AppSurf::SurfShape (Standard_Integer& UDegree,
Standard_Integer& NbUKnots,
Standard_Integer& NbVKnots) const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
UDegree = udeg;
VDegree = vdeg;
NbUPoles = tabPoles->ColLength();
@ -924,7 +924,7 @@ void AppBlend_AppSurf::Surface(TColgp_Array2OfPnt& TPoles,
TColStd_Array1OfInteger& TVMults) const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
TPoles = tabPoles->Array2();
TWeights = tabWeights->Array2();
TUKnots = tabUKnots->Array1();
@ -942,8 +942,8 @@ void AppBlend_AppSurf::Curves2dShape(Standard_Integer& Degree,
Standard_Integer& NbPoles,
Standard_Integer& NbKnots) const
{
if (!done) {StdFail_NotDone::Raise();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
Degree = vdeg;
NbPoles = tabPoles->ColLength();
NbKnots = tabVKnots->Length();
@ -959,8 +959,8 @@ void AppBlend_AppSurf::Curve2d(const Standard_Integer Index,
TColStd_Array1OfReal& TKnots,
TColStd_Array1OfInteger& TMults) const
{
if (!done) {StdFail_NotDone::Raise();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
TPoles = seqPoles2d(Index)->Array1();
TKnots = tabVKnots->Array1();
TMults = tabVMults->Array1();

View File

@ -28,92 +28,92 @@ inline Standard_Boolean AppBlend_AppSurf::IsDone() const
inline Standard_Integer AppBlend_AppSurf::UDegree() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return udeg;
}
inline Standard_Integer AppBlend_AppSurf::VDegree() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return vdeg;
}
inline const TColgp_Array2OfPnt& AppBlend_AppSurf::SurfPoles() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return tabPoles->Array2();
}
inline const TColStd_Array2OfReal& AppBlend_AppSurf::SurfWeights() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return tabWeights->Array2();
}
inline const TColStd_Array1OfReal& AppBlend_AppSurf::SurfUKnots() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return tabUKnots->Array1();
}
inline const TColStd_Array1OfReal& AppBlend_AppSurf::SurfVKnots() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return tabVKnots->Array1();
}
inline const TColStd_Array1OfInteger& AppBlend_AppSurf::SurfUMults() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return tabUMults->Array1();
}
inline const TColStd_Array1OfInteger& AppBlend_AppSurf::SurfVMults() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return tabVMults->Array1();
}
inline Standard_Integer AppBlend_AppSurf::NbCurves2d () const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return seqPoles2d.Length();
}
inline Standard_Integer AppBlend_AppSurf::Curves2dDegree() const
{
if (!done) {StdFail_NotDone::Raise();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return vdeg;
}
inline const TColgp_Array1OfPnt2d& AppBlend_AppSurf::
Curve2dPoles(const Standard_Integer Index) const
{
if (!done) {StdFail_NotDone::Raise();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return seqPoles2d(Index)->Array1();
}
inline const TColStd_Array1OfReal& AppBlend_AppSurf::Curves2dKnots () const
{
if (!done) {StdFail_NotDone::Raise();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return tabVKnots->Array1();
}
inline const TColStd_Array1OfInteger& AppBlend_AppSurf::Curves2dMults () const
{
if (!done) {StdFail_NotDone::Raise();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return tabVMults->Array1();
}
inline void AppBlend_AppSurf::TolReached (Standard_Real& Tol3d,
Standard_Real& Tol2d) const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
Tol3d = tol3dreached;
Tol2d = tol2dreached;
}

View File

@ -2069,7 +2069,7 @@ static const Standard_Real IMatrix[] = {
void InvMMatrix(const Standard_Integer classe,
math_Matrix& InvM)
{
if (classe > 24) Standard_DimensionError::Raise("InvMMatrix: classe > 24");
if (classe > 24) throw Standard_DimensionError("InvMMatrix: classe > 24");
Standard_Integer i, j, k = 0, Som = 0;
for (i = 2; i < classe; i++) {
Som += (i)*(i);

View File

@ -414,7 +414,7 @@ static const Standard_Real IBP[] = {
void IBPMatrix(const Standard_Integer classe, math_Matrix& IBPMa)
{
if (classe > 26) Standard_DimensionError::Raise("IBPMatrix: classe > 26");
if (classe > 26) throw Standard_DimensionError("IBPMatrix: classe > 26");
// math_Matrix IBPMa(1, classe-2, 1, classe-2);
Standard_Integer i, j, k = 0, Som = 0;
for (i = 1; i < classe-2; i++) {

View File

@ -3276,7 +3276,7 @@ static const Standard_Real BBMatrix[] = {
void MMatrix(const Standard_Integer classe,
math_Matrix& M)
{
if (classe > 24) Standard_DimensionError::Raise("MMatrix: classe > 24");
if (classe > 24) throw Standard_DimensionError("MMatrix: classe > 24");
Standard_Integer i, j, k = 0, Som = 0;
for (i = 2; i < classe; i++) {
Som += (i)*(i);

View File

@ -352,7 +352,7 @@ static const Standard_Real IBT[] = {
void IBTMatrix(const Standard_Integer classe, math_Matrix& IBTMa)
{
if (classe > 26) Standard_DimensionError::Raise("IBTMatrix: classe > 26");
if (classe > 26) throw Standard_DimensionError("IBTMatrix: classe > 26");
// math_Matrix IBTMa(1, classe-4, 1, classe-4);
Standard_Integer i, j, k = 0, Som = 0;
for (i = 1; i < classe-4; i++) {

View File

@ -1234,8 +1234,8 @@ void VBernstein(const Standard_Integer classe,
const Standard_Integer nbpoints,
math_Matrix& M)
{
if (classe > 26) Standard_DimensionError::Raise("VBernstein: classe > 26");
if (nbpoints > 24) Standard_DimensionError::Raise("VBernstein: nbpoints > 24");
if (classe > 26) throw Standard_DimensionError("VBernstein: classe > 26");
if (nbpoints > 24) throw Standard_DimensionError("VBernstein: nbpoints > 24");
// math_Matrix VB(classe, nbpoints);
Standard_Integer i, j, k = 0, Som;

View File

@ -204,7 +204,7 @@ void AppDef_LinearCriteria::GetEstimation(Standard_Real& E1,
//=======================================================================
Handle(FEmTool_HAssemblyTable) AppDef_LinearCriteria::AssemblyTable() const
{
if(myCurve.IsNull()) Standard_DomainError::Raise("AppDef_LinearCriteria::AssemblyTable");
if(myCurve.IsNull()) throw Standard_DomainError("AppDef_LinearCriteria::AssemblyTable");
Standard_Integer NbDim = myCurve->Dimension(),
NbElm = myCurve->NbElements(),
@ -279,7 +279,7 @@ Handle(FEmTool_HAssemblyTable) AppDef_LinearCriteria::AssemblyTable() const
//=======================================================================
Handle(TColStd_HArray2OfInteger) AppDef_LinearCriteria::DependenceTable() const
{
if(myCurve.IsNull()) Standard_DomainError::Raise("AppDef_LinearCriteria::DependenceTable");
if(myCurve.IsNull()) throw Standard_DomainError("AppDef_LinearCriteria::DependenceTable");
Standard_Integer Dim = myCurve->Dimension();
@ -304,7 +304,7 @@ Standard_Integer AppDef_LinearCriteria::QualityValues(const Standard_Real J1min,
Standard_Real& J2,
Standard_Real& J3)
{
if(myCurve.IsNull()) Standard_DomainError::Raise("AppDef_LinearCriteria::QualityValues");
if(myCurve.IsNull()) throw Standard_DomainError("AppDef_LinearCriteria::QualityValues");
Standard_Integer NbDim = myCurve->Dimension(),
NbElm = myCurve->NbElements();
@ -414,13 +414,13 @@ void AppDef_LinearCriteria::ErrorValues(Standard_Real& MaxError,
Standard_Real& QuadraticError,
Standard_Real& AverageError)
{
if(myCurve.IsNull()) Standard_DomainError::Raise("AppDef_LinearCriteria::ErrorValues");
if(myCurve.IsNull()) throw Standard_DomainError("AppDef_LinearCriteria::ErrorValues");
Standard_Integer NbDim = myCurve->Dimension();
Standard_Integer myNbP2d = AppDef_MyLineTool::NbP2d(mySSP), myNbP3d = AppDef_MyLineTool::NbP3d(mySSP);
if(NbDim != (2*myNbP2d + 3*myNbP3d)) Standard_DomainError::Raise("AppDef_LinearCriteria::ErrorValues");
if(NbDim != (2*myNbP2d + 3*myNbP3d)) throw Standard_DomainError("AppDef_LinearCriteria::ErrorValues");
TColgp_Array1OfPnt TabP3d(1, Max(1,myNbP3d));
TColgp_Array1OfPnt2d TabP2d(1, Max(1,myNbP2d));
@ -473,10 +473,10 @@ void AppDef_LinearCriteria::Hessian(const Standard_Integer Element,
const Standard_Integer Dimension2,
math_Matrix& H)
{
if(myCurve.IsNull()) Standard_DomainError::Raise("AppDef_LinearCriteria::Hessian");
if(myCurve.IsNull()) throw Standard_DomainError("AppDef_LinearCriteria::Hessian");
if(DependenceTable()->Value(Dimension1, Dimension2) == 0)
Standard_DomainError::Raise("AppDef_LinearCriteria::Hessian");
throw Standard_DomainError("AppDef_LinearCriteria::Hessian");
Standard_Integer //NbDim = myCurve->Dimension(),
MxDeg = myCurve->Base()->WorkDegree(),
@ -570,12 +570,12 @@ void AppDef_LinearCriteria::Gradient(const Standard_Integer Element,
math_Vector& G)
{
if(myCurve.IsNull())
Standard_DomainError::Raise("AppDef_LinearCriteria::ErrorValues");
throw Standard_DomainError("AppDef_LinearCriteria::ErrorValues");
Standard_Integer myNbP2d = AppDef_MyLineTool::NbP2d(mySSP), myNbP3d = AppDef_MyLineTool::NbP3d(mySSP);
if(Dimension > (2*myNbP2d + 3*myNbP3d))
Standard_DomainError::Raise("AppDef_LinearCriteria::ErrorValues");
throw Standard_DomainError("AppDef_LinearCriteria::ErrorValues");
TColgp_Array1OfPnt TabP3d(1, Max(1,myNbP3d));
TColgp_Array1OfPnt2d TabP2d(1, Max(1,myNbP2d));
@ -687,9 +687,9 @@ void AppDef_LinearCriteria::SetWeight(const Standard_Real QuadraticWeight,
const Standard_Real percentJ3)
{
if (QuadraticWeight < 0. || QualityWeight < 0.)
Standard_DomainError::Raise("AppDef_LinearCriteria::SetWeight");
throw Standard_DomainError("AppDef_LinearCriteria::SetWeight");
if (percentJ1 < 0. || percentJ2 < 0. || percentJ3 < 0.)
Standard_DomainError::Raise("AppDef_LinearCriteria::SetWeight");
throw Standard_DomainError("AppDef_LinearCriteria::SetWeight");
myQuadraticWeight = QuadraticWeight; myQualityWeight = QualityWeight;

View File

@ -26,7 +26,7 @@ AppDef_MultiLine::AppDef_MultiLine(){}
AppDef_MultiLine::AppDef_MultiLine (const Standard_Integer NbMult)
{
if (NbMult < 0 ) Standard_ConstructionError::Raise();
if (NbMult < 0 ) throw Standard_ConstructionError();
tabMult = new AppDef_HArray1OfMultiPointConstraint (1, NbMult);
}
@ -81,7 +81,7 @@ Standard_Integer AppDef_MultiLine::NbPoints() const {
void AppDef_MultiLine::SetValue (const Standard_Integer Index,
const AppDef_MultiPointConstraint& MPoint) {
if ((Index <= 0) || (Index > tabMult->Length())) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
tabMult->SetValue(Index, MPoint);
}
@ -89,7 +89,7 @@ void AppDef_MultiLine::SetValue (const Standard_Integer Index,
AppDef_MultiPointConstraint AppDef_MultiLine::Value (const Standard_Integer Index) const
{
if ((Index <= 0) || (Index > tabMult->Length())) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabMult->Value(Index);
}

View File

@ -74,7 +74,7 @@ AppDef_MultiPointConstraint::AppDef_MultiPointConstraint
(tabP2d.Length() != tabVec2d.Length()) ||
(tabCur.Length() != tabP.Length()) ||
(tabCur2d.Length() != tabP2d.Length())) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
tabTang = new TColgp_HArray1OfVec(1, tabVec.Length());
@ -113,7 +113,7 @@ AppDef_MultiPointConstraint::AppDef_MultiPointConstraint
if ((tabP.Length() != tabVec.Length()) ||
(tabP2d.Length() != tabVec2d.Length())) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
tabTang = new TColgp_HArray1OfVec(1, tabVec.Length());
@ -137,7 +137,7 @@ AppDef_MultiPointConstraint::AppDef_MultiPointConstraint (
AppParCurves_MultiPoint(tabP) {
if (tabP.Length() != tabVec.Length()) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
tabTang = new TColgp_HArray1OfVec(1, tabVec.Length());
@ -157,7 +157,7 @@ AppDef_MultiPointConstraint::AppDef_MultiPointConstraint
if ((tabP.Length() != tabVec.Length()) ||
(tabP.Length() != tabCur.Length())) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
tabTang = new TColgp_HArray1OfVec(1, tabVec.Length());
@ -182,7 +182,7 @@ AppDef_MultiPointConstraint::AppDef_MultiPointConstraint
AppParCurves_MultiPoint(tabP2d) {
if (tabP2d.Length() != tabVec2d.Length()) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
tabTang2d = new TColgp_HArray1OfVec2d(1, tabVec2d.Length());
@ -203,7 +203,7 @@ AppDef_MultiPointConstraint::AppDef_MultiPointConstraint
if ((tabP2d.Length() != tabVec2d.Length()) ||
(tabCur2d.Length() != tabP2d.Length())) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
tabTang2d = new TColgp_HArray1OfVec2d(1, tabVec2d.Length());
@ -226,7 +226,7 @@ void AppDef_MultiPointConstraint::SetTang (const Standard_Integer Index,
if (tabTang.IsNull())
tabTang = new TColgp_HArray1OfVec (1, nbP);
if ((Index <= 0) || (Index > nbP)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
tabTang->SetValue(Index, Tang);
}
@ -234,7 +234,7 @@ void AppDef_MultiPointConstraint::SetTang (const Standard_Integer Index,
gp_Vec AppDef_MultiPointConstraint::Tang (const Standard_Integer Index) const {
if ((Index <= 0) || (Index > nbP)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabTang->Value(Index);
}
@ -248,7 +248,7 @@ void AppDef_MultiPointConstraint::SetTang2d (const Standard_Integer Index,
if ((Index <= nbP) ||
(Index > nbP+nbP2d)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
tabTang2d->SetValue(Index-nbP, Tang2d);
}
@ -257,7 +257,7 @@ void AppDef_MultiPointConstraint::SetTang2d (const Standard_Integer Index,
gp_Vec2d AppDef_MultiPointConstraint::Tang2d (const Standard_Integer Index) const {
if ((Index <= nbP) ||
(Index > nbP+nbP2d)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabTang2d->Value(Index-nbP);
}
@ -267,7 +267,7 @@ void AppDef_MultiPointConstraint::SetCurv (const Standard_Integer Index, const g
if (tabCurv.IsNull())
tabCurv = new TColgp_HArray1OfVec (1, nbP);
if ((Index <= 0) || (Index > nbP)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
tabCurv->SetValue(Index, Curv);
}
@ -275,7 +275,7 @@ void AppDef_MultiPointConstraint::SetCurv (const Standard_Integer Index, const g
gp_Vec AppDef_MultiPointConstraint::Curv (const Standard_Integer Index) const {
if ((Index <= 0) || (Index > nbP)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabCurv->Value(Index);
}
@ -288,7 +288,7 @@ void AppDef_MultiPointConstraint::SetCurv2d (const Standard_Integer Index,
tabCurv2d = new TColgp_HArray1OfVec2d (1, nbP2d);
if ((Index <= nbP) ||
(Index > nbP+nbP2d)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
tabCurv2d->SetValue(Index- nbP, Curv2d);
}
@ -298,7 +298,7 @@ void AppDef_MultiPointConstraint::SetCurv2d (const Standard_Integer Index,
gp_Vec2d AppDef_MultiPointConstraint::Curv2d (const Standard_Integer Index) const {
if ((Index <= nbP) ||
(Index > nbP+nbP2d)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabCurv2d->Value(Index - nbP);
}

View File

@ -117,13 +117,13 @@ myWithMinMax(WithMinMax),
myWithCutting(WithCutting)
{
// Verifications:
if (myMaxDegree < 1) Standard_DomainError::Raise();
if (myMaxDegree < 1) throw Standard_DomainError();
myMaxDegree = Min (30, myMaxDegree);
//
if (myMaxSegment < 1) Standard_DomainError::Raise();
if (myMaxSegment < 1) throw Standard_DomainError();
//
if (myWithMinMax != 0 && myWithMinMax !=1 ) Standard_DomainError::Raise();
if (myWithCutting != 0 && myWithCutting !=1 ) Standard_DomainError::Raise();
if (myWithMinMax != 0 && myWithMinMax !=1 ) throw Standard_DomainError();
if (myWithCutting != 0 && myWithCutting !=1 ) throw Standard_DomainError();
//
myIsOverConstr = Standard_False;
myIsCreated = Standard_False;
@ -139,7 +139,7 @@ myWithCutting(WithCutting)
myNivCont=2;
break ;
default:
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
//
myNbP2d = AppDef_MyLineTool::NbP2d(SSP);
@ -158,7 +158,7 @@ myWithCutting(WithCutting)
mySmoothCriterion = new AppDef_LinearCriteria(mySSP, myFirstPoint, myLastPoint);
myParameters = new TColStd_HArray1OfReal(myFirstPoint, myLastPoint);
myNbPoints=myLastPoint-myFirstPoint+1;
if (myNbPoints <= 0) Standard_ConstructionError::Raise();
if (myNbPoints <= 0) throw Standard_ConstructionError();
//
myTabPoints= new TColStd_HArray1OfReal(1,myDimension*myNbPoints);
//
@ -242,7 +242,7 @@ void AppDef_Variational::Init()
gp_Vec2d Vt2d, Vc2d;
myNbConstraints=myConstraints->Length();
if (myNbConstraints < 0) Standard_ConstructionError::Raise();
if (myNbConstraints < 0) throw Standard_ConstructionError();
myTypConstraints = new TColStd_HArray1OfInteger(1,Max(1,2*myNbConstraints));
myTabConstraints = new TColStd_HArray1OfReal(1,Max(1,2*myDimension*myNbConstraints));
@ -284,7 +284,7 @@ void AppDef_Variational::Init()
if(myNbP2d !=0 && myNbP3d == 0 )
{
if (AppDef_MyLineTool::Tangency(mySSP,ipoint,TabV2d) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
for (jp2d=1;jp2d<=myNbP2d;jp2d++)
{
Vt2d=TabV2d.Value(jp2d);
@ -298,7 +298,7 @@ void AppDef_Variational::Init()
if(myNbP3d !=0 && myNbP2d == 0)
{
if (AppDef_MyLineTool::Tangency(mySSP,ipoint,TabV3d) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
for (jp3d=1;jp3d<=myNbP3d;jp3d++)
{
Vt3d=TabV3d.Value(jp3d);
@ -315,7 +315,7 @@ void AppDef_Variational::Init()
if(myNbP3d !=0 && myNbP2d != 0)
{
if (AppDef_MyLineTool::Tangency(mySSP,ipoint,TabV3d,TabV2d) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
for (jp3d=1;jp3d<=myNbP3d;jp3d++)
{
Vt3d=TabV3d.Value(jp3d);
@ -348,16 +348,16 @@ void AppDef_Variational::Init()
if(myNbP2d !=0 && myNbP3d == 0)
{
if (AppDef_MyLineTool::Tangency(mySSP,ipoint,TabV2d) == Standard_False )
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
if (AppDef_MyLineTool::Curvature(mySSP,ipoint,TabV2dcurv) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
for (jp2d=1;jp2d<=myNbP2d;jp2d++)
{
Vt2d=TabV2d.Value(jp2d);
Vt2d.Normalize();
Vc2d=TabV2dcurv.Value(jp2d);
if (Abs(Abs(Vc2d.Angle(Vt2d)) - M_PI/2.) > Precision::Angular())
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
myTabConstraints->SetValue(jndex++,Vt2d.X());
myTabConstraints->SetValue(jndex++,Vt2d.Y());
myTabConstraints->SetValue(jndex++,Vc2d.X());
@ -369,16 +369,16 @@ void AppDef_Variational::Init()
if(myNbP3d !=0 && myNbP2d == 0 )
{
if (AppDef_MyLineTool::Tangency(mySSP,ipoint,TabV3d) == Standard_False )
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
if (AppDef_MyLineTool::Curvature(mySSP,ipoint,TabV3dcurv) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
for (jp3d=1;jp3d<=myNbP3d;jp3d++)
{
Vt3d=TabV3d.Value(jp3d);
Vt3d.Normalize();
Vc3d=TabV3dcurv.Value(jp3d);
if ( (Vc3d.Normalized()).IsNormal(Vt3d,Precision::Angular()) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
myTabConstraints->SetValue(jndex++,Vt3d.X());
myTabConstraints->SetValue(jndex++,Vt3d.Y());
myTabConstraints->SetValue(jndex++,Vt3d.Z());
@ -391,16 +391,16 @@ void AppDef_Variational::Init()
if(myNbP3d !=0 && myNbP2d != 0 )
{
if (AppDef_MyLineTool::Tangency(mySSP,ipoint,TabV3d,TabV2d) == Standard_False )
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
if (AppDef_MyLineTool::Curvature(mySSP,ipoint,TabV3dcurv,TabV2dcurv) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
for (jp3d=1;jp3d<=myNbP3d;jp3d++)
{
Vt3d=TabV3d.Value(jp3d);
Vt3d.Normalize();
Vc3d=TabV3dcurv.Value(jp3d);
if ( (Vc3d.Normalized()).IsNormal(Vt3d,Precision::Angular()) == Standard_False)
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
myTabConstraints->SetValue(jndex++,Vt3d.X());
myTabConstraints->SetValue(jndex++,Vt3d.Y());
myTabConstraints->SetValue(jndex++,Vt3d.Z());
@ -415,7 +415,7 @@ void AppDef_Variational::Init()
Vt2d.Normalize();
Vc2d=TabV2dcurv.Value(jp2d);
if (Abs(Abs(Vc2d.Angle(Vt2d)) - M_PI/2.) > Precision::Angular())
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
myTabConstraints->SetValue(jndex++,Vt2d.X());
myTabConstraints->SetValue(jndex++,Vt2d.Y());
myTabConstraints->SetValue(jndex++,Vc2d.X());
@ -426,7 +426,7 @@ void AppDef_Variational::Init()
}
break ;
default:
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
CurMultyPoint += myNbP3d * 6 + myNbP2d * 2;
}
@ -455,7 +455,7 @@ void AppDef_Variational::Init()
void AppDef_Variational::Approximate()
{
if (myIsCreated == Standard_False ) StdFail_NotDone:: Raise();
if (myIsCreated == Standard_False ) throw StdFail_NotDone();
Standard_Real WQuadratic, WQuality;
@ -666,7 +666,7 @@ Standard_Boolean AppDef_Variational::IsOverConstrained() const
//
AppParCurves_MultiBSpCurve AppDef_Variational::Value() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myMBSpCurve;
}
@ -680,7 +680,7 @@ AppParCurves_MultiBSpCurve AppDef_Variational::Value() const
//
Standard_Real AppDef_Variational::MaxError() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myMaxError;
}
//
@ -691,7 +691,7 @@ Standard_Real AppDef_Variational::MaxError() const
//
Standard_Integer AppDef_Variational::MaxErrorIndex() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myMaxErrorIndex;
}
//
@ -704,7 +704,7 @@ Standard_Integer AppDef_Variational::MaxErrorIndex() const
//
Standard_Real AppDef_Variational::QuadraticError() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myCriterium[0];
}
//
@ -717,7 +717,7 @@ Standard_Real AppDef_Variational::QuadraticError() const
void AppDef_Variational::Distance(math_Matrix& mat)
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
Standard_Integer ipoint,jp2d,jp3d,index;
TColgp_Array1OfPnt TabP3d(1,Max(1,myNbP3d));
TColgp_Array1OfPnt2d TabP2d(1, Max(1,myNbP2d));
@ -766,7 +766,7 @@ void AppDef_Variational::Distance(math_Matrix& mat)
//
Standard_Real AppDef_Variational::AverageError() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myAverageError;
}
//
@ -777,7 +777,7 @@ Standard_Real AppDef_Variational::AverageError() const
//
const Handle(TColStd_HArray1OfReal)& AppDef_Variational::Parameters() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myParameters;
}
//
@ -788,7 +788,7 @@ const Handle(TColStd_HArray1OfReal)& AppDef_Variational::Parameters() const
//
const Handle(TColStd_HArray1OfReal)& AppDef_Variational::Knots() const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
return myKnots;
}
//
@ -799,7 +799,7 @@ const Handle(TColStd_HArray1OfReal)& AppDef_Variational::Knots() const
//
void AppDef_Variational::Criterium(Standard_Real& VFirstOrder, Standard_Real& VSecondOrder, Standard_Real& VThirdOrder) const
{
if (myIsDone == Standard_False) StdFail_NotDone::Raise();
if (myIsDone == Standard_False) throw StdFail_NotDone();
VFirstOrder=myCriterium[1] ;
VSecondOrder=myCriterium[2];
VThirdOrder=myCriterium[3];
@ -1027,7 +1027,7 @@ Standard_Boolean AppDef_Variational::SetContinuity(const GeomAbs_Shape C)
NivCont=2;
break ;
default:
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
if (((myMaxDegree-NivCont)*myMaxSegment-myNbPassPoints-2*myNbTangPoints-3*myNbCurvPoints) < 0 )
return Standard_False;
@ -1097,7 +1097,7 @@ Standard_Boolean AppDef_Variational::SetWithCutting(const Standard_Boolean Cutti
//
void AppDef_Variational::SetCriteriumWeight(const Standard_Real Percent1, const Standard_Real Percent2, const Standard_Real Percent3)
{
if (Percent1 < 0 || Percent2 < 0 || Percent3 < 0 ) Standard_DomainError::Raise();
if (Percent1 < 0 || Percent2 < 0 || Percent3 < 0 ) throw Standard_DomainError();
Standard_Real Total = Percent1 + Percent2 + Percent3;
myPercent[0] = Percent1/Total;
myPercent[1] = Percent2/Total;
@ -1115,8 +1115,8 @@ void AppDef_Variational::SetCriteriumWeight(const Standard_Real Percent1, const
//
void AppDef_Variational::SetCriteriumWeight(const Standard_Integer Order, const Standard_Real Percent)
{
if ( Percent < 0 ) Standard_DomainError::Raise();
if ( Order < 1 || Order > 3 ) Standard_ConstructionError::Raise();
if ( Percent < 0 ) throw Standard_DomainError();
if ( Order < 1 || Order > 3 ) throw Standard_ConstructionError();
myPercent[Order-1] = Percent;
Standard_Real Total = myPercent[0] + myPercent[1] + myPercent[2];
myPercent[0] = myPercent[0] / Total;
@ -2043,7 +2043,7 @@ void AppDef_Variational::InitParameters(Standard_Real& Length)
if(Length <= Eps1)
Standard_ConstructionError::Raise("AppDef_Variational::InitParameters");
throw Standard_ConstructionError("AppDef_Variational::InitParameters");
for(ipoint = myFirstPoint + 1; ipoint <= myLastPoint - 1; ipoint++)
@ -2438,7 +2438,7 @@ void AppDef_Variational::InitCutting(const Handle(PLib_Base)& aBase,
}
if(ORCMx > myMaxDegree - myNivCont)
Standard_ConstructionError::Raise("AppDef_Variational::InitCutting");
throw Standard_ConstructionError("AppDef_Variational::InitCutting");
Standard_Integer NLibre = Max(myMaxDegree - myNivCont - (myMaxDegree + 1) / 4,
myNivCont + 1);
@ -2454,7 +2454,7 @@ void AppDef_Variational::InitCutting(const Handle(PLib_Base)& aBase,
if(NbElem > myMaxSegment)
Standard_ConstructionError::Raise("AppDef_Variational::InitCutting");
throw Standard_ConstructionError("AppDef_Variational::InitCutting");
aCurve = new FEmTool_Curve(myDimension, NbElem, aBase, CurvTol);

View File

@ -1115,7 +1115,7 @@ void AppParCurves_LeastSquare::Error(Standard_Real& F,
Standard_Real& MaxE2d)
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
Standard_Integer i, j, k, i2, indexdeb, indexfin;
Standard_Integer i21, i22;
Standard_Real AA, BB, CC, Fi, FX, FY, FZ, AIJ;
@ -1168,7 +1168,7 @@ void AppParCurves_LeastSquare::ErrorGradient(math_Vector& Grad,
Standard_Real& MaxE3d,
Standard_Real& MaxE2d)
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
Standard_Integer i, j, k, i2, indexdeb, indexfin;
Standard_Real AA, BB, CC, Fi, FX, FY, FZ, AIJ;
// Standard_Real DAIJ, DAA, DBB, DCC, Gr, gr1= 0.0, gr2= 0.0;
@ -1263,14 +1263,14 @@ Standard_Boolean AppParCurves_LeastSquare::IsDone() const
AppParCurves_MultiCurve AppParCurves_LeastSquare::BezierValue()
{
if (!myknots.IsNull()) Standard_NoSuchObject::Raise();
if (!myknots.IsNull()) throw Standard_NoSuchObject();
return (AppParCurves_MultiCurve)(BSplineValue());
}
const AppParCurves_MultiBSpCurve& AppParCurves_LeastSquare::BSplineValue()
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
Standard_Integer i, j, j2, npoints = nbP+nbP2d;;
gp_Pnt Pt;
@ -1302,14 +1302,14 @@ const AppParCurves_MultiBSpCurve& AppParCurves_LeastSquare::BSplineValue()
const math_Matrix& AppParCurves_LeastSquare::FunctionMatrix() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return A;
}
const math_Matrix& AppParCurves_LeastSquare::DerivativeFunctionMatrix() const
{
if (!done) {StdFail_NotDone::Raise();}
if (!done) {throw StdFail_NotDone();}
return DA;
}

View File

@ -165,7 +165,7 @@ void AppParCurves_MultiBSpCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt& Pt) const {
if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length());
@ -185,7 +185,7 @@ void AppParCurves_MultiBSpCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt2d& Pt) const {
if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length());
@ -204,7 +204,7 @@ void AppParCurves_MultiBSpCurve::Value (const Standard_Integer CuIndex,
void AppParCurves_MultiBSpCurve::D1 (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt& Pt, gp_Vec& V1) const {
if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length());
@ -226,7 +226,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
gp_Vec& V1,
gp_Vec& V2) const {
if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length());
@ -245,7 +245,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
void AppParCurves_MultiBSpCurve::D1 (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt2d& Pt, gp_Vec2d& V1) const {
if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length());
@ -267,7 +267,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
gp_Vec2d& V1,
gp_Vec2d& V2) const {
if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length());

View File

@ -55,7 +55,7 @@ Standard_Integer AppParCurves_MultiCurve::Dimension (const Standard_Integer Inde
Standard_Integer Lo = tabPoint->Lower();
Standard_Integer nb = tabPoint->Value(Lo).NbPoints() + tabPoint->Value(Lo).NbPoints2d();
if ((Index <= 0) || (Index > nb)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabPoint->Value(Lo).Dimension(Index);
}
@ -91,7 +91,7 @@ void AppParCurves_MultiCurve::SetValue (const Standard_Integer Index,
const AppParCurves_MultiPoint& MPoint) {
if ((Index <= 0) || (Index > tabPoint->Length())) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
tabPoint->SetValue(Index, MPoint);
}
@ -100,7 +100,7 @@ void AppParCurves_MultiCurve::SetValue (const Standard_Integer Index,
void AppParCurves_MultiCurve::Curve (const Standard_Integer CuIndex,
TColgp_Array1OfPnt& TabPnt) const {
if ((CuIndex <= 0)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
for ( Standard_Integer i = 1; i <= tabPoint->Length(); i++) {
TabPnt(i) = tabPoint->Value(i).Point(CuIndex);
@ -111,7 +111,7 @@ void AppParCurves_MultiCurve::Curve (const Standard_Integer CuIndex,
void AppParCurves_MultiCurve::Curve (const Standard_Integer CuIndex,
TColgp_Array1OfPnt2d& TabPnt2d) const {
if ((CuIndex <= 0)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
for ( Standard_Integer i = 1; i <= tabPoint->Length(); i++) {
TabPnt2d(i) = tabPoint->Value(i).Point2d(CuIndex);
@ -124,7 +124,7 @@ const gp_Pnt& AppParCurves_MultiCurve::Pole(const Standard_Integer CuIndex,
const Standard_Integer Nieme) const
{
if ((CuIndex <= 0) && Nieme <= 0) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabPoint->Value(Nieme).Point(CuIndex);
}
@ -133,7 +133,7 @@ const gp_Pnt2d& AppParCurves_MultiCurve::Pole2d(const Standard_Integer CuIndex,
const Standard_Integer Nieme)const
{
if ((CuIndex <= 0) && Nieme <= 0) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabPoint->Value(Nieme).Point2d(CuIndex);
}
@ -142,7 +142,7 @@ const gp_Pnt2d& AppParCurves_MultiCurve::Pole2d(const Standard_Integer CuIndex,
const AppParCurves_MultiPoint& AppParCurves_MultiCurve::Value (const Standard_Integer Index) const {
if ((Index <= 0) || (Index > tabPoint->Length())) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
return tabPoint->Value(Index);
}
@ -155,7 +155,7 @@ void AppParCurves_MultiCurve::Transform(const Standard_Integer CuIndex,
const Standard_Real z,
const Standard_Real dz)
{
if (Dimension(CuIndex) != 3) Standard_OutOfRange::Raise();
if (Dimension(CuIndex) != 3) throw Standard_OutOfRange();
for (Standard_Integer i = 1 ; i <= tabPoint->Length(); i++) {
(tabPoint->ChangeValue(i)).Transform(CuIndex, x, dx, y, dy, z, dz);
@ -168,7 +168,7 @@ void AppParCurves_MultiCurve::Transform2d(const Standard_Integer CuIndex,
const Standard_Real y,
const Standard_Real dy)
{
if (Dimension(CuIndex) != 2) Standard_OutOfRange::Raise();
if (Dimension(CuIndex) != 2) throw Standard_OutOfRange();
for (Standard_Integer i = 1 ; i <= tabPoint->Length(); i++) {
(tabPoint->ChangeValue(i)).Transform2d(CuIndex, x, dx, y, dy);
@ -179,7 +179,7 @@ void AppParCurves_MultiCurve::Transform2d(const Standard_Integer CuIndex,
void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt& Pt) const {
if (Dimension(CuIndex) != 3)Standard_OutOfRange::Raise();
if (Dimension(CuIndex) != 3)throw Standard_OutOfRange();
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length());
@ -194,7 +194,7 @@ void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt2d& Pt) const {
if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length());
@ -213,7 +213,7 @@ void AppParCurves_MultiCurve::D1 (const Standard_Integer CuIndex,
gp_Vec& V1) const {
if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt TabPole(1, tabPoint->Length());
@ -233,7 +233,7 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
gp_Vec& V2) const {
if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt TabPole(1, tabPoint->Length());
@ -250,7 +250,7 @@ void AppParCurves_MultiCurve::D1 (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt2d& Pt, gp_Vec2d& V1) const {
if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length());
@ -270,7 +270,7 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
gp_Vec2d& V2) const {
if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length());

View File

@ -115,7 +115,7 @@ void AppParCurves_MultiPoint::Transform(const Standard_Integer CuIndex,
const Standard_Real z,
const Standard_Real dz)
{
if (Dimension(CuIndex) != 3) Standard_OutOfRange::Raise();
if (Dimension(CuIndex) != 3) throw Standard_OutOfRange();
gp_Pnt P, newP;
P = Point(CuIndex);
@ -130,7 +130,7 @@ void AppParCurves_MultiPoint::Transform2d(const Standard_Integer CuIndex,
const Standard_Real y,
const Standard_Real dy)
{
if (Dimension(CuIndex) != 2) Standard_OutOfRange::Raise();
if (Dimension(CuIndex) != 2) throw Standard_OutOfRange();
gp_Pnt2d P, newP;
P = Point2d(CuIndex);

View File

@ -40,7 +40,7 @@ inline Standard_Integer AppParCurves_MultiPoint::NbPoints2d() const {
inline Standard_Integer AppParCurves_MultiPoint::Dimension(const Standard_Integer Index) const
{
if (Index < 0 || Index > (nbP + nbP2d)) {
Standard_OutOfRange::Raise();
throw Standard_OutOfRange();
}
if (Index <= nbP) {
return 3;

View File

@ -312,7 +312,7 @@ void Approx_CurveOnSurface_Eval2d::Evaluate (Standard_Integer *Dimension,
const Standard_Boolean only2d)
{
myIsDone = Standard_False;
if(only3d && only2d) Standard_ConstructionError::Raise();
if(only3d && only2d) throw Standard_ConstructionError();
GeomAbs_Shape Order = S;
Handle( Adaptor2d_HCurve2d ) TrimmedC2D = C2D->Trim( First, Last, Precision::PConfusion() );

View File

@ -74,7 +74,7 @@ static void findfourpoints(const Standard_Real ,
{
Standard_Integer i, j;
Standard_Integer NbInt = Si->Length() - 1;
if (NbInt < 3) Standard_ConstructionError::Raise("Approx_CurvlinFunc::GetUParameter");
if (NbInt < 3) throw Standard_ConstructionError("Approx_CurvlinFunc::GetUParameter");
if(NInterval < 1) NInterval = 1;
else if(NInterval > NbInt - 2) NInterval = NbInt - 2;
@ -325,7 +325,7 @@ void Approx_CurvlinFunc::Intervals(TColStd_Array1OfReal& T, const GeomAbs_Shape
void Approx_CurvlinFunc::Trim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol)
{
if (First < 0 || Last >1) Standard_OutOfRange::Raise("Approx_CurvlinFunc::Trim");
if (First < 0 || Last >1) throw Standard_OutOfRange("Approx_CurvlinFunc::Trim");
if ((Last - First) < Tol) return;
Standard_Real FirstU, LastU;
@ -461,7 +461,7 @@ Standard_Real Approx_CurvlinFunc::GetUParameter(Adaptor3d_Curve& C,
#ifdef OCCT_DEBUG_CHRONO
InitChron(chr_uparam);
#endif
if(S < 0 || S > 1) Standard_ConstructionError::Raise("Approx_CurvlinFunc::GetUParameter");
if(S < 0 || S > 1) throw Standard_ConstructionError("Approx_CurvlinFunc::GetUParameter");
if(NumberOfCurve == 1) {
InitUArray = myUi_1;
@ -527,7 +527,7 @@ Standard_Real Approx_CurvlinFunc::GetSParameter(Adaptor3d_Curve& C, const Standa
Standard_Boolean Approx_CurvlinFunc::EvalCase1(const Standard_Real S, const Standard_Integer Order, TColStd_Array1OfReal& Result) const
{
if(myCase != 1) Standard_ConstructionError::Raise("Approx_CurvlinFunc::EvalCase1");
if(myCase != 1) throw Standard_ConstructionError("Approx_CurvlinFunc::EvalCase1");
gp_Pnt C;
gp_Vec dC_dU, dC_dS, d2C_dU2, d2C_dS2;
@ -576,7 +576,7 @@ Standard_Boolean Approx_CurvlinFunc::EvalCase1(const Standard_Real S, const Stan
Standard_Boolean Approx_CurvlinFunc::EvalCase2(const Standard_Real S, const Standard_Integer Order, TColStd_Array1OfReal& Result) const
{
if(myCase != 2) Standard_ConstructionError::Raise("Approx_CurvlinFunc::EvalCase2");
if(myCase != 2) throw Standard_ConstructionError("Approx_CurvlinFunc::EvalCase2");
Standard_Boolean Done;
@ -587,7 +587,7 @@ Standard_Boolean Approx_CurvlinFunc::EvalCase2(const Standard_Real S, const Stan
Standard_Boolean Approx_CurvlinFunc::EvalCase3(const Standard_Real S, const Standard_Integer Order, TColStd_Array1OfReal& Result)
{
if(myCase != 3) Standard_ConstructionError::Raise("Approx_CurvlinFunc::EvalCase3");
if(myCase != 3) throw Standard_ConstructionError("Approx_CurvlinFunc::EvalCase3");
TColStd_Array1OfReal tmpRes1(0, 4), tmpRes2(0, 4);
Standard_Boolean Done;
@ -629,7 +629,7 @@ Standard_Boolean Approx_CurvlinFunc::EvalCurOnSur(const Standard_Real S, const S
Length = myLength2;
}
else
Standard_ConstructionError::Raise("Approx_CurvlinFunc::EvalCurOnSur");
throw Standard_ConstructionError("Approx_CurvlinFunc::EvalCurOnSur");
Standard_Real Mag, dU_dS, d2U_dS2, dV_dU, dW_dU, dV_dS, dW_dS, d2V_dS2, d2W_dS2, d2V_dU2, d2W_dU2;
gp_Pnt2d C2D;

View File

@ -604,7 +604,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
BSplCLib::Interpolate(3,FlatKnots,InterpolationParameters,ContactOrder,
1,Poles(1),inversion_problem);
if(inversion_problem) {
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
// Test if par2d(par3d) is monotonous function or not ----- IFV, Jan 2000
@ -841,7 +841,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
1,Poles(1),inversion_problem);
if(inversion_problem)
{
Standard_ConstructionError::Raise();
throw Standard_ConstructionError();
}
Standard_Real besttol = sqrt(besttol2);

View File

@ -610,7 +610,7 @@ SurfShape(Standard_Integer& UDegree,
Standard_Integer& NbUKnots,
Standard_Integer& NbVKnots) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
UDegree = udeg;
VDegree = vdeg;
NbUPoles = tabPoles->ColLength();
@ -627,7 +627,7 @@ Surface(TColgp_Array2OfPnt& TPoles,
TColStd_Array1OfInteger& TUMults,
TColStd_Array1OfInteger& TVMults) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
TPoles = tabPoles->Array2();
TWeights = tabWeights->Array2();
TUKnots = tabUKnots->Array1();
@ -640,7 +640,7 @@ Standard_Real Approx_SweepApproximation::MaxErrorOnSurf() const
{
Standard_Integer ii;
Standard_Real MaxError = 0, err;
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
if (myFunc->IsRational()) {
TColStd_Array1OfReal Wmin(1, Num1DSS);
@ -664,7 +664,7 @@ Standard_Real Approx_SweepApproximation::MaxErrorOnSurf() const
{
Standard_Integer ii;
Standard_Real MoyError = 0, err;
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
if (myFunc->IsRational()) {
TColStd_Array1OfReal Wmin(1, Num1DSS);
@ -689,8 +689,8 @@ void Approx_SweepApproximation::Curves2dShape(Standard_Integer& Degree,
Standard_Integer& NbPoles,
Standard_Integer& NbKnots) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError("Approx_SweepApproximation");}
Degree = deg2d;
NbPoles = seqPoles2d(1)->Length();
NbKnots = tab2dKnots->Length();
@ -701,8 +701,8 @@ void Approx_SweepApproximation::Curve2d(const Standard_Integer Index,
TColStd_Array1OfReal& TKnots,
TColStd_Array1OfInteger& TMults) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError("Approx_SweepApproximation");}
TPoles = seqPoles2d(Index)->Array1();
TKnots = tab2dKnots->Array1();
TMults = tab2dMults->Array1();
@ -710,19 +710,19 @@ void Approx_SweepApproximation::Curve2d(const Standard_Integer Index,
Standard_Real Approx_SweepApproximation::Max2dError(const Standard_Integer Index) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
return tab2dError->Value(Index);
}
Standard_Real Approx_SweepApproximation::Average2dError(const Standard_Integer Index) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
return Ave2dError->Value(Index);
}
Standard_Real Approx_SweepApproximation::TolCurveOnSurf(const Standard_Integer Index) const
{
if (!done) {StdFail_NotDone::Raise("Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone("Approx_SweepApproximation");}
return COnSurfErr->Value(Index);
}

View File

@ -29,95 +29,95 @@ inline Standard_Boolean Approx_SweepApproximation::IsDone() const
inline Standard_Integer Approx_SweepApproximation::UDegree() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return udeg;
}
inline Standard_Integer Approx_SweepApproximation::VDegree() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return vdeg;
}
inline const TColgp_Array2OfPnt& Approx_SweepApproximation::SurfPoles() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return tabPoles->Array2();
}
inline const TColStd_Array2OfReal& Approx_SweepApproximation::SurfWeights() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return tabWeights->Array2();
}
inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfUKnots() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return tabUKnots->Array1();
}
inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfVKnots() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return tabVKnots->Array1();
}
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfUMults() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return tabUMults->Array1();
}
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfVMults() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return tabVMults->Array1();
}
inline Standard_Integer Approx_SweepApproximation::NbCurves2d() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return Num2DSS;
}
inline Standard_Integer Approx_SweepApproximation::Curves2dDegree() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return deg2d;
}
inline const TColgp_Array1OfPnt2d& Approx_SweepApproximation::Curve2dPoles(const Standard_Integer Index) const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return seqPoles2d(Index)->Array1();
}
inline const TColStd_Array1OfReal& Approx_SweepApproximation::Curves2dKnots() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return tab2dKnots->Array1();
}
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::Curves2dMults() const
{
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return tab2dMults->Array1();
}

View File

@ -26,37 +26,33 @@ IMPLEMENT_STANDARD_RTTIEXT(Approx_SweepFunction,MMgt_TShared)
// Standard_Boolean Approx_SweepFunction::D1(const Standard_Real Param,const Standard_Real First,const Standard_Real Last,TColgp_Array1OfPnt& Poles,TColgp_Array1OfVec& DPoles,TColgp_Array1OfPnt2d& Poles2d,TColgp_Array1OfVec2d& DPoles2d,TColStd_Array1OfReal& Weigths,TColStd_Array1OfReal& DWeigths)
Standard_Boolean Approx_SweepFunction::D1(const Standard_Real ,const Standard_Real ,const Standard_Real ,TColgp_Array1OfPnt& ,TColgp_Array1OfVec& ,TColgp_Array1OfPnt2d& ,TColgp_Array1OfVec2d& ,TColStd_Array1OfReal& ,TColStd_Array1OfReal& )
{
Standard_NotImplemented::Raise("Approx_SweepFunction::D1");
return Standard_False;
throw Standard_NotImplemented("Approx_SweepFunction::D1");
}
// Standard_Boolean Approx_SweepFunction::D2(const Standard_Real Param,const Standard_Real First,const Standard_Real Last,TColgp_Array1OfPnt& Poles,TColgp_Array1OfVec& DPoles,TColgp_Array1OfVec& D2Poles,TColgp_Array1OfPnt2d& Poles2d,TColgp_Array1OfVec2d& DPoles2d,TColgp_Array1OfVec2d& D2Poles2d,TColStd_Array1OfReal& Weigths,TColStd_Array1OfReal& DWeigths,TColStd_Array1OfReal& D2Weigths)
Standard_Boolean Approx_SweepFunction::D2(const Standard_Real ,const Standard_Real ,const Standard_Real ,TColgp_Array1OfPnt& ,TColgp_Array1OfVec& ,TColgp_Array1OfVec& ,TColgp_Array1OfPnt2d& ,TColgp_Array1OfVec2d& ,TColgp_Array1OfVec2d& ,TColStd_Array1OfReal& ,TColStd_Array1OfReal& ,TColStd_Array1OfReal& )
{
Standard_NotImplemented::Raise("Approx_SweepFunction::D2");
return Standard_False;
throw Standard_NotImplemented("Approx_SweepFunction::D2");
}
// void Approx_SweepFunction::Resolution(const Standard_Integer Index,const Standard_Real Tol,Standard_Real& TolU,Standard_Real& TolV) const
void Approx_SweepFunction::Resolution(const Standard_Integer ,const Standard_Real ,Standard_Real& ,Standard_Real& ) const
{
Standard_NotImplemented::Raise("Approx_SweepFunction::Resolution");
throw Standard_NotImplemented("Approx_SweepFunction::Resolution");
}
gp_Pnt Approx_SweepFunction::BarycentreOfSurf() const
{
Standard_NotImplemented::Raise("Approx_SweepFunction::BarycentreOfSurf");
return gp_Pnt(0.,0.,0.);
throw Standard_NotImplemented("Approx_SweepFunction::BarycentreOfSurf");
}
Standard_Real Approx_SweepFunction::MaximalSection() const
{
Standard_NotImplemented::Raise("Approx_SweepFunction::MaximalSection()");
return 0;
throw Standard_NotImplemented("Approx_SweepFunction::MaximalSection()");
}
// void Approx_SweepFunction::GetMinimalWeight(TColStd_Array1OfReal& Weigths) const
void Approx_SweepFunction::GetMinimalWeight(TColStd_Array1OfReal& ) const
{
Standard_NotImplemented::Raise("Approx_SweepFunction::GetMinimalWeight");
throw Standard_NotImplemented("Approx_SweepFunction::GetMinimalWeight");
}

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_AspectFillAreaDefinitionError, Standard_OutOfRange
#if !defined No_Exception && !defined No_Aspect_AspectFillAreaDefinitionError
#define Aspect_AspectFillAreaDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_AspectFillAreaDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_AspectFillAreaDefinitionError(MESSAGE);
#else
#define Aspect_AspectFillAreaDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_AspectLineDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_AspectLineDefinitionError
#define Aspect_AspectLineDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_AspectLineDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_AspectLineDefinitionError(MESSAGE);
#else
#define Aspect_AspectLineDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_AspectMarkerDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_AspectMarkerDefinitionError
#define Aspect_AspectMarkerDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_AspectMarkerDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_AspectMarkerDefinitionError(MESSAGE);
#else
#define Aspect_AspectMarkerDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_BadAccess, Standard_DomainError)
#if !defined No_Exception && !defined No_Aspect_BadAccess
#define Aspect_BadAccess_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_BadAccess::Raise(MESSAGE);
if (CONDITION) throw Aspect_BadAccess(MESSAGE);
#else
#define Aspect_BadAccess_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -89,7 +89,7 @@ void Aspect_DisplayConnection::Init()
TCollection_AsciiString aMessage;
aMessage += "Can not connect to the server \"";
aMessage += myDisplayName + "\"";
Aspect_DisplayConnectionDefinitionError::Raise (aMessage.ToCString());
throw Aspect_DisplayConnectionDefinitionError(aMessage.ToCString());
}
}

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_DisplayConnectionDefinitionError, Standard_OutOfRa
#if !defined No_Exception && !defined No_Aspect_DisplayConnectionDefinitionError
#define Aspect_DisplayConnectionDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_DisplayConnectionDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_DisplayConnectionDefinitionError(MESSAGE);
#else
#define Aspect_DisplayConnectionDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_DriverDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_DriverDefinitionError
#define Aspect_DriverDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_DriverDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_DriverDefinitionError(MESSAGE);
#else
#define Aspect_DriverDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -44,7 +44,7 @@ Aspect_GenId::Aspect_GenId (const Standard_Integer theLow,
{
if (theLow > theUpper)
{
Aspect_IdentDefinitionError::Raise ("GenId Create Error: wrong interval");
throw Aspect_IdentDefinitionError("GenId Create Error: wrong interval");
}
}
@ -121,7 +121,7 @@ Standard_Integer Aspect_GenId::Next()
}
else if (myFreeCount < 1)
{
Aspect_IdentDefinitionError::Raise ("GenId Next Error: Available == 0");
throw Aspect_IdentDefinitionError("GenId Next Error: Available == 0");
}
--myFreeCount;

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_GraphicDeviceDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_GraphicDeviceDefinitionError
#define Aspect_GraphicDeviceDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_GraphicDeviceDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_GraphicDeviceDefinitionError(MESSAGE);
#else
#define Aspect_GraphicDeviceDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_IdentDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_IdentDefinitionError
#define Aspect_IdentDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_IdentDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_IdentDefinitionError(MESSAGE);
#else
#define Aspect_IdentDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_WindowDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_WindowDefinitionError
#define Aspect_WindowDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_WindowDefinitionError::Raise(MESSAGE);
if (CONDITION) throw Aspect_WindowDefinitionError(MESSAGE);
#else
#define Aspect_WindowDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_WindowError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_WindowError
#define Aspect_WindowError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_WindowError::Raise(MESSAGE);
if (CONDITION) throw Aspect_WindowError(MESSAGE);
#else
#define Aspect_WindowError_Raise_if(CONDITION, MESSAGE)
#endif

View File

@ -173,7 +173,7 @@ void BOPAlgo_Algo::UserBreak() const
return;
}
if (myProgressIndicator->UserBreak()) {
Standard_NotImplemented::Raise("");
throw Standard_NotImplemented("");
}
}
// myErrorStatus

View File

@ -662,7 +662,7 @@ void BOPTools_AlgoTools2D::MakePCurveOnFace
//
if(aC2D.IsNull())
{
Standard_ConstructionError::Raise("BOPTools_AlgoTools2D::MakePCurveOnFace : PCurve is Null");
throw Standard_ConstructionError("BOPTools_AlgoTools2D::MakePCurveOnFace : PCurve is Null");
}
//
TolReached2d=aTolR;
@ -717,8 +717,7 @@ void BOPTools_AlgoTools2D::MakePCurveOfType
case GeomAbs_BezierCurve :
case GeomAbs_OtherCurve :
default :
Standard_NotImplemented::Raise
("BOPTools_AlgoTools2D::MakePCurveOfType");
throw Standard_NotImplemented("BOPTools_AlgoTools2D::MakePCurveOfType");
break;
}
}

View File

@ -452,7 +452,7 @@ void BRep_Builder::MakeFace(TopoDS_Face& F,
Handle(BRep_TFace) TF = new BRep_TFace();
if(!F.IsNull() && F.Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::MakeFace");
throw TopoDS_LockedShape("BRep_Builder::MakeFace");
}
TF->Surface(S);
TF->Tolerance(Tol);
@ -471,7 +471,7 @@ void BRep_Builder::MakeFace(TopoDS_Face& F,
Handle(BRep_TFace) TF = new BRep_TFace();
if(!F.IsNull() && F.Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::MakeFace");
throw TopoDS_LockedShape("BRep_Builder::MakeFace");
}
TF->Triangulation(T);
MakeShape(F, TF);
@ -491,7 +491,7 @@ void BRep_Builder::MakeFace(TopoDS_Face& F,
Handle(BRep_TFace) TF = new BRep_TFace();
if(!F.IsNull() && F.Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::MakeFace");
throw TopoDS_LockedShape("BRep_Builder::MakeFace");
}
TF->Surface(S);
TF->Tolerance(Tol);
@ -513,7 +513,7 @@ void BRep_Builder::UpdateFace(const TopoDS_Face& F,
const Handle(BRep_TFace)& TF = *((Handle(BRep_TFace)*) &F.TShape());
if(TF->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateFace");
throw TopoDS_LockedShape("BRep_Builder::UpdateFace");
}
TF->Surface(S);
TF->Tolerance(Tol);
@ -533,7 +533,7 @@ void BRep_Builder::UpdateFace(const TopoDS_Face& F,
const Handle(BRep_TFace)& TF = *((Handle(BRep_TFace)*) &F.TShape());
if(TF->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateFace");
throw TopoDS_LockedShape("BRep_Builder::UpdateFace");
}
TF->Triangulation(T);
F.TShape()->Modified(Standard_True);
@ -551,7 +551,7 @@ void BRep_Builder::UpdateFace(const TopoDS_Face& F,
const Handle(BRep_TFace)& TF = *((Handle(BRep_TFace)*) &F.TShape());
if(TF->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateFace");
throw TopoDS_LockedShape("BRep_Builder::UpdateFace");
}
TF->Tolerance(Tol);
F.TShape()->Modified(Standard_True);
@ -569,7 +569,7 @@ void BRep_Builder::NaturalRestriction(const TopoDS_Face& F,
const Handle(BRep_TFace)& TF = (*((Handle(BRep_TFace)*) &F.TShape()));
if(TF->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::NaturalRestriction");
throw TopoDS_LockedShape("BRep_Builder::NaturalRestriction");
}
TF->NaturalRestriction(N);
F.TShape()->Modified(Standard_True);
@ -586,7 +586,7 @@ void BRep_Builder::MakeEdge(TopoDS_Edge& E) const
Handle(BRep_TEdge) TE = new BRep_TEdge();
if(!E.IsNull() && E.Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::MakeEdge");
throw TopoDS_LockedShape("BRep_Builder::MakeEdge");
}
MakeShape(E,TE);
}
@ -605,7 +605,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -630,7 +630,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -657,7 +657,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -683,7 +683,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -711,7 +711,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -734,7 +734,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves();
BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr);
@ -774,7 +774,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -825,7 +825,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -888,7 +888,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
TopLoc_Location l = L.Predivided(E.Location());
@ -946,7 +946,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
TopLoc_Location l = L.Predivided(E.Location());
@ -986,7 +986,7 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge");
throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
}
TE->UpdateTolerance(Tol);
TE->Modified(Standard_True);
@ -1024,7 +1024,7 @@ void BRep_Builder::Continuity(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::Continuity");
throw TopoDS_LockedShape("BRep_Builder::Continuity");
}
const TopLoc_Location l1 = L1.Predivided(E.Location());
const TopLoc_Location l2 = L2.Predivided(E.Location());
@ -1045,7 +1045,7 @@ void BRep_Builder::SameParameter(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::SameParameter");
throw TopoDS_LockedShape("BRep_Builder::SameParameter");
}
TE->SameParameter(S);
TE->Modified(Standard_True);
@ -1062,7 +1062,7 @@ void BRep_Builder::SameRange(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::SameRange");
throw TopoDS_LockedShape("BRep_Builder::SameRange");
}
TE->SameRange(S);
TE->Modified(Standard_True);
@ -1079,7 +1079,7 @@ void BRep_Builder::Degenerated(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::Degenerated");
throw TopoDS_LockedShape("BRep_Builder::Degenerated");
}
TE->Degenerated(D);
if (D) {
@ -1104,7 +1104,7 @@ void BRep_Builder::Range(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::Range");
throw TopoDS_LockedShape("BRep_Builder::Range");
}
BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves();
BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr);
@ -1135,7 +1135,7 @@ void BRep_Builder::Range(const TopoDS_Edge& E,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::Range");
throw TopoDS_LockedShape("BRep_Builder::Range");
}
const TopLoc_Location l = L.Predivided(E.Location());
@ -1154,7 +1154,7 @@ void BRep_Builder::Range(const TopoDS_Edge& E,
}
if (!itcr.More())
Standard_DomainError::Raise("BRep_Builder::Range, no pcurve");
throw Standard_DomainError("BRep_Builder::Range, no pcurve");
TE->Modified(Standard_True);
}
@ -1171,7 +1171,7 @@ void BRep_Builder::Transfert(const TopoDS_Edge& Ein,
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &Ein.TShape());
if(TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::Transfert");
throw TopoDS_LockedShape("BRep_Builder::Transfert");
}
const Standard_Real tol = TE->Tolerance();
@ -1223,7 +1223,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
const Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &V.TShape());
if(TV->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex");
throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
}
TV->Pnt(P.Transformed(V.Location().Inverted().Transformation()));
TV->UpdateTolerance(Tol);
@ -1243,14 +1243,14 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
{
if (Precision::IsPositiveInfinite(Par) ||
Precision::IsNegativeInfinite(Par))
Standard_DomainError::Raise("BRep_Builder::Infinite parameter");
throw Standard_DomainError("BRep_Builder::Infinite parameter");
const Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &V.TShape());
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TV->Locked() || TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex");
throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
}
TopLoc_Location L = E.Location().Predivided(V.Location());
@ -1326,7 +1326,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
{
if (Precision::IsPositiveInfinite(Par) ||
Precision::IsNegativeInfinite(Par))
Standard_DomainError::Raise("BRep_Builder::Infinite parameter");
throw Standard_DomainError("BRep_Builder::Infinite parameter");
// Find the curve representation
TopLoc_Location l = L.Predivided(V.Location());
@ -1336,7 +1336,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
if(TV->Locked() || TE->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex");
throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
}
// Search the vertex in the edge
@ -1386,7 +1386,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
}
if (!itcr.More())
Standard_DomainError::Raise("BRep_Builder:: no pcurve");
throw Standard_DomainError("BRep_Builder:: no pcurve");
TV->UpdateTolerance(Tol);
TE->Modified(Standard_True);
@ -1407,7 +1407,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve,
if(TV->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex");
throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
}
TopLoc_Location L;
@ -1432,7 +1432,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
if(TV->Locked())
{
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex");
throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
}
TV->UpdateTolerance(Tol);

View File

@ -49,7 +49,7 @@ BRep_CurveOn2Surfaces::BRep_CurveOn2Surfaces(const Handle(Geom_Surface)& S1,
void BRep_CurveOn2Surfaces::D0(const Standard_Real , gp_Pnt& )const
{
Standard_NullObject::Raise("BRep_CurveOn2Surfaces::D0");
throw Standard_NullObject("BRep_CurveOn2Surfaces::D0");
}

View File

@ -193,8 +193,7 @@ Standard_Boolean BRep_CurveRepresentation::IsPolygonOnSurface
const Handle(Geom_Curve)& BRep_CurveRepresentation::Curve3D()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Geom_Curve)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -204,7 +203,7 @@ const Handle(Geom_Curve)& BRep_CurveRepresentation::Curve3D()const
void BRep_CurveRepresentation::Curve3D(const Handle(Geom_Curve)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -218,8 +217,7 @@ void BRep_CurveRepresentation::Curve3D(const Handle(Geom_Curve)&)
const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Geom_Surface)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -230,8 +228,7 @@ const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface()const
const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Geom2d_Curve)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -241,8 +238,7 @@ const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve()const
const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve2()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Geom2d_Curve)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -252,7 +248,7 @@ const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve2()const
void BRep_CurveRepresentation::PCurve(const Handle(Geom2d_Curve)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -262,7 +258,7 @@ void BRep_CurveRepresentation::PCurve(const Handle(Geom2d_Curve)&)
void BRep_CurveRepresentation::PCurve2(const Handle(Geom2d_Curve)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -273,8 +269,7 @@ void BRep_CurveRepresentation::PCurve2(const Handle(Geom2d_Curve)&)
const GeomAbs_Shape& BRep_CurveRepresentation::Continuity()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((GeomAbs_Shape*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -284,7 +279,7 @@ const GeomAbs_Shape& BRep_CurveRepresentation::Continuity()const
void BRep_CurveRepresentation::Continuity(const GeomAbs_Shape )
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -295,8 +290,7 @@ void BRep_CurveRepresentation::Continuity(const GeomAbs_Shape )
const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface2()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Geom_Surface)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -307,8 +301,7 @@ const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface2()const
const TopLoc_Location& BRep_CurveRepresentation::Location2()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((TopLoc_Location*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -320,8 +313,7 @@ const TopLoc_Location& BRep_CurveRepresentation::Location2()const
const Handle(Poly_Polygon3D)& BRep_CurveRepresentation::Polygon3D()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Poly_Polygon3D)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -331,7 +323,7 @@ const Handle(Poly_Polygon3D)& BRep_CurveRepresentation::Polygon3D()const
void BRep_CurveRepresentation::Polygon3D(const Handle(Poly_Polygon3D)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -342,8 +334,7 @@ void BRep_CurveRepresentation::Polygon3D(const Handle(Poly_Polygon3D)&)
const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Poly_Polygon2D)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -354,7 +345,7 @@ const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon()const
void BRep_CurveRepresentation::Polygon(const Handle(Poly_Polygon2D)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -364,8 +355,7 @@ void BRep_CurveRepresentation::Polygon(const Handle(Poly_Polygon2D)&)
const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation2() const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Poly_PolygonOnTriangulation)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
@ -376,7 +366,7 @@ const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTr
void BRep_CurveRepresentation::PolygonOnTriangulation2
(const Handle(Poly_PolygonOnTriangulation)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -388,7 +378,7 @@ void BRep_CurveRepresentation::PolygonOnTriangulation2
void BRep_CurveRepresentation::PolygonOnTriangulation
(const Handle(Poly_PolygonOnTriangulation)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -400,8 +390,7 @@ void BRep_CurveRepresentation::PolygonOnTriangulation
const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation()
const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *(Handle(Poly_PolygonOnTriangulation)*)NULL;
throw Standard_DomainError("BRep_CurveRepresentation");
}
//=======================================================================
//function : Triangulation
@ -411,8 +400,7 @@ const
const Handle(Poly_Triangulation)& BRep_CurveRepresentation::Triangulation()
const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *(Handle(Poly_Triangulation)*)NULL;
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -424,8 +412,7 @@ const
const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon2()const
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
return *((Handle(Poly_Polygon2D)*) NULL);
throw Standard_DomainError("BRep_CurveRepresentation");
}
@ -436,6 +423,6 @@ const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon2()const
void BRep_CurveRepresentation::Polygon2(const Handle(Poly_Polygon2D)&)
{
Standard_DomainError::Raise("BRep_CurveRepresentation");
throw Standard_DomainError("BRep_CurveRepresentation");
}

View File

@ -117,8 +117,7 @@ Standard_Boolean BRep_PointRepresentation::IsPointOnSurface
Standard_Real BRep_PointRepresentation::Parameter2()const
{
Standard_DomainError::Raise("BRep_PointRepresentation");
return 0;
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -129,7 +128,7 @@ Standard_Real BRep_PointRepresentation::Parameter2()const
void BRep_PointRepresentation::Parameter2(const Standard_Real )
{
Standard_DomainError::Raise("BRep_PointRepresentation");
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -140,8 +139,7 @@ void BRep_PointRepresentation::Parameter2(const Standard_Real )
const Handle(Geom_Curve)& BRep_PointRepresentation::Curve()const
{
Standard_DomainError::Raise("BRep_PointRepresentation");
return *((Handle(Geom_Curve)*) NULL);
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -152,7 +150,7 @@ const Handle(Geom_Curve)& BRep_PointRepresentation::Curve()const
void BRep_PointRepresentation::Curve(const Handle(Geom_Curve)& )
{
Standard_DomainError::Raise("BRep_PointRepresentation");
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -163,8 +161,7 @@ void BRep_PointRepresentation::Curve(const Handle(Geom_Curve)& )
const Handle(Geom2d_Curve)& BRep_PointRepresentation::PCurve()const
{
Standard_DomainError::Raise("BRep_PointRepresentation");
return *((Handle(Geom2d_Curve)*) NULL);
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -175,7 +172,7 @@ const Handle(Geom2d_Curve)& BRep_PointRepresentation::PCurve()const
void BRep_PointRepresentation::PCurve(const Handle(Geom2d_Curve)& )
{
Standard_DomainError::Raise("BRep_PointRepresentation");
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -186,8 +183,7 @@ void BRep_PointRepresentation::PCurve(const Handle(Geom2d_Curve)& )
const Handle(Geom_Surface)& BRep_PointRepresentation::Surface()const
{
Standard_DomainError::Raise("BRep_PointRepresentation");
return *((Handle(Geom_Surface)*) NULL);
throw Standard_DomainError("BRep_PointRepresentation");
}
@ -198,7 +194,7 @@ const Handle(Geom_Surface)& BRep_PointRepresentation::Surface()const
void BRep_PointRepresentation::Surface(const Handle(Geom_Surface)& )
{
Standard_DomainError::Raise("BRep_PointRepresentation");
throw Standard_DomainError("BRep_PointRepresentation");
}

View File

@ -1190,7 +1190,7 @@ gp_Pnt BRep_Tool::Pnt(const TopoDS_Vertex& V)
if (TV == 0)
{
Standard_NullObject::Raise("BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt");
throw Standard_NullObject("BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt");
}
const gp_Pnt& P = TV->Pnt();
@ -1213,7 +1213,7 @@ Standard_Real BRep_Tool::Tolerance(const TopoDS_Vertex& V)
if (aTVert == 0)
{
Standard_NullObject::Raise("BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt");
throw Standard_NullObject("BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt");
}
Standard_Real p = aTVert->Tolerance();
@ -1338,8 +1338,7 @@ Standard_Real BRep_Tool::Parameter(const TopoDS_Vertex& V,
}
}
Standard_NoSuchObject::Raise("BRep_Tool:: no parameter on edge");
return 0;
throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
}
//=======================================================================
@ -1449,8 +1448,7 @@ Standard_Real BRep_Tool::Parameter(const TopoDS_Vertex& V,
//----------------------------------------------------------
Standard_NoSuchObject::Raise("BRep_Tool:: no parameter on edge");
return 0;
throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
}
//=======================================================================
@ -1491,8 +1489,7 @@ gp_Pnt2d BRep_Tool::Parameters(const TopoDS_Vertex& V,
else return Pl;//Ambiguity (natural) for degenerated edges.
}
}
Standard_NoSuchObject::Raise("BRep_Tool:: no parameters on surface");
return gp_Pnt2d(0,0);
throw Standard_NoSuchObject("BRep_Tool:: no parameters on surface");
}
//=======================================================================
//function : IsClosed

Some files were not shown because too many files have changed in this diff Show More