[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

@@ -124,7 +124,7 @@ void CurveProjectorShape::projectCurve(const TopoDS_Edge& aEdge,
Base::Vector3f cResultPoint, cSplitPoint, cPlanePnt, cPlaneNormal;
MeshCore::FacetIndex uStartFacetIdx, uCurFacetIdx;
MeshCore::FacetIndex uLastFacetIdx =
MeshCore::FACET_INDEX_MAX - 1;// use another value as FACET_INDEX_MAX
MeshCore::FACET_INDEX_MAX - 1; // use another value as FACET_INDEX_MAX
MeshCore::FacetIndex auNeighboursIdx[3];
bool GoOn;
@@ -1106,7 +1106,7 @@ void MeshProjection::projectEdgeToEdge(const TopoDS_Edge& aEdge,
const std::list<MeshCore::FacetIndex>& auFaces = it->second;
if (auFaces.size() > 2) {
continue;// non-manifold edge -> don't handle this
continue; // non-manifold edge -> don't handle this
}
// if ( clBB.IsOut( gp_Pnt(cE0.x, cE0.y, cE0.z) ) && clBB.IsOut( gp_Pnt(cE1.x, cE1.y,
// cE1.z) ) )

View File

@@ -38,7 +38,7 @@ namespace MeshCore
class MeshKernel;
class MeshGeomFacet;
class MeshFacetGrid;
}// namespace MeshCore
} // namespace MeshCore
using MeshCore::MeshGeomFacet;
using MeshCore::MeshKernel;
@@ -255,6 +255,6 @@ private:
const MeshKernel& _rcMesh;
};
}// namespace MeshPart
} // namespace MeshPart
#endif

View File

@@ -256,24 +256,24 @@ MeshCore::MeshKernel* MeshAlgos::boolean(MeshCore::MeshKernel* pMesh1,
gts_face_class(),
gts_edge_class(),
gts_vertex_class());
if (Type == 0) {// union
if (Type == 0) { // union
gts_surface_inter_boolean(si, s3, GTS_1_OUT_2);
gts_surface_inter_boolean(si, s3, GTS_2_OUT_1);
}
else if (Type == 1) {// inter
else if (Type == 1) { // inter
gts_surface_inter_boolean(si, s3, GTS_1_IN_2);
gts_surface_inter_boolean(si, s3, GTS_2_IN_1);
}
else if (Type == 2) {// diff
else if (Type == 2) { // diff
gts_surface_inter_boolean(si, s3, GTS_1_OUT_2);
gts_surface_inter_boolean(si, s3, GTS_2_IN_1);
gts_surface_foreach_face(si->s2, (GtsFunc)gts_triangle_revert, NULL);
gts_surface_foreach_face(s2, (GtsFunc)gts_triangle_revert, NULL);
}
else if (Type == 3) {// cut inner
else if (Type == 3) { // cut inner
gts_surface_inter_boolean(si, s3, GTS_1_IN_2);
}
else if (Type == 4) {// cut outer
else if (Type == 4) { // cut outer
gts_surface_inter_boolean(si, s3, GTS_1_OUT_2);
}
@@ -571,12 +571,12 @@ void MeshAlgos::LoftOnCurve(MeshCore::MeshKernel& ResultMesh,
ConnectMap[V1] = actPoint;
}
if (i)// not the first row or something to connect to
if (i) // not the first row or something to connect to
{
for (l = 0; l < actPoint.size(); l++) {
if (l)// not first point in row
if (l) // not first point in row
{
if (i == res - 1 && bEnd) {// if last row and a end to connect
if (i == res - 1 && bEnd) { // if last row and a end to connect
actPoint = ConnectMap[V2];
}

View File

@@ -116,6 +116,6 @@ public:
*/
};
}// namespace MeshPart
} // namespace MeshPart
#endif

View File

@@ -170,7 +170,7 @@ FaceUnwrapper::FaceUnwrapper(const TopoDS_Face& face)
void FaceUnwrapper::findFlatNodes(int steps, double val)
{
std::vector<long> fixed_pins;// TODO: INPUT
std::vector<long> fixed_pins; // TODO: INPUT
lscmrelax::LscmRelax mesh_flattener(this->xyz_nodes.transpose(),
this->tris.transpose(),
fixed_pins);

View File

@@ -78,4 +78,4 @@ public:
};
// clang-format on
#endif// MESHFLATTENING
#endif // MESHFLATTENING

View File

@@ -74,13 +74,13 @@
#include <NETGENPlugin_Hypothesis_2D.hxx>
#include <NETGENPlugin_NETGEN_2D.hxx>
#include <NETGENPlugin_SimpleHypothesis_2D.hxx>
#endif// HAVE_NETGEN
#endif // HAVE_NETGEN
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif// HAVE_SMESH
#endif // HAVE_SMESH
using namespace MeshPart;
@@ -159,7 +159,7 @@ struct Vertex
if (fabs(this->z - v.z) >= deflection) {
return this->z < v.z;
}
return false;// points are considered to be equal
return false; // points are considered to be equal
}
};
@@ -313,7 +313,7 @@ public:
return meshdata;
}
};
}// namespace MeshPart
} // namespace MeshPart
// ----------------------------------------------------------------------------
@@ -398,7 +398,7 @@ Mesh::MeshObject* Mesher::createMesh() const
hyp2d->SetQuadAllowed(allowquad);
hyp2d->SetOptimize(optimize);
hyp2d->SetSecondOrder(
secondOrder);// apply bisecting to create four triangles out of one
secondOrder); // apply bisecting to create four triangles out of one
hypoth.push_back(hyp2d);
#if SMESH_VERSION_MAJOR >= 9
@@ -531,7 +531,7 @@ Mesh::MeshObject* Mesher::createMesh() const
}
return meshdata;
#endif// HAVE_SMESH
#endif // HAVE_SMESH
}
Mesh::MeshObject* Mesher::createFrom(SMESH_Mesh* mesh) const

View File

@@ -256,6 +256,6 @@ private:
std::string buffer;
};
}// namespace MeshPart
} // namespace MeshPart
#endif// MESHPART_MESHER_H
#endif // MESHPART_MESHER_H

View File

@@ -78,5 +78,5 @@
#include <TopoDS_Shape.hxx>
#include <gp_Pln.hxx>
#endif// _PreComp_
#endif // _PreComp_
#endif