From 3467f8593d617d06b9b03e3b7320328de7a34bdf Mon Sep 17 00:00:00 2001 From: CookieKastanie Date: Tue, 15 Mar 2022 11:34:55 +0100 Subject: [PATCH] new filter --- CMakeLists.txt | 4 +++- src/relaxation_filter.cc | 18 ++++++++++++++++++ src/relaxation_filter.h | 21 +++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/relaxation_filter.cc create mode 100644 src/relaxation_filter.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 5413eec..eafd6db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,9 @@ target_sources(pfe PRIVATE src/project_surface_points_on_poly.cc src/project_surface_points_on_poly.h src/remove_external_cells_filter.cc - src/remove_external_cells_filter.h) + src/remove_external_cells_filter.h + src/relaxation_filter.cc + src/relaxation_filter.h) target_link_libraries(pfe PRIVATE ${VTK_COMPONENTS}) diff --git a/src/relaxation_filter.cc b/src/relaxation_filter.cc new file mode 100644 index 0000000..d70b0a1 --- /dev/null +++ b/src/relaxation_filter.cc @@ -0,0 +1,18 @@ +#include "relaxation_filter.h" + +#include +#include +#include +#include +#include + +vtkStandardNewMacro(RelaxationFilter); + +vtkTypeBool RelaxationFilter::RequestData( + vtkInformation *request, + vtkInformationVector **inputVector, + vtkInformationVector *outputVector) { + + + return true; +} diff --git a/src/relaxation_filter.h b/src/relaxation_filter.h new file mode 100644 index 0000000..b760f12 --- /dev/null +++ b/src/relaxation_filter.h @@ -0,0 +1,21 @@ +#ifndef RELAXATION_FILTER_H +#define RELAXATION_FILTER_H + + +#include +#include + +class RelaxationFilter : public vtkUnstructuredGridAlgorithm { +public: + static RelaxationFilter *New(); + vtkTypeMacro(RelaxationFilter, vtkUnstructuredGridAlgorithm); + vtkTypeBool RequestData(vtkInformation *request, + vtkInformationVector **inputVector, + vtkInformationVector *outputVector) override; + +protected: + ~RelaxationFilter() override = default; +}; + + +#endif