[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

View File

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

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_
@@ -61,6 +61,6 @@
#include <QMenu>
#include <QMessageBox>
#endif//_PreComp_
#endif //_PreComp_
#endif// GUI_PRECOMPILED_H
#endif // GUI_PRECOMPILED_H

View File

@@ -104,7 +104,7 @@ ViewProviderInspection::ViewProviderInspection()
pcPointStyle->ref();
pcPointStyle->style = SoDrawStyle::POINTS;
pcPointStyle->pointSize = PointSize.getValue();
SelectionStyle.setValue(1);// BBOX
SelectionStyle.setValue(1); // BBOX
}
ViewProviderInspection::~ViewProviderInspection()
@@ -521,7 +521,7 @@ public:
private:
QPointer<QWidget> widget;
};
}// namespace InspectionGui
} // namespace InspectionGui
void ViewProviderInspection::inspectCallback(void* ud, SoEventCallback* n)
{
@@ -651,7 +651,7 @@ bool calcWeights(const SbVec3f& v1,
return fabs(w0 + w1 + w2 - 1.0f) < 0.001f;
}
}// namespace InspectionGui
} // namespace InspectionGui
QString ViewProviderInspection::inspectDistance(const SoPickedPoint* pp) const
{

View File

@@ -40,7 +40,7 @@ namespace Gui
{
class SoFCColorBar;
class View3DInventorViewer;
}// namespace Gui
} // namespace Gui
namespace InspectionGui
{
@@ -123,7 +123,7 @@ public:
QIcon getIcon() const override;
};
}// namespace InspectionGui
} // namespace InspectionGui
#endif// INSPECTIOGUI_VIEWPROVIDERINSPECTION_H
#endif // INSPECTIOGUI_VIEWPROVIDERINSPECTION_H

View File

@@ -70,7 +70,7 @@ public:
private:
SingleSelectionItem* _compItem;
};
}// namespace InspectionGui
} // namespace InspectionGui
/* TRANSLATOR InspectionGui::DlgVisualInspectionImp */

View File

@@ -52,6 +52,6 @@ private:
QPushButton* buttonOk;
};
}// namespace InspectionGui
} // namespace InspectionGui
#endif// INSPECTIONGUI_VISUALINSPECTION_H
#endif // INSPECTIONGUI_VISUALINSPECTION_H

View File

@@ -42,7 +42,7 @@ protected:
Gui::ToolBarItem* setupToolBars() const override;
};
}// namespace InspectionGui
} // namespace InspectionGui
#endif// Inspection_WORKBENCH_H
#endif // Inspection_WORKBENCH_H

View File

@@ -44,4 +44,4 @@
#endif
#endif
#endif// INSPECTION_GLOBAL_H
#endif // INSPECTION_GLOBAL_H