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

0031939: Coding - correction of spelling errors in comments [part 10]

Fix various typos via codespell.
This commit is contained in:
luz paz
2021-04-19 11:42:46 +03:00
committed by bugmaster
parent b69e576af0
commit 316ea29318
339 changed files with 1743 additions and 1972 deletions

View File

@@ -79,7 +79,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(Geo
if(C3D->IsKind(STANDARD_TYPE(Geom_Conic)))
MaxDeg = Min(MaxDeg,6);
Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(C3D,First,Last); //protection agains parabols ets
Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(C3D,First,Last); //protection against parabols ets
try {
OCC_CATCH_SIGNALS
GeomConvert_ApproxCurve approx (tcurve, Tol3d, Continuity, MaxSegments, MaxDeg);
@@ -115,7 +115,7 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(G
{
Handle(Geom2d_BSplineCurve) aBSpline2d;
if(C2D->IsKind(STANDARD_TYPE(Geom2d_Conic))) {
Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(C2D,First,Last); //protection agains parabols ets
Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(C2D,First,Last); //protection against parabols ets
Geom2dConvert_ApproxCurve approx (tcurve, Tol2d, Continuity, MaxSegments, MaxDegree);
if ( approx.HasResult() )
aBSpline2d = approx.Curve();
@@ -241,7 +241,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
#ifdef OCCT_DEBUG
Standard_Integer nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
std::cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << std::endl;
std::cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <<std::endl;
std::cout << " Surface is approximated with continuity " << (GeomAbs_Shape)cnt <<std::endl;
#endif
S = anApprox.Surface();
Handle(Geom_BSplineSurface) Bsc = Handle(Geom_BSplineSurface)::DownCast(S);

View File

@@ -20,7 +20,7 @@
//:p9 abv 11.03.99 PRO7226 #489490: make IsAnIsoparametric to find nearest case
//:q1 abv 15.03.99 (pdn) PRO7226 #525030: limit NextValueOfUV() by tolerance
//:q5 abv 19.03.99 code improvement
//:q9 abv 23.03.99 PRO7226.stp #489490: cashe for projecting end points
//:q9 abv 23.03.99 PRO7226.stp #489490: cache for projecting end points
//#78 rln 12.03.99 S4135: checking spatial closure with myPreci
// pdn 12.03.99 S4135: creating pcurve with minimal length in the case of densed points
// abv 29.03.99 IsAnIsoparametric with Precision::Confusion
@@ -541,7 +541,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
Standard_Integer theIdx, // Index of objective coord: 1 ~ X, 2 ~ Y
Standard_Real thePeriod, // Period on objective coord
Standard_Integer theSavedPoint, // Point number to choose period
Standard_Real theSavedParam) // Param from cashe to choose period
Standard_Real theSavedParam) // Param from cache to choose period
{
Standard_Real aSavedParam;
Standard_Integer aSavedPoint;
@@ -846,7 +846,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
c2d = getLine(points, params, pnt2d, myPreci, isRecompute, isFromCasheLine);
if(!c2d.IsNull())
{
// fill cashe
// fill cache
Standard_Boolean ChangeCycle = Standard_False;
if(myNbCashe>0 && myCashe3d[0].Distance(points(1)) > myCashe3d[0].Distance(points(nbrPnt)) &&
myCashe3d[0].Distance(points(nbrPnt))<Precision::Confusion())
@@ -1041,7 +1041,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
}
else
{
//:q9 abv 23 Mar 99: use cashe as 1st approach
//:q9 abv 23 Mar 99: use cache as 1st approach
Standard_Integer j; // svv #1
for (j = 0; j < myNbCashe; ++j)
{
@@ -1162,7 +1162,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
while (firstX < uf) { firstX += Up; pnt2d (1).SetX(firstX); }
while (firstX > ul) { firstX -= Up; pnt2d (1).SetX(firstX); }
}
// shift first point, according to cashe
// shift first point, according to cache
if (mySurf->Surface()->IsUPeriodic() && isFromCashe) {
Standard_Real aMinParam = uf, aMaxParam = ul;
while (aMinParam > aSavedPoint.X()) {
@@ -1230,7 +1230,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
while (firstY < vf) { firstY += Vp; pnt2d (1).SetY(firstY); }
while (firstY > vl) { firstY -= Vp; pnt2d (1).SetY(firstY); }
}
// shift first point, according to cashe
// shift first point, according to cache
if (mySurf->Surface()->IsVPeriodic() && isFromCashe) {
Standard_Real aMinParam = vf, aMaxParam = vl;
while (aMinParam > aSavedPoint.Y()) {
@@ -1470,7 +1470,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
}
}
//:q9: fill cashe
//:q9: fill cache
myNbCashe = 2;
if(ChangeCycle) { // msv 10.08.04: avoid using of uninitialised field
//if(myCashe3d[0].Distance(points(1))>Precision::Confusion() &&

View File

@@ -101,7 +101,7 @@ public:
//! Default value is True
Standard_EXPORT Standard_Integer& AdjustOverDegenMode();
//! Returns the status of last Peform
//! Returns the status of last Perform
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status theStatus) const;
//! Computes the projection of 3d curve onto a surface using the