mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0032678: Coding Rules, ApproxInt_SvSurfaces - eliminate GCC -fsanitize=undefined error
ApproxInt_SvSurfaces::myUseSolver is now initialized by default constructor.
This commit is contained in:
parent
68a8b15260
commit
9a52982920
@ -38,16 +38,14 @@ class IntSurf_PntOn2S;
|
|||||||
//! the solver used in intersection algorithm and required values are calculated.
|
//! the solver used in intersection algorithm and required values are calculated.
|
||||||
//! if myUseSolver = false, u1, v1, u2, v2 are considered as "exact" intersection points on two surfaces
|
//! if myUseSolver = false, u1, v1, u2, v2 are considered as "exact" intersection points on two surfaces
|
||||||
//! and required values are calculated directly using u1, v1, u2, v2
|
//! and required values are calculated directly using u1, v1, u2, v2
|
||||||
//!
|
class ApproxInt_SvSurfaces
|
||||||
|
|
||||||
|
|
||||||
class ApproxInt_SvSurfaces
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DEFINE_STANDARD_ALLOC
|
DEFINE_STANDARD_ALLOC
|
||||||
|
|
||||||
|
ApproxInt_SvSurfaces() : myUseSolver (false) {}
|
||||||
|
|
||||||
//! returns True if Tg,Tguv1 Tguv2 can be computed.
|
//! returns True if Tg,Tguv1 Tguv2 can be computed.
|
||||||
Standard_EXPORT virtual Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1,
|
Standard_EXPORT virtual Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1,
|
||||||
Standard_Real& u2, Standard_Real& v2,
|
Standard_Real& u2, Standard_Real& v2,
|
||||||
@ -82,35 +80,20 @@ public:
|
|||||||
gp_Vec2d& Tg) = 0;
|
gp_Vec2d& Tg) = 0;
|
||||||
Standard_EXPORT virtual ~ApproxInt_SvSurfaces();
|
Standard_EXPORT virtual ~ApproxInt_SvSurfaces();
|
||||||
|
|
||||||
Standard_EXPORT virtual void SetUseSolver(const Standard_Boolean theUseSol)
|
void SetUseSolver (const Standard_Boolean theUseSol)
|
||||||
{
|
{
|
||||||
myUseSolver = theUseSol;
|
myUseSolver = theUseSol;
|
||||||
}
|
}
|
||||||
|
|
||||||
Standard_EXPORT virtual Standard_Boolean GetUseSolver() const
|
virtual Standard_Boolean GetUseSolver() const
|
||||||
{
|
{
|
||||||
return myUseSolver;
|
return myUseSolver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Standard_Boolean myUseSolver;
|
Standard_Boolean myUseSolver;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _ApproxInt_SvSurfaces_HeaderFile
|
#endif // _ApproxInt_SvSurfaces_HeaderFile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user