23 #ifndef vtkMinkowskiFilter_h 24 #define vtkMinkowskiFilter_h 26 #include "vtkPVVTKExtensionsCosmoToolsModule.h" 27 #include "vtkUnstructuredGridAlgorithm.h" 29 class vtkUnstructuredGrid;
34 class VTKPVVTKEXTENSIONSCOSMOTOOLS_EXPORT
vtkMinkowskiFilter :
public vtkUnstructuredGridAlgorithm
39 void PrintSelf(ostream& os, vtkIndent indent);
45 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
46 int FillOutputPortInformation(
int, vtkInformation*);
52 void compute_mf(vtkUnstructuredGrid* ugrid, vtkDoubleArray* S, vtkDoubleArray* V,
53 vtkDoubleArray* C, vtkDoubleArray* X, vtkDoubleArray* G, vtkDoubleArray* T, vtkDoubleArray* B,
54 vtkDoubleArray* L, vtkDoubleArray* P, vtkDoubleArray* F);
55 double compute_S(vtkPolyhedron* cell);
56 double compute_V(vtkPolyhedron* cell);
57 double compute_V(vtkUnstructuredGrid* ugrid,
int cid);
58 double compute_C(vtkPolyhedron* cell);
59 double compute_X(vtkPolyhedron* cell);
60 double compute_G(
double X);
61 double compute_T(
double V,
double S);
62 double compute_B(
double S,
double C);
63 double compute_L(
double C,
double G);
64 double compute_P(
double B,
double L);
65 double compute_F(
double B,
double T);
67 void compute_normal(vtkCell* face,
double normal[3]);
68 int compute_epsilon(vtkCell* f1, vtkCell* f2, vtkCell* e);
69 double compute_face_area(vtkCell* face);
70 double compute_edge_length(vtkCell* edge);
71 double compute_face_angle(vtkCell* f1, vtkCell* f2);
74 #endif // vtkMinkowskiFilter_h Given as input a voronoi tesselation, stored in a vtkUnstructuredGrid, this filter computes the Minko...