1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0032953: Coding - add missing references where applicable

This commit is contained in:
aml
2022-04-29 15:21:24 +03:00
committed by smoskvin
parent 267738fc40
commit 034d1403b1
39 changed files with 134 additions and 115 deletions

View File

@@ -56,7 +56,7 @@ class ShapeAnalysis_BoxBndTreeSelector
myStatus=ShapeExtend::EncodeStatus (ShapeExtend_OK);
}
void DefinePnt (gp_Pnt theFPnt, gp_Pnt theLPnt)
void DefinePnt (const gp_Pnt& theFPnt, const gp_Pnt& theLPnt)
{ myFPnt = theFPnt;
myLPnt = theLPnt;
myStatus =ShapeExtend::EncodeStatus (ShapeExtend_OK);

View File

@@ -795,7 +795,7 @@ Standard_Integer ShapeAnalysis_Curve::SelectForwardSeam(const Handle(Geom2d_Curv
// IsPlanar
//=============================================================================
static gp_XYZ GetAnyNormal ( gp_XYZ orig )
static gp_XYZ GetAnyNormal (const gp_XYZ& orig)
{
gp_XYZ Norm;
if ( Abs ( orig.Z() ) < Precision::Confusion() )

View File

@@ -1572,12 +1572,12 @@ Standard_Boolean ShapeAnalysis_Wire::CheckLacking (const Standard_Integer num,
//purpose :
//=======================================================================
static Standard_Real ProjectInside(const Adaptor3d_CurveOnSurface AD,
const gp_Pnt pnt,
const Standard_Real preci,
gp_Pnt& proj,
Standard_Real& param,
const Standard_Boolean adjustToEnds = Standard_True)
static Standard_Real ProjectInside(const Adaptor3d_CurveOnSurface& AD,
const gp_Pnt& pnt,
const Standard_Real preci,
gp_Pnt& proj,
Standard_Real& param,
const Standard_Boolean adjustToEnds = Standard_True)
{
ShapeAnalysis_Curve sac;
Standard_Real dist = sac.Project(AD,pnt,preci,proj,param,adjustToEnds);