Console: rename PascalCase named methods to camelCase

This commit is contained in:
bofdahof
2025-03-30 00:50:27 +10:00
committed by Kacper Donat
parent 1dbc0638c3
commit ba2c2ca5ad
497 changed files with 2423 additions and 2425 deletions

View File

@@ -44,6 +44,6 @@ PyMOD_INIT_FUNC(MeshPart)
PyMOD_Return(nullptr);
}
PyObject* mod = MeshPart::initModule();
Base::Console().Log("Loading MeshPart module... done\n");
Base::Console().log("Loading MeshPart module... done\n");
PyMOD_Return(mod);
}

View File

@@ -155,7 +155,7 @@ private:
str += " ";
if (msg) {str += msg;}
else {str += "No OCCT Exception Message";}
Base::Console().Error("%s\n", str.c_str());
Base::Console().error("%s\n", str.c_str());
throw Py::Exception(Base::PyExc_FC_GeneralError, str);
}
catch (const Base::Exception &e) {
@@ -171,7 +171,7 @@ private:
str += "C++ exception thrown (";
str += e.what();
str += ")";
Base::Console().Error("%s\n", str.c_str());
Base::Console().error("%s\n", str.c_str());
throw Py::RuntimeError(str);
}
}

View File

@@ -197,7 +197,7 @@ void CurveProjectorShape::projectCurve(const TopoDS_Edge& aEdge,
}
else if (Alg.NbPoints() > 1) {
PointOnEdge[i] = Base::Vector3f(std::numeric_limits<float>::max(), 0, 0);
Base::Console().Log("MeshAlgos::projectCurve(): More then one intersection in "
Base::Console().log("MeshAlgos::projectCurve(): More then one intersection in "
"Facet %lu, Edge %d\n",
uCurFacetIdx,
i);
@@ -218,7 +218,7 @@ void CurveProjectorShape::projectCurve(const TopoDS_Edge& aEdge,
GoOn = true;
}
else {
Base::Console().Log("MeshAlgos::projectCurve(): Possible reentry in Facet %lu\n",
Base::Console().log("MeshAlgos::projectCurve(): Possible reentry in Facet %lu\n",
uCurFacetIdx);
}
@@ -340,7 +340,7 @@ void CurveProjectorSimple::projectCurve(const TopoDS_Edge& aEdge,
FaceProjctMap[It.Position()].push_back(TempResultPoint);
str << TempResultPoint.x << " " << TempResultPoint.y << " " << TempResultPoint.z
<< std::endl;
Base::Console().Log("IDX %d\n", It.Position());
Base::Console().log("IDX %d\n", It.Position());
if (bFirst) {
bFirst = false;
@@ -352,7 +352,7 @@ void CurveProjectorSimple::projectCurve(const TopoDS_Edge& aEdge,
}
str.close();
Base::Console().Log("Projection map [%d facets with %d points]\n",
Base::Console().log("Projection map [%d facets with %d points]\n",
FaceProjctMap.size(),
PointCount);
}
@@ -460,7 +460,7 @@ void CurveProjectorWithToolMesh::makeToolMesh(const TopoDS_Edge& aEdge,
LineSegs.push_back(s);
}
Base::Console().Log("Projection map [%d facets with %d points]\n",
Base::Console().log("Projection map [%d facets with %d points]\n",
FaceProjctMap.size(),
PointCount);
@@ -989,7 +989,7 @@ void MeshProjection::projectEdgeToEdge(const TopoDS_Edge& aEdge,
rParamSplitEdges[fSol] = splitEdge;
}
else if (nCntSol > 1) {
Base::Console().Log("More than one possible intersection points\n");
Base::Console().log("More than one possible intersection points\n");
}
}
}

View File

@@ -112,7 +112,7 @@ int MeshingOutput::sync()
else {
sub = buffer;
}
Base::Console().Error("%s", sub.c_str());
Base::Console().error("%s", sub.c_str());
}
buffer.clear();
}
@@ -570,7 +570,7 @@ Mesh::MeshObject* Mesher::createFrom(SMESH_Mesh* mesh) const
faces.push_back(f6);
}
else {
Base::Console().Warning("Face with %d nodes ignored\n", aFace->NbNodes());
Base::Console().warning("Face with %d nodes ignored\n", aFace->NbNodes());
}
}

View File

@@ -74,7 +74,7 @@ PyMOD_INIT_FUNC(MeshPartGui)
}
PyObject* mod = MeshPartGui::initModule();
Base::Console().Log("Loading GUI of MeshPart module... done\n");
Base::Console().log("Loading GUI of MeshPart module... done\n");
// clang-format off
// instantiating the commands

View File

@@ -347,7 +347,7 @@ void Tessellation::process(int method,
}
catch (const Base::Exception& e) {
doc->abortTransaction();
Base::Console().Error(e.what());
Base::Console().error(e.what());
}
}