[fem] clean

clean unused code
This commit is contained in:
mos
2024-05-21 19:27:11 +02:00
committed by wwmayer
parent de40658f3d
commit bf1f16ac53
3 changed files with 0 additions and 92 deletions

View File

@@ -470,7 +470,6 @@ void FemVTKTools::writeVTKMesh(const char* filename, const FemMesh* mesh)
vtkSmartPointer<vtkUnstructuredGrid> grid = vtkSmartPointer<vtkUnstructuredGrid>::New();
exportVTKMesh(mesh, grid);
// vtkSmartPointer<vtkDataSet> dataset = vtkDataSet::SafeDownCast(grid);
Base::Console().Log("Start: writing mesh data ======================\n");
if (f.hasExtension("vtu")) {
writeVTKFile<vtkXMLUnstructuredGridWriter>(filename, grid);
@@ -630,7 +629,6 @@ void FemVTKTools::writeResult(const char* filename, const App::DocumentObject* r
// result
FemVTKTools::exportFreeCADResult(res, grid);
// vtkSmartPointer<vtkDataSet> dataset = vtkDataSet::SafeDownCast(grid);
if (f.hasExtension("vtu")) {
writeVTKFile<vtkXMLUnstructuredGridWriter>(filename, grid);
}
@@ -868,9 +866,6 @@ void FemVTKTools::exportFreeCADResult(const App::DocumentObject* result,
}
if (field && field->getSize() > 0) {
// if (nPoints != field->getSize())
// Base::Console().Error("Size of PropertyVectorList = %d, not equal
// to vtk mesh node count %d \n", field->getSize(), nPoints);
const std::vector<Base::Vector3d>& vel = field->getValues();
vtkSmartPointer<vtkDoubleArray> data = vtkSmartPointer<vtkDoubleArray>::New();
data->SetNumberOfComponents(dim);
@@ -925,9 +920,6 @@ void FemVTKTools::exportFreeCADResult(const App::DocumentObject* result,
}
if (field && field->getSize() > 0) {
// if (nPoints != field->getSize())
// Base::Console().Error("Size of PropertyFloatList = %d, not equal to vtk mesh
// node count %d \n", field->getSize(), nPoints);
const std::vector<double>& vec = field->getValues();
vtkSmartPointer<vtkDoubleArray> data = vtkSmartPointer<vtkDoubleArray>::New();
data->SetNumberOfValues(nPoints);