From a3595cb8711af166e3de55e79f0a0d1bfd756bca Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sat, 12 Apr 2025 10:02:50 -0400 Subject: [PATCH] Documentation - Fix various typos found in codebase #495 Found via codespell --- adm/cmake/occt_macros.cmake | 2 +- .../TKXSBase/IFSelect/IFSelect_Transformer.hxx | 2 +- src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx | 4 ++-- .../TKGeomAlgo/GccAna/GccAna_Circ2d3Tan.cxx | 8 ++++---- .../TKGeomAlgo/GeomFill/GeomFill_Sweep.hxx | 8 ++++---- .../TKV3d/PrsDim/PrsDim_EqualDistanceRelation.cxx | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/adm/cmake/occt_macros.cmake b/adm/cmake/occt_macros.cmake index b41fd3743f..d58ddf755f 100644 --- a/adm/cmake/occt_macros.cmake +++ b/adm/cmake/occt_macros.cmake @@ -268,7 +268,7 @@ function (EXTRACT_PACKAGE_FILES RELATIVE_PATH OCCT_PACKAGE RESULT_FILES RESULT_I set (OCCT_PACKAGE_FILES "${OCCT_${OCCT_PACKAGE}_FILES}") # collect and search for the files in the package directory or patched one - # FILE contains inly filename that must to be inside package or patched directory + # FILE only contains filename that must to be inside package or patched directory set (FILE_PATH_LIST) foreach (OCCT_FILE ${OCCT_PACKAGE_FILES}) diff --git a/src/DataExchange/TKXSBase/IFSelect/IFSelect_Transformer.hxx b/src/DataExchange/TKXSBase/IFSelect/IFSelect_Transformer.hxx index 65823ae036..9945ce6547 100644 --- a/src/DataExchange/TKXSBase/IFSelect/IFSelect_Transformer.hxx +++ b/src/DataExchange/TKXSBase/IFSelect/IFSelect_Transformer.hxx @@ -58,7 +58,7 @@ public: //! has been made on the spot, it is assumed to cause no change //! to the graph of dependances //! - if it equates the starting Model, it has been transformed on - //! the spot (possibiliy some entities were replaced inside it) + //! the spot (possibly some entities were replaced inside it) //! - if it is new, it corresponds to a new data set which replaces //! the starting one //! diff --git a/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx b/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx index 58829216b1..8ca1292764 100644 --- a/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx +++ b/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx @@ -220,7 +220,7 @@ static Standard_Integer igesbrep(Draw_Interpretor& theDI, << std::flush; modepri = -1; - // amv 26.09.2003 : this is used to avoid error of enter's simbol + // amv 26.09.2003 : this is used to avoid error of enter's symbol char str[80]; std::cin >> str; modepri = Draw::Atoi(str); @@ -427,7 +427,7 @@ static Standard_Integer igesbrep(Draw_Interpretor& theDI, if (list.IsNull()) { theDI - << "No list defined. Give a selection name or * for all visible transferrable roots\n"; + << "No list defined. Give a selection name or * for all visible transferable roots\n"; continue; } } diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GccAna/GccAna_Circ2d3Tan.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GccAna/GccAna_Circ2d3Tan.cxx index 87edcc1116..42ba3f78f5 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GccAna/GccAna_Circ2d3Tan.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GccAna/GccAna_Circ2d3Tan.cxx @@ -411,7 +411,7 @@ GccAna_Circ2d3Tan::GccAna_Circ2d3Tan(const GccEnt_QualifiedCirc& Qualified1, for (k = 1; k <= yRoots1.NbSolutions(); k++) { y = yRoots1.Value(k); - // Check if this value is already catched + // Check if this value is already caught IsSame = Standard_False; for (l = 1; l < k; l++) if (Abs(y - yRoots1.Value(l)) <= 10 * Tolerance) @@ -436,7 +436,7 @@ GccAna_Circ2d3Tan::GccAna_Circ2d3Tan(const GccEnt_QualifiedCirc& Qualified1, for (k = 1; k <= yRoots1.NbSolutions(); k++) { y = yRoots1.Value(k); - // Check if this value is already catched + // Check if this value is already caught IsSame = Standard_False; FirstIndex = (i == 1) ? 1 : FirstSol(i); for (l = FirstIndex; l < CurSol; l++) @@ -527,7 +527,7 @@ GccAna_Circ2d3Tan::GccAna_Circ2d3Tan(const GccEnt_QualifiedCirc& Qualified1, p = -(b2 * y + d2) / a2; q = (c2 * (y * y) + 2 * e2 * y + f2) / a2; - // Check if this value is already catched + // Check if this value is already caught IsSame = Standard_False; FirstIndex = (i == 1) ? 1 : FirstSol(i); for (l = FirstIndex; l < CurSol; l++) @@ -574,7 +574,7 @@ GccAna_Circ2d3Tan::GccAna_Circ2d3Tan(const GccEnt_QualifiedCirc& Qualified1, p = -(b2 * y + d2) / a2; q = (c2 * (y * y) + 2 * e2 * y + f2) / a2; - // Check if this value is already catched + // Check if this value is already caught IsSame = Standard_False; for (l = 1; l < k; l++) if (Abs(y - yRoots.Value(l)) <= 10 * Tolerance) diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Sweep.hxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Sweep.hxx index 74c2440be8..8f0d3acdda 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Sweep.hxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Sweep.hxx @@ -90,7 +90,7 @@ public: //! parametrisation sens of path (or of section if ExchangeUV) Standard_EXPORT Standard_Boolean VReversed() const; - //! Build the Sweeep Surface + //! Build the Sweeep Surface //! ApproxStyle defines Approximation Strategy //! - GeomFill_Section : The composed Function : Location X Section //! is directly approximated. @@ -111,13 +111,13 @@ public: const Standard_Integer Degmax = 10, const Standard_Integer Segmax = 30); - //! Tells if the Surface is Buildt. + //! Tells if the Surface is Built. Standard_EXPORT Standard_Boolean IsDone() const; - //! Gets the Approximation error. + //! Gets the Approximation error. Standard_EXPORT Standard_Real ErrorOnSurface() const; - //! Gets the Approximation error. + //! Gets the Approximation error. Standard_EXPORT void ErrorOnRestriction(const Standard_Boolean IsFirst, Standard_Real& UError, Standard_Real& VError) const; diff --git a/src/Visualization/TKV3d/PrsDim/PrsDim_EqualDistanceRelation.cxx b/src/Visualization/TKV3d/PrsDim/PrsDim_EqualDistanceRelation.cxx index 8a03debf4d..92be5ee303 100644 --- a/src/Visualization/TKV3d/PrsDim/PrsDim_EqualDistanceRelation.cxx +++ b/src/Visualization/TKV3d/PrsDim/PrsDim_EqualDistanceRelation.cxx @@ -236,7 +236,7 @@ void PrsDim_EqualDistanceRelation::ComputeSelection(const Handle(SelectMgr_Selec BRepAdaptor_Curve aCurve(TopoDS::Edge(myFShape)); if (aCurve.GetType() == GeomAbs_Line) { - // add sensetive element - line + // add sensitive element - line seg = new Select3D_SensitiveSegment(own, myAttachPoint1, myPoint1); aSelection->Add(seg); }