mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030582: Coding - avoid defining references to properties of NULL objects
Approx_SweepApproximation::Perform() now creates empty arrays. GeomAdaptor_SurfaceOfRevolution::UTrim() - fixed No_Exception misuse. StdPrs_ShadedShape - fixed defining an invalid reference to Poly_Triangulation::UVNodes(). BSplCLib::MovePoint() and BSplCLib::MovePointAndTangent() now take optional weights parameter as pointer consistent to other methods like BSplCLib::BuildEval().
This commit is contained in:
@@ -268,21 +268,10 @@ void GeomAdaptor_SurfaceOfRevolution::VIntervals(TColStd_Array1OfReal& T,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Adaptor3d_HSurface) GeomAdaptor_SurfaceOfRevolution::UTrim
|
||||
(const Standard_Real
|
||||
#ifndef No_Exception
|
||||
First
|
||||
#endif
|
||||
,const Standard_Real
|
||||
#ifndef No_Exception
|
||||
Last
|
||||
#endif
|
||||
,const Standard_Real
|
||||
) const
|
||||
Handle(Adaptor3d_HSurface) GeomAdaptor_SurfaceOfRevolution::UTrim (const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
|
||||
{
|
||||
#ifndef No_Exception
|
||||
Standard_Real Eps = Precision::PConfusion();
|
||||
#endif
|
||||
const Standard_Real Eps = Precision::PConfusion();
|
||||
(void )Eps; (void )First; (void )Last; (void )Tol;
|
||||
Standard_OutOfRange_Raise_if
|
||||
( Abs(First) > Eps || Abs(Last - 2.*M_PI) > Eps,
|
||||
"GeomAdaptor_SurfaceOfRevolution : UTrim : Parameters out of range");
|
||||
|
Reference in New Issue
Block a user