spelling fixes (#18688)

* Fixes spelling of "Allow to" to "Allow one to"

and those variants:
Allows to -> Allows one to
allow to -> allow one to
allows to -> allows one to

* Fix "Let's -> Lets"

(and lower case variant.)

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

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

* Update src/3rdParty/salomesmesh/inc/MED_Wrapper.hxx

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Base/PyObjectBase.cpp
Update src/App/ExtensionContainer.h
Update src/App/PropertyContainer.h

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Use gerund in user-facing texts.

* Use gerund for two more user-facing strings.

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

---------

Co-authored-by: Tobias Frost <tobi@debian.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
Tobias Frost
2025-01-13 18:22:20 +01:00
committed by GitHub
parent f30139367a
commit 7a5a3d1ffc
104 changed files with 149 additions and 148 deletions

View File

@@ -74,7 +74,7 @@ PyMOD_INIT_FUNC(Mesh)
Mesh::Extension3MFFactory::addProducer(new Mesh::GuiExtension3MFProducer);
// This registration is sufficient to allow to measure free distances with a mesh
// This registration is sufficient to allow one to measure free distances with a mesh
App::MeasureManager::addMeasureHandler("Mesh", [](App::DocumentObject*, const char*) {
return App::MeasureElementType::INVALID;
});

View File

@@ -128,7 +128,7 @@ void MeshBuilder::AddFacet(const Base::Vector3f& pt1,
void MeshBuilder::AddFacet(Base::Vector3f* facetPoints, unsigned char flag, unsigned long prop)
{
this->_seq->next(true); // allow to cancel
this->_seq->next(true); // allow one to cancel
// adjust circulation direction
if ((((facetPoints[1] - facetPoints[0]) % (facetPoints[2] - facetPoints[0])) * facetPoints[3])
@@ -171,7 +171,7 @@ void MeshBuilder::SetNeighbourhood()
FacetIndex facetIdx = 0;
for (auto& mf : _meshKernel._aclFacetArray) {
this->_seq->next(true); // allow to cancel
this->_seq->next(true); // allow one to cancel
for (int i = 0; i < 3; i++) {
Edge edge(mf._aulPoints[i], mf._aulPoints[(i + 1) % 3], facetIdx);
std::set<Edge>::iterator e = edges.find(edge);

View File

@@ -796,7 +796,7 @@ public:
};
/**
* MeshPointModifier is a helper class that allows to modify the
* MeshPointModifier is a helper class that allows one to modify the
* point array of a mesh kernel but with limited access.
*/
class MeshExport MeshPointModifier
@@ -823,7 +823,7 @@ private:
};
/**
* MeshFacetModifier is a helper class that allows to modify the
* MeshFacetModifier is a helper class that allows one to modify the
* facet array of a mesh kernel but with limited access.
*/
class MeshExport MeshFacetModifier

View File

@@ -45,7 +45,7 @@ class MeshGrid;
static constexpr float MESHGRID_BBOX_EXTENSION = 10.0F;
/**
* The MeshGrid allows to divide a global mesh object into smaller regions
* The MeshGrid allows one to divide a global mesh object into smaller regions
* of elements (e.g. facets, points or edges) depending on the resolution
* of the grid. All grid elements in the grid structure have the same size.
*

View File

@@ -149,7 +149,7 @@ bool WriterOBJ::Save(std::ostream& out)
else {
out << "v " << pt.x << " " << pt.y << " " << pt.z << '\n';
}
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
// Export normals
MeshFacetIterator clIter(_kernel), clEnd(_kernel);
@@ -163,7 +163,7 @@ bool WriterOBJ::Save(std::ostream& out)
out << "vn " << pclFacet->GetNormal().x << " " << pclFacet->GetNormal().y << " "
<< pclFacet->GetNormal().z << '\n';
++clIter;
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
if (_groups.empty()) {
@@ -190,7 +190,7 @@ bool WriterOBJ::Save(std::ostream& out)
out << "f " << it->_aulPoints[0] + 1 << "//" << faceIdx << " "
<< it->_aulPoints[1] + 1 << "//" << faceIdx << " " << it->_aulPoints[2] + 1
<< "//" << faceIdx << '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
faceIdx++;
}
}
@@ -201,7 +201,7 @@ bool WriterOBJ::Save(std::ostream& out)
out << "f " << it._aulPoints[0] + 1 << "//" << faceIdx << " "
<< it._aulPoints[1] + 1 << "//" << faceIdx << " " << it._aulPoints[2] + 1
<< "//" << faceIdx << '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
faceIdx++;
}
}
@@ -233,7 +233,7 @@ bool WriterOBJ::Save(std::ostream& out)
out << "f " << f._aulPoints[0] + 1 << "//" << it + 1 << " "
<< f._aulPoints[1] + 1 << "//" << it + 1 << " " << f._aulPoints[2] + 1
<< "//" << it + 1 << '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
}
}
@@ -245,7 +245,7 @@ bool WriterOBJ::Save(std::ostream& out)
out << "f " << f._aulPoints[0] + 1 << "//" << it + 1 << " "
<< f._aulPoints[1] + 1 << "//" << it + 1 << " " << f._aulPoints[2] + 1
<< "//" << it + 1 << '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
}
}

View File

@@ -41,7 +41,7 @@ class MeshIndexEdge;
class MeshHelpEdge;
/**
* The MeshFacetIterator allows to iterate over the facets that
* The MeshFacetIterator allows one to iterate over the facets that
* hold the topology of the mesh and provides access to their
* geometric information.
* \note This class is not thread-safe.
@@ -222,7 +222,7 @@ private:
};
/**
* The MeshPointIterator allows to iterate over the vertices of the mesh and provides access to
* The MeshPointIterator allows one to iterate over the vertices of the mesh and provides access to
* their geometric information. \note This class is not thread-safe.
*/
class MeshExport MeshPointIterator

View File

@@ -1668,7 +1668,7 @@ bool MeshOutput::SaveBinarySTL(std::ostream& output) const
output.write((const char*)&usAtt, sizeof(usAtt));
++clIter;
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
return true;
@@ -1739,14 +1739,14 @@ bool MeshOutput::SaveSMF(std::ostream& out) const
}
out << "v " << pt.x << " " << pt.y << " " << pt.z << '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
// facet indices
for (const auto& it : rFacets) {
out << "f " << it._aulPoints[0] + 1 << " " << it._aulPoints[1] + 1 << " "
<< it._aulPoints[2] + 1 << '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
return true;
@@ -1931,14 +1931,14 @@ bool MeshOutput::SaveOFF(std::ostream& out) const
else {
out << pt.x << " " << pt.y << " " << pt.z << '\n';
}
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
// facet indices (no texture and normal indices)
for (const auto& it : rFacets) {
out << "3 " << it._aulPoints[0] << " " << it._aulPoints[1] << " " << it._aulPoints[2]
<< '\n';
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
return true;

View File

@@ -413,8 +413,8 @@ public:
/** Assignment operator. */
MeshKernel& operator=(const MeshKernel& rclMesh);
MeshKernel& operator=(MeshKernel&& rclMesh);
/** This allows to assign the mesh structure directly. The caller must make sure that the point
* indices are correctly set but the neighbourhood gets checked and corrected if \a
/** This allows one to assign the mesh structure directly. The caller must make sure that the
* point indices are correctly set but the neighbourhood gets checked and corrected if \a
* checkNeighbourHood is true.
*/
void Assign(const MeshPointArray& rPoints,

View File

@@ -609,7 +609,7 @@ bool MeshTopoAlgorithm::IsSwapEdgeLegal(FacetIndex ulFacetPos, FacetIndex ulNeig
Base::Vector3f cP3 = _rclMesh._aclPointArray[rclF._aulPoints[(uFSide + 2) % 3]];
Base::Vector3f cP4 = _rclMesh._aclPointArray[rclN._aulPoints[(uNSide + 2) % 3]];
// do not allow to create degenerated triangles
// do not allow one to create degenerated triangles
MeshGeomFacet cT3(cP4, cP3, cP1);
if (cT3.IsDegenerated(MeshDefinitions::_fMinPointDistanceP2)) {
return false;

View File

@@ -470,7 +470,7 @@ bool ExporterAMF::addMesh(const char* name, const MeshObject& mesh)
}
}
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
*outputStreamPtr << "\t\t\t</vertices>\n"
@@ -484,7 +484,7 @@ bool ExporterAMF::addMesh(const char* name, const MeshObject& mesh)
*outputStreamPtr << "\t\t\t\t\t<v" << i << '>' << *(triItr++) << "</v" << i << ">\n";
}
*outputStreamPtr << "\t\t\t\t</triangle>\n";
seq.next(true); // allow to cancel
seq.next(true); // allow one to cancel
}
*outputStreamPtr << "\t\t\t</volume>\n"

View File

@@ -861,7 +861,7 @@ void PropertyMeshKernel::setPyObject(PyObject* value)
{
if (PyObject_TypeCheck(value, &(MeshPy::Type))) {
MeshPy* mesh = static_cast<MeshPy*>(value);
// Do not allow to reassign the same instance
// Do not allow one to reassign the same instance
if (&(*this->_meshObject) != mesh->getMeshObjectPtr()) {
// Note: Copy the content, do NOT reference the same mesh object
setValue(*(mesh->getMeshObjectPtr()));

View File

@@ -54,9 +54,9 @@ class PropertyCurvatureList;
namespace MeshGui
{
/** The ViewProviderMeshCurvature class is associated to the mesh curvature feature. It allows to
* display the most known types of curvatures, such as Gaussian curvature, mean curvature, minimum
* and maximum curvature. Moreover a color bar is also added to the scene.
/** The ViewProviderMeshCurvature class is associated to the mesh curvature feature. It allows one
* to display the most known types of curvatures, such as Gaussian curvature, mean curvature,
* minimum and maximum curvature. Moreover a color bar is also added to the scene.
*
* @author Werner Mayer
*/