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

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-09-12 13:03:02 +00:00
committed by WandererFan
parent a207d11fa4
commit e92ed45df9
435 changed files with 2669 additions and 2645 deletions

View File

@@ -36,7 +36,7 @@ public:
Module()
: Py::ExtensionModule<Module>("Inspection")
{
initialize("This module is the Inspection module.");// register with Python
initialize("This module is the Inspection module."); // register with Python
}
private:
@@ -47,7 +47,7 @@ PyObject* initModule()
return Base::Interpreter().addModule(new Module);
}
}// namespace Inspection
} // namespace Inspection
/* Python entry */

View File

@@ -283,7 +283,7 @@ protected:
private:
Base::Matrix4D _transform;
};
}// namespace Inspection
} // namespace Inspection
InspectNominalMesh::InspectNominalMesh(const Mesh::MeshObject& rMesh, float offset)
: _mesh(rMesh.getKernel())
@@ -321,7 +321,7 @@ InspectNominalMesh::~InspectNominalMesh()
float InspectNominalMesh::getDistance(const Base::Vector3f& point) const
{
if (!_box.IsInBox(point)) {
return FLT_MAX;// must be inside bbox
return FLT_MAX; // must be inside bbox
}
std::vector<unsigned long> indices;
@@ -398,11 +398,11 @@ InspectNominalFastMesh::~InspectNominalFastMesh()
float InspectNominalFastMesh::getDistance(const Base::Vector3f& point) const
{
if (!_box.IsInBox(point)) {
return FLT_MAX;// must be inside bbox
return FLT_MAX; // must be inside bbox
}
std::set<unsigned long> indices;
#if 0// a point in a neighbour grid can be nearer
#if 0 // a point in a neighbour grid can be nearer
std::vector<unsigned long> elements;
_pGrid->GetElements(point, elements);
indices.insert(elements.begin(), elements.end());
@@ -444,7 +444,7 @@ float InspectNominalFastMesh::getDistance(const Base::Vector3f& point) const
InspectNominalPoints::InspectNominalPoints(const Points::PointKernel& Kernel, float /*offset*/)
: _rKernel(Kernel)
{
int uGridPerAxis = 50;// totally 125.000 grid elements
int uGridPerAxis = 50; // totally 125.000 grid elements
this->_pGrid = new Points::PointsGrid(Kernel, uGridPerAxis);
}
@@ -763,7 +763,7 @@ public:
int m_numv {0};
double m_sumsq {0.0};
};
}// namespace Inspection
} // namespace Inspection
PROPERTY_SOURCE(Inspection::Feature, App::DocumentObject)
@@ -849,7 +849,7 @@ App::DocumentObjectExecReturn* Feature::execute()
// clang-format on
#if 0
#if 1// test with some huge data sets
#if 1 // test with some huge data sets
std::vector<unsigned long> index(actual->countPoints());
std::generate(index.begin(), index.end(), Base::iotaGen<unsigned long>(0));
DistanceInspection check(this->SearchRadius.getValue(), actual, inspectNominal);

View File

@@ -38,7 +38,7 @@ namespace MeshCore
{
class MeshKernel;
class MeshGrid;
}// namespace MeshCore
} // namespace MeshCore
namespace Mesh
{
@@ -287,7 +287,7 @@ public:
}
};
}// namespace Inspection
} // namespace Inspection
#endif// INSPECTION_FEATURE_H
#endif // INSPECTION_FEATURE_H

View File

@@ -29,7 +29,7 @@
#pragma warning(disable : 4005)
#pragma warning(disable : 4251)
#pragma warning(disable : 4503)
#pragma warning(disable : 4786)// specifier longer then 255 chars
#pragma warning(disable : 4786) // specifier longer then 255 chars
#endif
#ifdef _PreComp_
@@ -55,6 +55,6 @@
#include <QFutureWatcher>
#include <QtConcurrentMap>
#endif//_PreComp_
#endif //_PreComp_
#endif