]> OCCT Git - occt.git/commitdiff
Documentation - Fix various typos found in codebase #495
authorluzpaz <luzpaz@users.noreply.github.com>
Sat, 12 Apr 2025 14:02:50 +0000 (10:02 -0400)
committerGitHub <noreply@github.com>
Sat, 12 Apr 2025 14:02:50 +0000 (15:02 +0100)
Found via codespell

adm/cmake/occt_macros.cmake
src/DataExchange/TKXSBase/IFSelect/IFSelect_Transformer.hxx
src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx
src/ModelingAlgorithms/TKGeomAlgo/GccAna/GccAna_Circ2d3Tan.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Sweep.hxx
src/Visualization/TKV3d/PrsDim/PrsDim_EqualDistanceRelation.cxx

index b41fd3743fc2e66415fdfb9b03a62b07ae9b2a2f..d58ddf755ffdff48a53432275c6a84cc0f6a5b99 100644 (file)
@@ -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})
index 65823ae0368ff2a79019105fd7e352815e7988a4..9945ce6547e42c273dca5ceb0f51368e27882d23 100644 (file)
@@ -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
   //!
index 58829216b1ac28f6c2beebc4eede8a026e46e755..8ca129276472fbbbb56f67986a527a2ae0e5da16 100644 (file)
@@ -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;
         }
       }
index 87edcc1116ba64812a37f1e10e19d491c3baaa07..42ba3f78f53c22e7e65591de03a8630431bbc725 100644 (file)
@@ -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)
index 74c2440be87ed6e5e33697936297d78e58f99810..8f0d3acdda3201f47e882afffd9aa8f5fc193295 100644 (file)
@@ -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;
index 8a03debf4dcc2026808f1efa3d37e36f69d414ea..92be5ee303638441a83da965774c09be23d8b8f5 100644 (file)
@@ -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);
     }