FEM: clean code (#21526)

* FEM: clean code

clean code

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

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

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
mosfet80
2025-06-02 12:13:35 +02:00
committed by GitHub
parent 46d626f368
commit 96c0acb825
3 changed files with 0 additions and 40 deletions

View File

@@ -115,21 +115,11 @@ App::DocumentObjectExecReturn* FemMeshShapeNetgenObject::execute()
myNetGenMesher.Compute();
// throw Base::RuntimeError("Compute Done\n");
SMESHDS_Mesh* data = const_cast<SMESH_Mesh*>(newMesh.getSMesh())->GetMeshDS();
const SMDS_MeshInfo& info = data->GetMeshInfo();
int numFaces = data->NbFaces();
int numNode = info.NbNodes();
// int numTria = info.NbTriangles();
// int numQuad = info.NbQuadrangles();
// int numPoly = info.NbPolygons();
int numVolu = info.NbVolumes();
// int numTetr = info.NbTetras();
// int numHexa = info.NbHexas();
// int numPyrd = info.NbPyramids();
// int numPris = info.NbPrisms();
// int numHedr = info.NbPolyhedrons();
Base::Console().log("NetgenMesh: %i Nodes, %i Volumes, %i Faces\n", numNode, numVolu, numFaces);
@@ -141,22 +131,3 @@ App::DocumentObjectExecReturn* FemMeshShapeNetgenObject::execute()
this);
#endif
}
// short FemMeshShapeNetgenObject::mustExecute(void) const
//{
// return 0;
// }
// PyObject *FemMeshShapeNetgenObject::getPyObject()
//{
// if (PythonObject.is(Py::_None())){
// // ref counter is set to 1
// PythonObject = Py::Object(new DocumentObjectPy(this),true);
// }
// return Py::new_reference_to(PythonObject);
// }
// void FemMeshShapeNetgenObject::onChanged(const Property* prop)
//{
// Fem::FemMeshShapeObject::onChanged(prop);
// }

View File

@@ -390,11 +390,8 @@ FemPostDataAlongLineFilter::FemPostDataAlongLineFilter()
m_probe->SetValidPointMaskArrayName("ValidPointArray");
m_probe->SetPassPointArrays(1);
m_probe->SetPassCellArrays(1);
// needs vtk > 6.1
#if (VTK_MAJOR_VERSION > 6) && (VTK_MINOR_VERSION > 1)
m_probe->ComputeToleranceOff();
m_probe->SetTolerance(0.01);
#endif
clip.source = passthrough;
clip.target = m_probe;
@@ -563,11 +560,8 @@ FemPostDataAtPointFilter::FemPostDataAtPointFilter()
m_probe->SetValidPointMaskArrayName("ValidPointArray");
m_probe->SetPassPointArrays(1);
m_probe->SetPassCellArrays(1);
// needs vtk > 6.1
#if (VTK_MAJOR_VERSION > 6) && (VTK_MINOR_VERSION > 1)
m_probe->ComputeToleranceOff();
m_probe->SetTolerance(0.01);
#endif
clip.source = passthrough;
clip.target = m_probe;
@@ -1459,7 +1453,6 @@ void FemPostCalculatorFilter::updateAvailableFields()
std::vector<std::string> scalars;
std::vector<std::string> vectors;
// std::vector<std::string> tensors;
vtkSmartPointer<vtkDataObject> data = getInputData();
vtkDataSet* dset = vtkDataSet::SafeDownCast(data);

View File

@@ -42,10 +42,6 @@ public:
App::PropertyLink FemMesh;
/// returns the type name of the ViewProvider
// virtual const char* getViewProviderName(void) const {
// return "FemGui::ViewProviderFemSet";
// }
App::DocumentObjectExecReturn* execute() override
{
return App::DocumentObject::StdReturn;