Fix various typos throughout the codebase (#13029)

* Fix various typos throughout the codebase

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
luzpaz
2024-03-18 17:54:30 -04:00
committed by GitHub
parent f94c2051c0
commit 5839134e95
17 changed files with 24 additions and 22 deletions

View File

@@ -883,7 +883,7 @@ class ViewProviderBuildingPart:
return True
def setEdit(self, vobj, mode):
# mode == 1 if Transform is selected in the Tree view contex menu.
# mode == 1 if Transform is selected in the Tree view context menu.
# mode == 2 has been added for consistency.
if mode == 1 or mode == 2:
return None

View File

@@ -1270,7 +1270,8 @@ class _Wall(ArchComponent.Component):
# If the object is a single edge, use that as the
# basewires.
# TODO 2023.11.26: Need to check if it is not Sketch afterall first or use algoritm for Sketch altogher?
# TODO 2023.11.26: Need to check if it isn't Sketch after all first
# or use algorithm for Sketch altogether?
elif len(obj.Base.Shape.Edges) == 1:
self.basewires = [Part.Wire(obj.Base.Shape.Edges)]

View File

@@ -1190,7 +1190,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getDownstreamParts(App::Docume
}
AssemblyObject::setJointActivated(joint, state);
/*if (limit > 1000) { // Inifinite loop protection
/*if (limit > 1000) { // Infinite loop protection
return {};
}
limit++;
@@ -1243,7 +1243,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getDownstreamParts(App::Docume
std::vector<App::DocumentObject*> AssemblyObject::getUpstreamParts(App::DocumentObject* part,
int limit)
{
if (limit > 1000) { // Inifinite loop protection
if (limit > 1000) { // Infinite loop protection
return {};
}
limit++;

View File

@@ -68,7 +68,7 @@
"behave like wire cutting. Without exploding, 'Difference' in ClipperLib\n"\
"behave like face cutting."))\
((enum,open_mode,OpenMode,0,\
"Specify how to handle open wires. 'None' means combin without openeration.\n"\
"Specify how to handle open wires. 'None' means combine without openeration.\n"\
"'Edges' means separate to edges before Union. ClipperLib seems to have an.\n"\
"urge to close open wires.",(None)(Union)(Edges)))\
AREA_PARAMS_DEFLECTION \

View File

@@ -105,7 +105,7 @@ class ConstraintTie(base_fempythonobject.BaseFemPythonObject):
def onDocumentRestored(self, obj):
# update old proyect with new properties
# update old project with new properties
for prop in self._get_properties():
try:
obj.getPropertyByName(prop.name)

View File

@@ -565,7 +565,7 @@ QVector<Data::MappedElement> Feature::getRelatedElements(App::DocumentObject* ob
for (auto rit = src.rbegin(); idx >= 0 && rit != src.rend(); ++rit, --idx) {
// TODO: shall we ignore source tag when comparing? It could cause
// matching unrelated element, but it does help dealing with feature
// reording in PartDesign::Body.
// recording in PartDesign::Body.
if (rit->second != source[idx].second) {
++idx;
break;

View File

@@ -4185,7 +4185,7 @@ TopoShape& TopoShape::makeElementPrism(const TopoShape& base, const gp_Vec& vec,
// // DO NOT include uptoface for element mapping. Because OCCT
// // BRepFeat_MakePrism will report all top extruded face being
// // modified by the uptoface. If there are more than one face in
// // the profile, this will cause uncessary duplicated element
// // the profile, this will cause unnecessary duplicated element
// // mapped name. And will also disrupte element history tracing
// // back to the profile sketch.
// //

View File

@@ -433,7 +433,7 @@ public:
DeriVector2 CalculateNormal(const double* param,
const double* derivparam = nullptr) const override;
DeriVector2 Value(double u, double du, const double* derivparam = nullptr) const override;
// Returns value in homogenous coordinates (x*w, y*w, w) at given parameter u
// Returns value in homogeneous coordinates (x*w, y*w, w) at given parameter u
void valueHomogenous(const double u,
double* xw,
double* yw,

View File

@@ -1961,7 +1961,7 @@ void ViewProviderSketch::moveAngleConstraint(Sketcher::Constraint* constr, int c
if (reverse) {
obj->reverseAngleConstraintToSupplementary(constr, constNum);
ap3 = intersection + dir1 - dir2; //- dir2 instead fo std::swap(dir1, dir2) and dir1 = -dir1
ap3 = intersection + dir1 - dir2; //- dir2 instead of std::swap(dir1, dir2) and dir1 = -dir1
sign1 = isLeftOfLine(p11, p12, ap3);
sign2 = isLeftOfLine(p21, p22, ap3);
}