1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +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. @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++. 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; * 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. * 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. 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.
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.
@subsection occt_fcug_2_5 Plug-In Management @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 case CurAction2d_GlobalPanning :// noting
break; break;
default : default :
Standard_Failure::Raise(" incompatible Current Mode "); throw Standard_Failure(" incompatible Current Mode ");
break; break;
} }
} }
@ -163,7 +163,7 @@ void CGeometryView2D::OnLButtonUp(UINT nFlags, CPoint point)
myCurrentMode = CurAction2d_Nothing; myCurrentMode = CurAction2d_Nothing;
break; break;
default : default :
Standard_Failure::Raise(" incompatible Current Mode "); throw Standard_Failure(" incompatible Current Mode ");
break; break;
} //switch (myCurrentMode) } //switch (myCurrentMode)
} // else // if ( Ctrl ) } // else // if ( Ctrl )
@ -247,7 +247,7 @@ void CGeometryView2D::OnMouseMove(UINT nFlags, CPoint point)
case CurAction2d_GlobalPanning : // nothing case CurAction2d_GlobalPanning : // nothing
break; break;
default : default :
Standard_Failure::Raise(" incompatible Current Mode "); throw Standard_Failure(" incompatible Current Mode ");
break; break;
}// switch (myCurrentMode) }// switch (myCurrentMode)
}// if ( nFlags & MK_CONTROL ) else }// if ( nFlags & MK_CONTROL ) else

View File

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

View File

@ -943,10 +943,10 @@ void CViewer3dDoc::DoSample()
{ {
myPresentation->DoSample(); myPresentation->DoSample();
} }
catch (Standard_Failure) catch (Standard_Failure const& anException)
{ {
Standard_SStream aSStream; 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(); CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg); 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 // Get the TNaming_NamedShape attributes of these labels
Handle(TNaming_NamedShape) OriginalNShape, ToolNShape; Handle(TNaming_NamedShape) OriginalNShape, ToolNShape;
if (!( OriginalLab.FindAttribute(TNaming_NamedShape::GetID(),OriginalNShape) )) 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) )) 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: // Now, let's get the TopoDS_Shape of these TNaming_NamedShape:
TopoDS_Shape OriginalShape = OriginalNShape->Get(); TopoDS_Shape OriginalShape = OriginalNShape->Get();

View File

@ -346,10 +346,10 @@ void CTriangulationDoc::DoSample()
{ {
myPresentation->DoSample(); myPresentation->DoSample();
} }
catch (Standard_Failure) catch (Standard_Failure const& anException)
{ {
Standard_SStream aSStream; 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(); CString aMsg = aSStream.str().c_str();
// aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array // aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array
AfxMessageBox (aMsg); AfxMessageBox (aMsg);

View File

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

View File

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

View File

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

View File

@ -150,10 +150,10 @@ void COCCDemoDoc::DoSample()
{ {
myPresentation->DoSample(); myPresentation->DoSample();
} }
catch (Standard_Failure) catch (Standard_Failure const& anException)
{ {
Standard_SStream aSStream; 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(); CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg); AfxMessageBox (aMsg);
} }

View File

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

View File

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

View File

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

View File

@ -103,10 +103,10 @@ Application:
nReturnCode = pApp->Run(); nReturnCode = pApp->Run();
} }
// if(_Function.Catches(STANDARD_TYPE(Standard_Failure))) // if(_Function.Catches(STANDARD_TYPE(Standard_Failure)))
catch(Standard_Failure) catch(Standard_Failure const& anException)
{ {
Standard_SStream ostr; Standard_SStream ostr;
ostr<<Standard_Failure::Caught()<<"\n\0"; ostr<<anException<<"\n\0";
CString aMsg = ostr.str().c_str(); CString aMsg = ostr.str().c_str();
MessageBoxW (NULL, aMsg, L"CasCade Error", MB_ICONERROR); MessageBoxW (NULL, aMsg, L"CasCade Error", MB_ICONERROR);
goto Application; // restart application loop 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() ); myView->StartRotation( point.x(), point.y() );
break; break;
default: default:
Standard_Failure::Raise( "incompatible Current Mode" ); throw Standard_Failure( "incompatible Current Mode" );
break; break;
} }
} }
@ -720,7 +720,7 @@ void View::onLButtonUp( Qt::MouseButtons nFlags, const QPoint point )
noActiveActions(); noActiveActions();
break; break;
default: default:
Standard_Failure::Raise(" incompatible Current Mode "); throw Standard_Failure(" incompatible Current Mode ");
break; break;
} }
activateCursor( myCurrentMode ); activateCursor( myCurrentMode );
@ -788,7 +788,7 @@ void View::onMouseMove( Qt::MouseButtons nFlags, const QPoint point )
myView->Redraw(); myView->Redraw();
break; break;
default: default:
Standard_Failure::Raise( "incompatible Current Mode" ); throw Standard_Failure( "incompatible Current Mode" );
break; 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. // The text position point for angle dimension should belong to the working plane.
if (!GetPlane().Contains (theTextPos, Precision::Confusion())) 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; myIsTextPositionFixed = Standard_True;

View File

@ -59,7 +59,7 @@ void AIS_Animation::Add (const Handle(AIS_Animation)& theAnimation)
{ {
if (theAnimation.IsNull()) 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()) 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()) 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(); 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) 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 ) ; 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, void AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_Chamf2dDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& 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 ) ; 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, void AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_Chamf3dDimension::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& 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 ) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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) 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 ) ; PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ;
} }

View File

@ -75,7 +75,7 @@ void AIS_ConnectedInteractive::connect (const Handle(AIS_InteractiveObject)& the
} }
else 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()) 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 // do not build any dimension for equal points
if (theFirstPoint.IsEqual (theSecondPoint, Precision::Confusion())) 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(); Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
@ -684,7 +684,7 @@ void AIS_Dimension::DrawLinearDimension (const Handle(Prs3d_Presentation)& thePr
if (!AdjustParametersForLinear (myFixedTextPosition, theFirstPoint, theSecondPoint, if (!AdjustParametersForLinear (myFixedTextPosition, theFirstPoint, theSecondPoint,
anExtensionSize, aHorisontalTextPos, myFlyout, myPlane, myIsPlaneCustom)) 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 else
{ {
Standard_ConstructionError::Raise("AIS:: Not expected type of surface") ; throw Standard_ConstructionError("AIS:: Not expected type of surface") ;
return; return;
} }
@ -174,7 +174,7 @@ void AIS_EllipseRadiusDimension::ComputeCylFaceGeometry(const AIS_KindOfSurface
{ {
if(Offset <0.0 && Abs(Offset) > myEllipse.MinorRadius ()) 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; return;
} }
@ -225,7 +225,7 @@ void AIS_EllipseRadiusDimension::ComputePlanarFaceGeometry()
} }
if( !find ) 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; return;
} }

View File

@ -215,7 +215,7 @@ void AIS_EqualDistanceRelation::Compute( const Handle( PrsMgr_PresentationManage
void AIS_EqualDistanceRelation::Compute( const Handle( Prs3d_Projector )& /*aProjector*/, void AIS_EqualDistanceRelation::Compute( const Handle( Prs3d_Projector )& /*aProjector*/,
const Handle( Prs3d_Presentation )& /*aPresentation*/) 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 )& )"); // const Handle( Prs3d_Presentation )& )");
// PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ; // 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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)&)"); // const Handle(Geom_Transformation)&,const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ; 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*/, void AIS_EqualRadiusRelation::Compute( const Handle( Prs3d_Projector )& /*aProjector*/,
const Handle( Prs3d_Presentation )& /*aPresentation*/) 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 ) ; // 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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, void AIS_FixRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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, void AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_IdenticRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& 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 ) ; 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) 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)()); theIObj->SetContext (Handle(AIS_InteractiveContext)());
} }

View File

@ -1796,7 +1796,7 @@ protected:
{ {
if (theObj->myCTXPtr != this) 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 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) 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) ; 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, void AIS_MaxRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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*/, void AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
const Handle(Prs3d_Presentation)& /*aPresentation*/) 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 ) ; // PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)& aProjector, void AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&,
const Handle(Geom_Transformation)& aTransformation, const Handle(Geom_Transformation)&,
const Handle(Prs3d_Presentation)& aPresentation) const Handle(Prs3d_Presentation)&)
{ {
Standard_NotImplemented::Raise("AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)"); throw Standard_NotImplemented("AIS_MidPointRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ; // 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, void AIS_MinRadiusDimension::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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*/, void AIS_OffsetDimension::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
const Handle(Prs3d_Presentation)& /*aPresentation*/) 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 ) ; // 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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, void AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_ParallelRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& 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 ) ; 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)&) 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, void AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_PerpendicularRelation::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTransformation, const Handle(Prs3d_Presentation)& 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 ) ; 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) 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) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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) ; 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*/, void AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
const Handle(Prs3d_Presentation)& /*aPresentation*/) 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 ) ; // PrsMgr_PresentableObject::Compute( aProjector , aPresentation ) ;
} }
void AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)& aProjector, void AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&,
const Handle(Geom_Transformation)& aTransformation, const Handle(Geom_Transformation)&,
const Handle(Prs3d_Presentation)& aPresentation) const Handle(Prs3d_Presentation)&)
{ {
Standard_NotImplemented::Raise("AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)"); throw Standard_NotImplemented("AIS_SymmetricRelation::Compute(const Handle(Prs3d_Projector)&, const Handle(Geom_Transformation)&, const Handle(Prs3d_Presentation)&)");
PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation ) ; // 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, void AIS_TangentRelation::Compute(const Handle(Prs3d_Projector)& aProjector,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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 ) ; 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(Geom_Transformation)& aTransformation,
const Handle(Prs3d_Presentation)& aPresentation) 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) ; PrsMgr_PresentableObject::Compute( aProjector , aTransformation , aPresentation) ;
} }

View File

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

View File

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

View File

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

View File

@ -47,8 +47,7 @@ Adaptor3d_Curve::~Adaptor3d_Curve()
Standard_Real Adaptor3d_Curve::FirstParameter() const Standard_Real Adaptor3d_Curve::FirstParameter() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::FirstParameter"); throw Standard_NotImplemented("Adaptor3d_Curve::FirstParameter");
return 0.;
} }
@ -59,8 +58,7 @@ Standard_Real Adaptor3d_Curve::FirstParameter() const
Standard_Real Adaptor3d_Curve::LastParameter() const Standard_Real Adaptor3d_Curve::LastParameter() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::LastParameter"); throw Standard_NotImplemented("Adaptor3d_Curve::LastParameter");
return 0.;
} }
@ -71,8 +69,7 @@ Standard_Real Adaptor3d_Curve::LastParameter() const
GeomAbs_Shape Adaptor3d_Curve::Continuity() const GeomAbs_Shape Adaptor3d_Curve::Continuity() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Continuity"); throw Standard_NotImplemented("Adaptor3d_Curve::Continuity");
return GeomAbs_C0;
} }
@ -83,8 +80,7 @@ GeomAbs_Shape Adaptor3d_Curve::Continuity() const
Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbIntervals"); throw Standard_NotImplemented("Adaptor3d_Curve::NbIntervals");
return 0;
} }
@ -95,7 +91,7 @@ Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , 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 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 Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real , const Standard_Real , const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Trim"); throw Standard_NotImplemented("Adaptor3d_Curve::Trim");
return Handle(Adaptor3d_HCurve)();
} }
@ -119,8 +114,7 @@ Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real , const Stand
Standard_Boolean Adaptor3d_Curve::IsClosed() const Standard_Boolean Adaptor3d_Curve::IsClosed() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::IsClosed"); throw Standard_NotImplemented("Adaptor3d_Curve::IsClosed");
return 0;
} }
@ -131,8 +125,7 @@ Standard_Boolean Adaptor3d_Curve::IsClosed() const
Standard_Boolean Adaptor3d_Curve::IsPeriodic() const Standard_Boolean Adaptor3d_Curve::IsPeriodic() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::IsPeriodic"); throw Standard_NotImplemented("Adaptor3d_Curve::IsPeriodic");
return 0;
} }
@ -143,8 +136,7 @@ Standard_Boolean Adaptor3d_Curve::IsPeriodic() const
Standard_Real Adaptor3d_Curve::Period() const Standard_Real Adaptor3d_Curve::Period() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Period"); throw Standard_NotImplemented("Adaptor3d_Curve::Period");
return 0.;
} }
@ -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 U) const
gp_Pnt Adaptor3d_Curve::Value(const Standard_Real ) const gp_Pnt Adaptor3d_Curve::Value(const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Value"); throw Standard_NotImplemented("Adaptor3d_Curve::Value");
return gp_Pnt();
} }
@ -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 U, gp_Pnt& P) const
void Adaptor3d_Curve::D0(const Standard_Real , gp_Pnt& ) 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 U, gp_Pnt& P, gp_Vec& V) const
void Adaptor3d_Curve::D1(const Standard_Real , gp_Pnt& , gp_Vec& ) 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 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 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 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 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 U, const Standard_Integer N) const
gp_Vec Adaptor3d_Curve::DN(const Standard_Real , const Standard_Integer ) const gp_Vec Adaptor3d_Curve::DN(const Standard_Real , const Standard_Integer ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::DN"); throw Standard_NotImplemented("Adaptor3d_Curve::DN");
return gp_Vec();
} }
@ -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 R3d) const
Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Resolution"); throw Standard_NotImplemented("Adaptor3d_Curve::Resolution");
return 0.;
} }
@ -242,8 +231,7 @@ Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const
GeomAbs_CurveType Adaptor3d_Curve::GetType() const GeomAbs_CurveType Adaptor3d_Curve::GetType() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::GetType"); throw Standard_NotImplemented("Adaptor3d_Curve::GetType");
return GeomAbs_OtherCurve;
} }
@ -254,8 +242,7 @@ GeomAbs_CurveType Adaptor3d_Curve::GetType() const
gp_Lin Adaptor3d_Curve::Line() const gp_Lin Adaptor3d_Curve::Line() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Line"); throw Standard_NotImplemented("Adaptor3d_Curve::Line");
return gp_Lin();
} }
@ -266,8 +253,7 @@ gp_Lin Adaptor3d_Curve::Line() const
gp_Circ Adaptor3d_Curve::Circle() const gp_Circ Adaptor3d_Curve::Circle() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Circle"); throw Standard_NotImplemented("Adaptor3d_Curve::Circle");
return gp_Circ();
} }
@ -278,8 +264,7 @@ gp_Circ Adaptor3d_Curve::Circle() const
gp_Elips Adaptor3d_Curve::Ellipse() const gp_Elips Adaptor3d_Curve::Ellipse() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Ellipse"); throw Standard_NotImplemented("Adaptor3d_Curve::Ellipse");
return gp_Elips();
} }
@ -290,8 +275,7 @@ gp_Elips Adaptor3d_Curve::Ellipse() const
gp_Hypr Adaptor3d_Curve::Hyperbola() const gp_Hypr Adaptor3d_Curve::Hyperbola() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Hyperbola"); throw Standard_NotImplemented("Adaptor3d_Curve::Hyperbola");
return gp_Hypr();
} }
@ -302,8 +286,7 @@ gp_Hypr Adaptor3d_Curve::Hyperbola() const
gp_Parab Adaptor3d_Curve::Parabola() const gp_Parab Adaptor3d_Curve::Parabola() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Parabola"); throw Standard_NotImplemented("Adaptor3d_Curve::Parabola");
return gp_Parab();
} }
@ -314,8 +297,7 @@ gp_Parab Adaptor3d_Curve::Parabola() const
Standard_Integer Adaptor3d_Curve::Degree() const Standard_Integer Adaptor3d_Curve::Degree() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Degree"); throw Standard_NotImplemented("Adaptor3d_Curve::Degree");
return 0;
} }
@ -326,8 +308,7 @@ Standard_Integer Adaptor3d_Curve::Degree() const
Standard_Boolean Adaptor3d_Curve::IsRational() const Standard_Boolean Adaptor3d_Curve::IsRational() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::IsRational"); throw Standard_NotImplemented("Adaptor3d_Curve::IsRational");
return 0;
} }
@ -338,8 +319,7 @@ Standard_Boolean Adaptor3d_Curve::IsRational() const
Standard_Integer Adaptor3d_Curve::NbPoles() const Standard_Integer Adaptor3d_Curve::NbPoles() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbPoles"); throw Standard_NotImplemented("Adaptor3d_Curve::NbPoles");
return 0;
} }
@ -350,8 +330,7 @@ Standard_Integer Adaptor3d_Curve::NbPoles() const
Standard_Integer Adaptor3d_Curve::NbKnots() const Standard_Integer Adaptor3d_Curve::NbKnots() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbKnots"); throw Standard_NotImplemented("Adaptor3d_Curve::NbKnots");
return 0;
} }
@ -362,8 +341,7 @@ Standard_Integer Adaptor3d_Curve::NbKnots() const
Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::Bezier"); throw Standard_NotImplemented("Adaptor3d_Curve::Bezier");
return Handle(Geom_BezierCurve)();
} }
@ -374,8 +352,7 @@ Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const
Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::BSpline"); throw Standard_NotImplemented("Adaptor3d_Curve::BSpline");
return Handle(Geom_BSplineCurve)();
} }
//======================================================================= //=======================================================================
@ -385,6 +362,5 @@ Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const
Handle(Geom_OffsetCurve) Adaptor3d_Curve::OffsetCurve() const Handle(Geom_OffsetCurve) Adaptor3d_Curve::OffsetCurve() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Curve::OffsetCurve"); throw Standard_NotImplemented("Adaptor3d_Curve::OffsetCurve");
return Handle(Geom_OffsetCurve)();
} }

View File

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

View File

@ -49,8 +49,7 @@ Adaptor3d_Surface::~Adaptor3d_Surface()
Standard_Real Adaptor3d_Surface::FirstUParameter() const Standard_Real Adaptor3d_Surface::FirstUParameter() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstUParameter"); throw Standard_NotImplemented("Adaptor3d_Surface::FirstUParameter");
return 0.;
} }
@ -61,8 +60,7 @@ Standard_Real Adaptor3d_Surface::FirstUParameter() const
Standard_Real Adaptor3d_Surface::LastUParameter() const Standard_Real Adaptor3d_Surface::LastUParameter() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::LastUParameter"); throw Standard_NotImplemented("Adaptor3d_Surface::LastUParameter");
return 0.;
} }
@ -73,8 +71,7 @@ Standard_Real Adaptor3d_Surface::LastUParameter() const
Standard_Real Adaptor3d_Surface::FirstVParameter() const Standard_Real Adaptor3d_Surface::FirstVParameter() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstVParameter"); throw Standard_NotImplemented("Adaptor3d_Surface::FirstVParameter");
return 0.;
} }
@ -85,8 +82,7 @@ Standard_Real Adaptor3d_Surface::FirstVParameter() const
Standard_Real Adaptor3d_Surface::LastVParameter() const Standard_Real Adaptor3d_Surface::LastVParameter() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::LastVParameter"); throw Standard_NotImplemented("Adaptor3d_Surface::LastVParameter");
return 0.;
} }
@ -97,8 +93,7 @@ Standard_Real Adaptor3d_Surface::LastVParameter() const
GeomAbs_Shape Adaptor3d_Surface::UContinuity() const GeomAbs_Shape Adaptor3d_Surface::UContinuity() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::UContinuity"); throw Standard_NotImplemented("Adaptor3d_Surface::UContinuity");
return GeomAbs_C0;
} }
@ -109,8 +104,7 @@ GeomAbs_Shape Adaptor3d_Surface::UContinuity() const
GeomAbs_Shape Adaptor3d_Surface::VContinuity() const GeomAbs_Shape Adaptor3d_Surface::VContinuity() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::VContinuity"); throw Standard_NotImplemented("Adaptor3d_Surface::VContinuity");
return GeomAbs_C0;
} }
@ -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 S) const
Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUIntervals"); throw Standard_NotImplemented("Adaptor3d_Surface::NbUIntervals");
return 0;
} }
@ -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 S) const
Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVIntervals"); throw Standard_NotImplemented("Adaptor3d_Surface::NbVIntervals");
return 0;
} }
@ -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& T, const GeomAbs_Shape S) const
void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) 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& T, const GeomAbs_Shape S) const
void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) 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 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 Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::UTrim"); throw Standard_NotImplemented("Adaptor3d_Surface::UTrim");
return Handle(Adaptor3d_HSurface)();
} }
@ -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 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 Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::VTrim"); throw Standard_NotImplemented("Adaptor3d_Surface::VTrim");
return Handle(Adaptor3d_HSurface)();
} }
@ -197,8 +187,7 @@ Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real , const
Standard_Boolean Adaptor3d_Surface::IsUClosed() const Standard_Boolean Adaptor3d_Surface::IsUClosed() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUClosed"); throw Standard_NotImplemented("Adaptor3d_Surface::IsUClosed");
return 0;
} }
@ -209,8 +198,7 @@ Standard_Boolean Adaptor3d_Surface::IsUClosed() const
Standard_Boolean Adaptor3d_Surface::IsVClosed() const Standard_Boolean Adaptor3d_Surface::IsVClosed() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVClosed"); throw Standard_NotImplemented("Adaptor3d_Surface::IsVClosed");
return 0;
} }
@ -221,8 +209,7 @@ Standard_Boolean Adaptor3d_Surface::IsVClosed() const
Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUPeriodic"); throw Standard_NotImplemented("Adaptor3d_Surface::IsUPeriodic");
return 0;
} }
@ -233,8 +220,7 @@ Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const
Standard_Real Adaptor3d_Surface::UPeriod() const Standard_Real Adaptor3d_Surface::UPeriod() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::UPeriod"); throw Standard_NotImplemented("Adaptor3d_Surface::UPeriod");
return 0.;
} }
@ -245,8 +231,7 @@ Standard_Real Adaptor3d_Surface::UPeriod() const
Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVPeriodic"); throw Standard_NotImplemented("Adaptor3d_Surface::IsVPeriodic");
return 0;
} }
@ -257,8 +242,7 @@ Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const
Standard_Real Adaptor3d_Surface::VPeriod() const Standard_Real Adaptor3d_Surface::VPeriod() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::VPeriod"); throw Standard_NotImplemented("Adaptor3d_Surface::VPeriod");
return 0.;
} }
@ -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 U, const Standard_Real V) const
gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) const gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Value"); throw Standard_NotImplemented("Adaptor3d_Surface::Value");
return gp_Pnt();
} }
@ -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 U, const Standard_Real V, gp_Pnt& P) const
void Adaptor3d_Surface::D0(const Standard_Real , const Standard_Real , gp_Pnt& ) 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 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 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 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 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 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 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 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 gp_Vec Adaptor3d_Surface::DN(const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::DN"); throw Standard_NotImplemented("Adaptor3d_Surface::DN");
return gp_Vec();
} }
@ -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 R3d) const
Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::UResolution"); throw Standard_NotImplemented("Adaptor3d_Surface::UResolution");
return 0.;
} }
@ -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 R3d) const
Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::VResolution"); throw Standard_NotImplemented("Adaptor3d_Surface::VResolution");
return 0.;
} }
@ -369,8 +349,7 @@ Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const
GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::GetType"); throw Standard_NotImplemented("Adaptor3d_Surface::GetType");
return GeomAbs_OtherSurface;
} }
@ -381,8 +360,7 @@ GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const
gp_Pln Adaptor3d_Surface::Plane() const gp_Pln Adaptor3d_Surface::Plane() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Plane"); throw Standard_NotImplemented("Adaptor3d_Surface::Plane");
return gp_Pln();
} }
@ -393,8 +371,7 @@ gp_Pln Adaptor3d_Surface::Plane() const
gp_Cylinder Adaptor3d_Surface::Cylinder() const gp_Cylinder Adaptor3d_Surface::Cylinder() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Cylinder"); throw Standard_NotImplemented("Adaptor3d_Surface::Cylinder");
return gp_Cylinder();
} }
@ -405,8 +382,7 @@ gp_Cylinder Adaptor3d_Surface::Cylinder() const
gp_Cone Adaptor3d_Surface::Cone() const gp_Cone Adaptor3d_Surface::Cone() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Cone"); throw Standard_NotImplemented("Adaptor3d_Surface::Cone");
return gp_Cone();
} }
@ -417,8 +393,7 @@ gp_Cone Adaptor3d_Surface::Cone() const
gp_Sphere Adaptor3d_Surface::Sphere() const gp_Sphere Adaptor3d_Surface::Sphere() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Sphere"); throw Standard_NotImplemented("Adaptor3d_Surface::Sphere");
return gp_Sphere();
} }
@ -429,8 +404,7 @@ gp_Sphere Adaptor3d_Surface::Sphere() const
gp_Torus Adaptor3d_Surface::Torus() const gp_Torus Adaptor3d_Surface::Torus() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Torus"); throw Standard_NotImplemented("Adaptor3d_Surface::Torus");
return gp_Torus();
} }
@ -441,8 +415,7 @@ gp_Torus Adaptor3d_Surface::Torus() const
Standard_Integer Adaptor3d_Surface::UDegree() const Standard_Integer Adaptor3d_Surface::UDegree() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::UDegree"); throw Standard_NotImplemented("Adaptor3d_Surface::UDegree");
return 0;
} }
@ -453,8 +426,7 @@ Standard_Integer Adaptor3d_Surface::UDegree() const
Standard_Integer Adaptor3d_Surface::NbUPoles() const Standard_Integer Adaptor3d_Surface::NbUPoles() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUPoles"); throw Standard_NotImplemented("Adaptor3d_Surface::NbUPoles");
return 0;
} }
@ -465,8 +437,7 @@ Standard_Integer Adaptor3d_Surface::NbUPoles() const
Standard_Integer Adaptor3d_Surface::VDegree() const Standard_Integer Adaptor3d_Surface::VDegree() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::VDegree"); throw Standard_NotImplemented("Adaptor3d_Surface::VDegree");
return 0;
} }
@ -477,8 +448,7 @@ Standard_Integer Adaptor3d_Surface::VDegree() const
Standard_Integer Adaptor3d_Surface::NbVPoles() const Standard_Integer Adaptor3d_Surface::NbVPoles() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVPoles"); throw Standard_NotImplemented("Adaptor3d_Surface::NbVPoles");
return 0;
} }
@ -489,8 +459,7 @@ Standard_Integer Adaptor3d_Surface::NbVPoles() const
Standard_Integer Adaptor3d_Surface::NbUKnots() const Standard_Integer Adaptor3d_Surface::NbUKnots() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUKnots"); throw Standard_NotImplemented("Adaptor3d_Surface::NbUKnots");
return 0;
} }
@ -501,8 +470,7 @@ Standard_Integer Adaptor3d_Surface::NbUKnots() const
Standard_Integer Adaptor3d_Surface::NbVKnots() const Standard_Integer Adaptor3d_Surface::NbVKnots() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVKnots"); throw Standard_NotImplemented("Adaptor3d_Surface::NbVKnots");
return 0;
} }
@ -513,8 +481,7 @@ Standard_Integer Adaptor3d_Surface::NbVKnots() const
Standard_Boolean Adaptor3d_Surface::IsURational() const Standard_Boolean Adaptor3d_Surface::IsURational() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsURational"); throw Standard_NotImplemented("Adaptor3d_Surface::IsURational");
return 0;
} }
@ -525,8 +492,7 @@ Standard_Boolean Adaptor3d_Surface::IsURational() const
Standard_Boolean Adaptor3d_Surface::IsVRational() const Standard_Boolean Adaptor3d_Surface::IsVRational() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVRational"); throw Standard_NotImplemented("Adaptor3d_Surface::IsVRational");
return 0;
} }
@ -537,8 +503,7 @@ Standard_Boolean Adaptor3d_Surface::IsVRational() const
Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Bezier"); throw Standard_NotImplemented("Adaptor3d_Surface::Bezier");
return Handle(Geom_BezierSurface)();
} }
@ -549,8 +514,7 @@ Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const
Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::BSpline"); throw Standard_NotImplemented("Adaptor3d_Surface::BSpline");
return Handle(Geom_BSplineSurface)();
} }
@ -561,8 +525,7 @@ Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const
gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::AxeOfRevolution"); throw Standard_NotImplemented("Adaptor3d_Surface::AxeOfRevolution");
return gp_Ax1();
} }
@ -573,8 +536,7 @@ gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const
gp_Dir Adaptor3d_Surface::Direction() const gp_Dir Adaptor3d_Surface::Direction() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::Direction"); throw Standard_NotImplemented("Adaptor3d_Surface::Direction");
return gp_Dir();
} }
@ -585,8 +547,7 @@ gp_Dir Adaptor3d_Surface::Direction() const
Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisCurve"); throw Standard_NotImplemented("Adaptor3d_Surface::BasisCurve");
return Handle(Adaptor3d_HCurve)();
} }
@ -597,8 +558,7 @@ Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const
Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisSurface"); throw Standard_NotImplemented("Adaptor3d_Surface::BasisSurface");
return Handle(Adaptor3d_HSurface)();
} }
@ -609,6 +569,5 @@ Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const
Standard_Real Adaptor3d_Surface::OffsetValue() const Standard_Real Adaptor3d_Surface::OffsetValue() const
{ {
Standard_NotImplemented::Raise("Adaptor3d_Surface::OffsetValue"); throw Standard_NotImplemented("Adaptor3d_Surface::OffsetValue");
return 0.;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -90,5 +90,5 @@ AdvApprox_ApproxAFunction::Multiplicities() const
//======================================================================= //=======================================================================
inline Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces(const Standard_Integer Dimension) 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] ; } return myNumSubSpaces[Dimension-1] ; }

View File

@ -28,7 +28,7 @@ AdvApprox_PrefAndRec::AdvApprox_PrefAndRec(const TColStd_Array1OfReal& RecCut,
{ {
myRecCutting = RecCut; myRecCutting = RecCut;
myPrefCutting = PrefCut; 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, 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_C1: myNivConstr = 1; break;
case GeomAbs_C2: myNivConstr = 2; break; case GeomAbs_C2: myNivConstr = 2; break;
default: default:
Standard_ConstructionError::Raise("Invalid Continuity"); throw Standard_ConstructionError("Invalid Continuity");
} }
Standard_Integer DegreeQ = myWorkDegree - 2*(myNivConstr+1); 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) 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[0] = W1;
critweights[1] = W2; critweights[1] = W2;
critweights[2] = W3; critweights[2] = W3;
@ -906,7 +906,7 @@ void AppBlend_AppSurf::SurfShape (Standard_Integer& UDegree,
Standard_Integer& NbUKnots, Standard_Integer& NbUKnots,
Standard_Integer& NbVKnots) const Standard_Integer& NbVKnots) const
{ {
if (!done) {StdFail_NotDone::Raise();} if (!done) {throw StdFail_NotDone();}
UDegree = udeg; UDegree = udeg;
VDegree = vdeg; VDegree = vdeg;
NbUPoles = tabPoles->ColLength(); NbUPoles = tabPoles->ColLength();
@ -924,7 +924,7 @@ void AppBlend_AppSurf::Surface(TColgp_Array2OfPnt& TPoles,
TColStd_Array1OfInteger& TVMults) const TColStd_Array1OfInteger& TVMults) const
{ {
if (!done) {StdFail_NotDone::Raise();} if (!done) {throw StdFail_NotDone();}
TPoles = tabPoles->Array2(); TPoles = tabPoles->Array2();
TWeights = tabWeights->Array2(); TWeights = tabWeights->Array2();
TUKnots = tabUKnots->Array1(); TUKnots = tabUKnots->Array1();
@ -942,8 +942,8 @@ void AppBlend_AppSurf::Curves2dShape(Standard_Integer& Degree,
Standard_Integer& NbPoles, Standard_Integer& NbPoles,
Standard_Integer& NbKnots) const Standard_Integer& NbKnots) const
{ {
if (!done) {StdFail_NotDone::Raise();} if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
Degree = vdeg; Degree = vdeg;
NbPoles = tabPoles->ColLength(); NbPoles = tabPoles->ColLength();
NbKnots = tabVKnots->Length(); NbKnots = tabVKnots->Length();
@ -959,8 +959,8 @@ void AppBlend_AppSurf::Curve2d(const Standard_Integer Index,
TColStd_Array1OfReal& TKnots, TColStd_Array1OfReal& TKnots,
TColStd_Array1OfInteger& TMults) const TColStd_Array1OfInteger& TMults) const
{ {
if (!done) {StdFail_NotDone::Raise();} if (!done) {throw StdFail_NotDone();}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
TPoles = seqPoles2d(Index)->Array1(); TPoles = seqPoles2d(Index)->Array1();
TKnots = tabVKnots->Array1(); TKnots = tabVKnots->Array1();
TMults = tabVMults->Array1(); TMults = tabVMults->Array1();

View File

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

View File

@ -2069,7 +2069,7 @@ static const Standard_Real IMatrix[] = {
void InvMMatrix(const Standard_Integer classe, void InvMMatrix(const Standard_Integer classe,
math_Matrix& InvM) 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; Standard_Integer i, j, k = 0, Som = 0;
for (i = 2; i < classe; i++) { for (i = 2; i < classe; i++) {
Som += (i)*(i); Som += (i)*(i);

View File

@ -414,7 +414,7 @@ static const Standard_Real IBP[] = {
void IBPMatrix(const Standard_Integer classe, math_Matrix& IBPMa) 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); // math_Matrix IBPMa(1, classe-2, 1, classe-2);
Standard_Integer i, j, k = 0, Som = 0; Standard_Integer i, j, k = 0, Som = 0;
for (i = 1; i < classe-2; i++) { for (i = 1; i < classe-2; i++) {

View File

@ -3276,7 +3276,7 @@ static const Standard_Real BBMatrix[] = {
void MMatrix(const Standard_Integer classe, void MMatrix(const Standard_Integer classe,
math_Matrix& M) 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; Standard_Integer i, j, k = 0, Som = 0;
for (i = 2; i < classe; i++) { for (i = 2; i < classe; i++) {
Som += (i)*(i); Som += (i)*(i);

View File

@ -352,7 +352,7 @@ static const Standard_Real IBT[] = {
void IBTMatrix(const Standard_Integer classe, math_Matrix& IBTMa) 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); // math_Matrix IBTMa(1, classe-4, 1, classe-4);
Standard_Integer i, j, k = 0, Som = 0; Standard_Integer i, j, k = 0, Som = 0;
for (i = 1; i < classe-4; i++) { for (i = 1; i < classe-4; i++) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -165,7 +165,7 @@ void AppParCurves_MultiBSpCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt& Pt) const { const Standard_Real U, gp_Pnt& Pt) const {
if (Dimension(CuIndex) != 3) { if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length()); 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 { const Standard_Real U, gp_Pnt2d& Pt) const {
if (Dimension(CuIndex) != 2) { if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length()); 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, void AppParCurves_MultiBSpCurve::D1 (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt& Pt, gp_Vec& V1) const { const Standard_Real U, gp_Pnt& Pt, gp_Vec& V1) const {
if (Dimension(CuIndex) != 3) { if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length()); TColgp_Array1OfPnt TabPoles(1, tabPoint->Length());
@ -226,7 +226,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
gp_Vec& V1, gp_Vec& V1,
gp_Vec& V2) const { gp_Vec& V2) const {
if (Dimension(CuIndex) != 3) { if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt TabPoles(1, tabPoint->Length()); 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, void AppParCurves_MultiBSpCurve::D1 (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt2d& Pt, gp_Vec2d& V1) const { const Standard_Real U, gp_Pnt2d& Pt, gp_Vec2d& V1) const {
if (Dimension(CuIndex) != 2) { if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length()); TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length());
@ -267,7 +267,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
gp_Vec2d& V1, gp_Vec2d& V1,
gp_Vec2d& V2) const { gp_Vec2d& V2) const {
if (Dimension(CuIndex) != 2) { if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt2d TabPoles(1, tabPoint->Length()); 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 Lo = tabPoint->Lower();
Standard_Integer nb = tabPoint->Value(Lo).NbPoints() + tabPoint->Value(Lo).NbPoints2d(); Standard_Integer nb = tabPoint->Value(Lo).NbPoints() + tabPoint->Value(Lo).NbPoints2d();
if ((Index <= 0) || (Index > nb)) { if ((Index <= 0) || (Index > nb)) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
return tabPoint->Value(Lo).Dimension(Index); return tabPoint->Value(Lo).Dimension(Index);
} }
@ -91,7 +91,7 @@ void AppParCurves_MultiCurve::SetValue (const Standard_Integer Index,
const AppParCurves_MultiPoint& MPoint) { const AppParCurves_MultiPoint& MPoint) {
if ((Index <= 0) || (Index > tabPoint->Length())) { if ((Index <= 0) || (Index > tabPoint->Length())) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
tabPoint->SetValue(Index, MPoint); tabPoint->SetValue(Index, MPoint);
} }
@ -100,7 +100,7 @@ void AppParCurves_MultiCurve::SetValue (const Standard_Integer Index,
void AppParCurves_MultiCurve::Curve (const Standard_Integer CuIndex, void AppParCurves_MultiCurve::Curve (const Standard_Integer CuIndex,
TColgp_Array1OfPnt& TabPnt) const { TColgp_Array1OfPnt& TabPnt) const {
if ((CuIndex <= 0)) { if ((CuIndex <= 0)) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
for ( Standard_Integer i = 1; i <= tabPoint->Length(); i++) { for ( Standard_Integer i = 1; i <= tabPoint->Length(); i++) {
TabPnt(i) = tabPoint->Value(i).Point(CuIndex); 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, void AppParCurves_MultiCurve::Curve (const Standard_Integer CuIndex,
TColgp_Array1OfPnt2d& TabPnt2d) const { TColgp_Array1OfPnt2d& TabPnt2d) const {
if ((CuIndex <= 0)) { if ((CuIndex <= 0)) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
for ( Standard_Integer i = 1; i <= tabPoint->Length(); i++) { for ( Standard_Integer i = 1; i <= tabPoint->Length(); i++) {
TabPnt2d(i) = tabPoint->Value(i).Point2d(CuIndex); 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 const Standard_Integer Nieme) const
{ {
if ((CuIndex <= 0) && Nieme <= 0) { if ((CuIndex <= 0) && Nieme <= 0) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
return tabPoint->Value(Nieme).Point(CuIndex); 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 const Standard_Integer Nieme)const
{ {
if ((CuIndex <= 0) && Nieme <= 0) { if ((CuIndex <= 0) && Nieme <= 0) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
return tabPoint->Value(Nieme).Point2d(CuIndex); 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 { const AppParCurves_MultiPoint& AppParCurves_MultiCurve::Value (const Standard_Integer Index) const {
if ((Index <= 0) || (Index > tabPoint->Length())) { if ((Index <= 0) || (Index > tabPoint->Length())) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
return tabPoint->Value(Index); return tabPoint->Value(Index);
} }
@ -155,7 +155,7 @@ void AppParCurves_MultiCurve::Transform(const Standard_Integer CuIndex,
const Standard_Real z, const Standard_Real z,
const Standard_Real dz) 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++) { for (Standard_Integer i = 1 ; i <= tabPoint->Length(); i++) {
(tabPoint->ChangeValue(i)).Transform(CuIndex, x, dx, y, dy, z, dz); (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 y,
const Standard_Real dy) 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++) { for (Standard_Integer i = 1 ; i <= tabPoint->Length(); i++) {
(tabPoint->ChangeValue(i)).Transform2d(CuIndex, x, dx, y, dy); (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, void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt& Pt) const { 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()); 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, void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
const Standard_Real U, gp_Pnt2d& Pt) const { const Standard_Real U, gp_Pnt2d& Pt) const {
if (Dimension(CuIndex) != 2) { if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length()); TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length());
@ -213,7 +213,7 @@ void AppParCurves_MultiCurve::D1 (const Standard_Integer CuIndex,
gp_Vec& V1) const { gp_Vec& V1) const {
if (Dimension(CuIndex) != 3) { if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt TabPole(1, tabPoint->Length()); TColgp_Array1OfPnt TabPole(1, tabPoint->Length());
@ -233,7 +233,7 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
gp_Vec& V2) const { gp_Vec& V2) const {
if (Dimension(CuIndex) != 3) { if (Dimension(CuIndex) != 3) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt TabPole(1, tabPoint->Length()); 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 { const Standard_Real U, gp_Pnt2d& Pt, gp_Vec2d& V1) const {
if (Dimension(CuIndex) != 2) { if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length()); TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length());
@ -270,7 +270,7 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
gp_Vec2d& V2) const { gp_Vec2d& V2) const {
if (Dimension(CuIndex) != 2) { if (Dimension(CuIndex) != 2) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
TColgp_Array1OfPnt2d TabPole(1, tabPoint->Length()); 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 z,
const Standard_Real dz) const Standard_Real dz)
{ {
if (Dimension(CuIndex) != 3) Standard_OutOfRange::Raise(); if (Dimension(CuIndex) != 3) throw Standard_OutOfRange();
gp_Pnt P, newP; gp_Pnt P, newP;
P = Point(CuIndex); P = Point(CuIndex);
@ -130,7 +130,7 @@ void AppParCurves_MultiPoint::Transform2d(const Standard_Integer CuIndex,
const Standard_Real y, const Standard_Real y,
const Standard_Real dy) const Standard_Real dy)
{ {
if (Dimension(CuIndex) != 2) Standard_OutOfRange::Raise(); if (Dimension(CuIndex) != 2) throw Standard_OutOfRange();
gp_Pnt2d P, newP; gp_Pnt2d P, newP;
P = Point2d(CuIndex); 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 inline Standard_Integer AppParCurves_MultiPoint::Dimension(const Standard_Integer Index) const
{ {
if (Index < 0 || Index > (nbP + nbP2d)) { if (Index < 0 || Index > (nbP + nbP2d)) {
Standard_OutOfRange::Raise(); throw Standard_OutOfRange();
} }
if (Index <= nbP) { if (Index <= nbP) {
return 3; return 3;

View File

@ -312,7 +312,7 @@ void Approx_CurveOnSurface_Eval2d::Evaluate (Standard_Integer *Dimension,
const Standard_Boolean only2d) const Standard_Boolean only2d)
{ {
myIsDone = Standard_False; myIsDone = Standard_False;
if(only3d && only2d) Standard_ConstructionError::Raise(); if(only3d && only2d) throw Standard_ConstructionError();
GeomAbs_Shape Order = S; GeomAbs_Shape Order = S;
Handle( Adaptor2d_HCurve2d ) TrimmedC2D = C2D->Trim( First, Last, Precision::PConfusion() ); 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 i, j;
Standard_Integer NbInt = Si->Length() - 1; 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; if(NInterval < 1) NInterval = 1;
else if(NInterval > NbInt - 2) NInterval = NbInt - 2; 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) 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; if ((Last - First) < Tol) return;
Standard_Real FirstU, LastU; Standard_Real FirstU, LastU;
@ -461,7 +461,7 @@ Standard_Real Approx_CurvlinFunc::GetUParameter(Adaptor3d_Curve& C,
#ifdef OCCT_DEBUG_CHRONO #ifdef OCCT_DEBUG_CHRONO
InitChron(chr_uparam); InitChron(chr_uparam);
#endif #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) { if(NumberOfCurve == 1) {
InitUArray = myUi_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 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_Pnt C;
gp_Vec dC_dU, dC_dS, d2C_dU2, d2C_dS2; 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 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; 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) 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); TColStd_Array1OfReal tmpRes1(0, 4), tmpRes2(0, 4);
Standard_Boolean Done; Standard_Boolean Done;
@ -629,7 +629,7 @@ Standard_Boolean Approx_CurvlinFunc::EvalCurOnSur(const Standard_Real S, const S
Length = myLength2; Length = myLength2;
} }
else 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; 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; gp_Pnt2d C2D;

View File

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

View File

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

View File

@ -29,95 +29,95 @@ inline Standard_Boolean Approx_SweepApproximation::IsDone() const
inline Standard_Integer Approx_SweepApproximation::UDegree() const inline Standard_Integer Approx_SweepApproximation::UDegree() const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return udeg; return udeg;
} }
inline Standard_Integer Approx_SweepApproximation::VDegree() const inline Standard_Integer Approx_SweepApproximation::VDegree() const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return vdeg; return vdeg;
} }
inline const TColgp_Array2OfPnt& Approx_SweepApproximation::SurfPoles() const 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(); return tabPoles->Array2();
} }
inline const TColStd_Array2OfReal& Approx_SweepApproximation::SurfWeights() const 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(); return tabWeights->Array2();
} }
inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfUKnots() const 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(); return tabUKnots->Array1();
} }
inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfVKnots() const 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(); return tabVKnots->Array1();
} }
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfUMults() const 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(); return tabUMults->Array1();
} }
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfVMults() const 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(); return tabVMults->Array1();
} }
inline Standard_Integer Approx_SweepApproximation::NbCurves2d() const inline Standard_Integer Approx_SweepApproximation::NbCurves2d() const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
return Num2DSS; return Num2DSS;
} }
inline Standard_Integer Approx_SweepApproximation::Curves2dDegree() const inline Standard_Integer Approx_SweepApproximation::Curves2dDegree() const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return deg2d; return deg2d;
} }
inline const TColgp_Array1OfPnt2d& Approx_SweepApproximation::Curve2dPoles(const Standard_Integer Index) const inline const TColgp_Array1OfPnt2d& Approx_SweepApproximation::Curve2dPoles(const Standard_Integer Index) const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return seqPoles2d(Index)->Array1(); return seqPoles2d(Index)->Array1();
} }
inline const TColStd_Array1OfReal& Approx_SweepApproximation::Curves2dKnots() const inline const TColStd_Array1OfReal& Approx_SweepApproximation::Curves2dKnots() const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return tab2dKnots->Array1(); return tab2dKnots->Array1();
} }
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::Curves2dMults() const inline const TColStd_Array1OfInteger& Approx_SweepApproximation::Curves2dMults() const
{ {
if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");} if (!done) {throw StdFail_NotDone(" Approx_SweepApproximation");}
if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} if (seqPoles2d.Length() == 0) {throw Standard_DomainError();}
return tab2dMults->Array1(); 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 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_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"); throw Standard_NotImplemented("Approx_SweepFunction::D1");
return Standard_False;
} }
// 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 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_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"); throw Standard_NotImplemented("Approx_SweepFunction::D2");
return Standard_False;
} }
// 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 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 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 gp_Pnt Approx_SweepFunction::BarycentreOfSurf() const
{ {
Standard_NotImplemented::Raise("Approx_SweepFunction::BarycentreOfSurf"); throw Standard_NotImplemented("Approx_SweepFunction::BarycentreOfSurf");
return gp_Pnt(0.,0.,0.);
} }
Standard_Real Approx_SweepFunction::MaximalSection() const Standard_Real Approx_SweepFunction::MaximalSection() const
{ {
Standard_NotImplemented::Raise("Approx_SweepFunction::MaximalSection()"); throw Standard_NotImplemented("Approx_SweepFunction::MaximalSection()");
return 0;
} }
// void Approx_SweepFunction::GetMinimalWeight(TColStd_Array1OfReal& Weigths) const // void Approx_SweepFunction::GetMinimalWeight(TColStd_Array1OfReal& Weigths) const
void Approx_SweepFunction::GetMinimalWeight(TColStd_Array1OfReal& ) 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 #if !defined No_Exception && !defined No_Aspect_AspectFillAreaDefinitionError
#define Aspect_AspectFillAreaDefinitionError_Raise_if(CONDITION, MESSAGE) \ #define Aspect_AspectFillAreaDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_AspectFillAreaDefinitionError::Raise(MESSAGE); if (CONDITION) throw Aspect_AspectFillAreaDefinitionError(MESSAGE);
#else #else
#define Aspect_AspectFillAreaDefinitionError_Raise_if(CONDITION, MESSAGE) #define Aspect_AspectFillAreaDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif #endif

View File

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

View File

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

View File

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

View File

@ -89,7 +89,7 @@ void Aspect_DisplayConnection::Init()
TCollection_AsciiString aMessage; TCollection_AsciiString aMessage;
aMessage += "Can not connect to the server \""; aMessage += "Can not connect to the server \"";
aMessage += myDisplayName + "\""; 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 #if !defined No_Exception && !defined No_Aspect_DisplayConnectionDefinitionError
#define Aspect_DisplayConnectionDefinitionError_Raise_if(CONDITION, MESSAGE) \ #define Aspect_DisplayConnectionDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) Aspect_DisplayConnectionDefinitionError::Raise(MESSAGE); if (CONDITION) throw Aspect_DisplayConnectionDefinitionError(MESSAGE);
#else #else
#define Aspect_DisplayConnectionDefinitionError_Raise_if(CONDITION, MESSAGE) #define Aspect_DisplayConnectionDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif #endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -452,7 +452,7 @@ void BRep_Builder::MakeFace(TopoDS_Face& F,
Handle(BRep_TFace) TF = new BRep_TFace(); Handle(BRep_TFace) TF = new BRep_TFace();
if(!F.IsNull() && F.Locked()) if(!F.IsNull() && F.Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::MakeFace"); throw TopoDS_LockedShape("BRep_Builder::MakeFace");
} }
TF->Surface(S); TF->Surface(S);
TF->Tolerance(Tol); TF->Tolerance(Tol);
@ -471,7 +471,7 @@ void BRep_Builder::MakeFace(TopoDS_Face& F,
Handle(BRep_TFace) TF = new BRep_TFace(); Handle(BRep_TFace) TF = new BRep_TFace();
if(!F.IsNull() && F.Locked()) if(!F.IsNull() && F.Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::MakeFace"); throw TopoDS_LockedShape("BRep_Builder::MakeFace");
} }
TF->Triangulation(T); TF->Triangulation(T);
MakeShape(F, TF); MakeShape(F, TF);
@ -491,7 +491,7 @@ void BRep_Builder::MakeFace(TopoDS_Face& F,
Handle(BRep_TFace) TF = new BRep_TFace(); Handle(BRep_TFace) TF = new BRep_TFace();
if(!F.IsNull() && F.Locked()) if(!F.IsNull() && F.Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::MakeFace"); throw TopoDS_LockedShape("BRep_Builder::MakeFace");
} }
TF->Surface(S); TF->Surface(S);
TF->Tolerance(Tol); 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()); const Handle(BRep_TFace)& TF = *((Handle(BRep_TFace)*) &F.TShape());
if(TF->Locked()) if(TF->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateFace"); throw TopoDS_LockedShape("BRep_Builder::UpdateFace");
} }
TF->Surface(S); TF->Surface(S);
TF->Tolerance(Tol); 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()); const Handle(BRep_TFace)& TF = *((Handle(BRep_TFace)*) &F.TShape());
if(TF->Locked()) if(TF->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateFace"); throw TopoDS_LockedShape("BRep_Builder::UpdateFace");
} }
TF->Triangulation(T); TF->Triangulation(T);
F.TShape()->Modified(Standard_True); 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()); const Handle(BRep_TFace)& TF = *((Handle(BRep_TFace)*) &F.TShape());
if(TF->Locked()) if(TF->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateFace"); throw TopoDS_LockedShape("BRep_Builder::UpdateFace");
} }
TF->Tolerance(Tol); TF->Tolerance(Tol);
F.TShape()->Modified(Standard_True); 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())); const Handle(BRep_TFace)& TF = (*((Handle(BRep_TFace)*) &F.TShape()));
if(TF->Locked()) if(TF->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::NaturalRestriction"); throw TopoDS_LockedShape("BRep_Builder::NaturalRestriction");
} }
TF->NaturalRestriction(N); TF->NaturalRestriction(N);
F.TShape()->Modified(Standard_True); F.TShape()->Modified(Standard_True);
@ -586,7 +586,7 @@ void BRep_Builder::MakeEdge(TopoDS_Edge& E) const
Handle(BRep_TEdge) TE = new BRep_TEdge(); Handle(BRep_TEdge) TE = new BRep_TEdge();
if(!E.IsNull() && E.Locked()) if(!E.IsNull() && E.Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::MakeEdge"); throw TopoDS_LockedShape("BRep_Builder::MakeEdge");
} }
MakeShape(E,TE); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves(); BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves();
BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
const TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
TopLoc_Location l = L.Predivided(E.Location()); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateEdge"); throw TopoDS_LockedShape("BRep_Builder::UpdateEdge");
} }
TE->UpdateTolerance(Tol); TE->UpdateTolerance(Tol);
TE->Modified(Standard_True); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) 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 l1 = L1.Predivided(E.Location());
const TopLoc_Location l2 = L2.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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::SameParameter"); throw TopoDS_LockedShape("BRep_Builder::SameParameter");
} }
TE->SameParameter(S); TE->SameParameter(S);
TE->Modified(Standard_True); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::SameRange"); throw TopoDS_LockedShape("BRep_Builder::SameRange");
} }
TE->SameRange(S); TE->SameRange(S);
TE->Modified(Standard_True); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::Degenerated"); throw TopoDS_LockedShape("BRep_Builder::Degenerated");
} }
TE->Degenerated(D); TE->Degenerated(D);
if (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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::Range"); throw TopoDS_LockedShape("BRep_Builder::Range");
} }
BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves(); BRep_ListOfCurveRepresentation& lcr = TE->ChangeCurves();
BRep_ListIteratorOfListOfCurveRepresentation itcr(lcr); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::Range"); throw TopoDS_LockedShape("BRep_Builder::Range");
} }
const TopLoc_Location l = L.Predivided(E.Location()); const TopLoc_Location l = L.Predivided(E.Location());
@ -1154,7 +1154,7 @@ void BRep_Builder::Range(const TopoDS_Edge& E,
} }
if (!itcr.More()) if (!itcr.More())
Standard_DomainError::Raise("BRep_Builder::Range, no pcurve"); throw Standard_DomainError("BRep_Builder::Range, no pcurve");
TE->Modified(Standard_True); 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()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &Ein.TShape());
if(TE->Locked()) if(TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::Transfert"); throw TopoDS_LockedShape("BRep_Builder::Transfert");
} }
const Standard_Real tol = TE->Tolerance(); 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()); const Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &V.TShape());
if(TV->Locked()) if(TV->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex"); throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
} }
TV->Pnt(P.Transformed(V.Location().Inverted().Transformation())); TV->Pnt(P.Transformed(V.Location().Inverted().Transformation()));
TV->UpdateTolerance(Tol); TV->UpdateTolerance(Tol);
@ -1243,14 +1243,14 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
{ {
if (Precision::IsPositiveInfinite(Par) || if (Precision::IsPositiveInfinite(Par) ||
Precision::IsNegativeInfinite(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_TVertex)& TV = *((Handle(BRep_TVertex)*) &V.TShape());
const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape()); const Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &E.TShape());
if(TV->Locked() || TE->Locked()) 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()); TopLoc_Location L = E.Location().Predivided(V.Location());
@ -1326,7 +1326,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
{ {
if (Precision::IsPositiveInfinite(Par) || if (Precision::IsPositiveInfinite(Par) ||
Precision::IsNegativeInfinite(Par)) Precision::IsNegativeInfinite(Par))
Standard_DomainError::Raise("BRep_Builder::Infinite parameter"); throw Standard_DomainError("BRep_Builder::Infinite parameter");
// Find the curve representation // Find the curve representation
TopLoc_Location l = L.Predivided(V.Location()); TopLoc_Location l = L.Predivided(V.Location());
@ -1336,7 +1336,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
if(TV->Locked() || TE->Locked()) if(TV->Locked() || TE->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex"); throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
} }
// Search the vertex in the edge // Search the vertex in the edge
@ -1386,7 +1386,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
} }
if (!itcr.More()) if (!itcr.More())
Standard_DomainError::Raise("BRep_Builder:: no pcurve"); throw Standard_DomainError("BRep_Builder:: no pcurve");
TV->UpdateTolerance(Tol); TV->UpdateTolerance(Tol);
TE->Modified(Standard_True); TE->Modified(Standard_True);
@ -1407,7 +1407,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve,
if(TV->Locked()) if(TV->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex"); throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
} }
TopLoc_Location L; TopLoc_Location L;
@ -1432,7 +1432,7 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
if(TV->Locked()) if(TV->Locked())
{ {
TopoDS_LockedShape::Raise("BRep_Builder::UpdateVertex"); throw TopoDS_LockedShape("BRep_Builder::UpdateVertex");
} }
TV->UpdateTolerance(Tol); 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 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 const Handle(Geom_Curve)& BRep_CurveRepresentation::Curve3D()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Geom_Curve)*) NULL);
} }
//======================================================================= //=======================================================================
@ -204,7 +203,7 @@ const Handle(Geom_Curve)& BRep_CurveRepresentation::Curve3D()const
void BRep_CurveRepresentation::Curve3D(const Handle(Geom_Curve)&) 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 const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Geom_Surface)*) NULL);
} }
@ -230,8 +228,7 @@ const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface()const
const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve()const const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Geom2d_Curve)*) NULL);
} }
//======================================================================= //=======================================================================
@ -241,8 +238,7 @@ const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve()const
const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve2()const const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve2()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Geom2d_Curve)*) NULL);
} }
//======================================================================= //=======================================================================
@ -252,7 +248,7 @@ const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve2()const
void BRep_CurveRepresentation::PCurve(const Handle(Geom2d_Curve)&) 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)&) 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 const GeomAbs_Shape& BRep_CurveRepresentation::Continuity()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((GeomAbs_Shape*) NULL);
} }
//======================================================================= //=======================================================================
@ -284,7 +279,7 @@ const GeomAbs_Shape& BRep_CurveRepresentation::Continuity()const
void BRep_CurveRepresentation::Continuity(const GeomAbs_Shape ) 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 const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface2()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Geom_Surface)*) NULL);
} }
@ -307,8 +301,7 @@ const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface2()const
const TopLoc_Location& BRep_CurveRepresentation::Location2()const const TopLoc_Location& BRep_CurveRepresentation::Location2()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((TopLoc_Location*) NULL);
} }
@ -320,8 +313,7 @@ const TopLoc_Location& BRep_CurveRepresentation::Location2()const
const Handle(Poly_Polygon3D)& BRep_CurveRepresentation::Polygon3D()const const Handle(Poly_Polygon3D)& BRep_CurveRepresentation::Polygon3D()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Poly_Polygon3D)*) NULL);
} }
//======================================================================= //=======================================================================
@ -331,7 +323,7 @@ const Handle(Poly_Polygon3D)& BRep_CurveRepresentation::Polygon3D()const
void BRep_CurveRepresentation::Polygon3D(const Handle(Poly_Polygon3D)&) 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 const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Poly_Polygon2D)*) NULL);
} }
@ -354,7 +345,7 @@ const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon()const
void BRep_CurveRepresentation::Polygon(const Handle(Poly_Polygon2D)&) 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 const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation2() const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Poly_PolygonOnTriangulation)*) NULL);
} }
//======================================================================= //=======================================================================
@ -376,7 +366,7 @@ const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTr
void BRep_CurveRepresentation::PolygonOnTriangulation2 void BRep_CurveRepresentation::PolygonOnTriangulation2
(const Handle(Poly_PolygonOnTriangulation)&) (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 void BRep_CurveRepresentation::PolygonOnTriangulation
(const Handle(Poly_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 Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation()
const const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *(Handle(Poly_PolygonOnTriangulation)*)NULL;
} }
//======================================================================= //=======================================================================
//function : Triangulation //function : Triangulation
@ -411,8 +400,7 @@ const
const Handle(Poly_Triangulation)& BRep_CurveRepresentation::Triangulation() const Handle(Poly_Triangulation)& BRep_CurveRepresentation::Triangulation()
const const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *(Handle(Poly_Triangulation)*)NULL;
} }
@ -424,8 +412,7 @@ const
const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon2()const const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon2()const
{ {
Standard_DomainError::Raise("BRep_CurveRepresentation"); throw Standard_DomainError("BRep_CurveRepresentation");
return *((Handle(Poly_Polygon2D)*) NULL);
} }
@ -436,6 +423,6 @@ const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon2()const
void BRep_CurveRepresentation::Polygon2(const Handle(Poly_Polygon2D)&) 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_Real BRep_PointRepresentation::Parameter2()const
{ {
Standard_DomainError::Raise("BRep_PointRepresentation"); throw Standard_DomainError("BRep_PointRepresentation");
return 0;
} }
@ -129,7 +128,7 @@ Standard_Real BRep_PointRepresentation::Parameter2()const
void BRep_PointRepresentation::Parameter2(const Standard_Real ) 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 const Handle(Geom_Curve)& BRep_PointRepresentation::Curve()const
{ {
Standard_DomainError::Raise("BRep_PointRepresentation"); throw Standard_DomainError("BRep_PointRepresentation");
return *((Handle(Geom_Curve)*) NULL);
} }
@ -152,7 +150,7 @@ const Handle(Geom_Curve)& BRep_PointRepresentation::Curve()const
void BRep_PointRepresentation::Curve(const Handle(Geom_Curve)& ) 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 const Handle(Geom2d_Curve)& BRep_PointRepresentation::PCurve()const
{ {
Standard_DomainError::Raise("BRep_PointRepresentation"); throw Standard_DomainError("BRep_PointRepresentation");
return *((Handle(Geom2d_Curve)*) NULL);
} }
@ -175,7 +172,7 @@ const Handle(Geom2d_Curve)& BRep_PointRepresentation::PCurve()const
void BRep_PointRepresentation::PCurve(const Handle(Geom2d_Curve)& ) 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 const Handle(Geom_Surface)& BRep_PointRepresentation::Surface()const
{ {
Standard_DomainError::Raise("BRep_PointRepresentation"); throw Standard_DomainError("BRep_PointRepresentation");
return *((Handle(Geom_Surface)*) NULL);
} }
@ -198,7 +194,7 @@ const Handle(Geom_Surface)& BRep_PointRepresentation::Surface()const
void BRep_PointRepresentation::Surface(const Handle(Geom_Surface)& ) 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) 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(); const gp_Pnt& P = TV->Pnt();
@ -1213,7 +1213,7 @@ Standard_Real BRep_Tool::Tolerance(const TopoDS_Vertex& V)
if (aTVert == 0) 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(); 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"); throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
return 0;
} }
//======================================================================= //=======================================================================
@ -1449,8 +1448,7 @@ Standard_Real BRep_Tool::Parameter(const TopoDS_Vertex& V,
//---------------------------------------------------------- //----------------------------------------------------------
Standard_NoSuchObject::Raise("BRep_Tool:: no parameter on edge"); throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
return 0;
} }
//======================================================================= //=======================================================================
@ -1491,8 +1489,7 @@ gp_Pnt2d BRep_Tool::Parameters(const TopoDS_Vertex& V,
else return Pl;//Ambiguity (natural) for degenerated edges. else return Pl;//Ambiguity (natural) for degenerated edges.
} }
} }
Standard_NoSuchObject::Raise("BRep_Tool:: no parameters on surface"); throw Standard_NoSuchObject("BRep_Tool:: no parameters on surface");
return gp_Pnt2d(0,0);
} }
//======================================================================= //=======================================================================
//function : IsClosed //function : IsClosed

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