VMTK
Loading...
Searching...
No Matches
vtkvmtkLinearToQuadraticMeshFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
43
44#ifndef __vtkvmtkLinearToQuadraticMeshFilter_h
45#define __vtkvmtkLinearToQuadraticMeshFilter_h
46
47#include "vtkUnstructuredGridAlgorithm.h"
48#include "vtkPolyData.h"
49#include "vtkCell.h"
50#include "vtkvmtkWin32Header.h"
51
52class VTK_VMTK_MISC_EXPORT vtkvmtkLinearToQuadraticMeshFilter : public vtkUnstructuredGridAlgorithm
53{
54 public:
55 vtkTypeMacro(vtkvmtkLinearToQuadraticMeshFilter,vtkUnstructuredGridAlgorithm);
56 void PrintSelf(std::ostream& os, vtkIndent indent) override;
57
59
61
66 vtkSetMacro(UseBiquadraticWedge,int);
67 vtkGetMacro(UseBiquadraticWedge,int);
68 vtkBooleanMacro(UseBiquadraticWedge,int);
70
72
79 vtkSetMacro(NumberOfNodesHexahedra,int);
80 vtkGetMacro(NumberOfNodesHexahedra,int);
82
84
90 vtkSetObjectMacro(ReferenceSurface,vtkPolyData);
91 vtkGetObjectMacro(ReferenceSurface,vtkPolyData);
93
95
102 vtkSetStringMacro(CellEntityIdsArrayName);
103 vtkGetStringMacro(CellEntityIdsArrayName);
105
107
112 vtkSetMacro(ProjectedCellEntityId,int);
113 vtkGetMacro(ProjectedCellEntityId,int);
115
117
122 vtkSetMacro(QuadratureOrder,int);
123 vtkGetMacro(QuadratureOrder,int);
125
127
132 vtkSetMacro(NegativeJacobianTolerance,double);
133 vtkGetMacro(NegativeJacobianTolerance,double);
135
137
142 vtkSetMacro(JacobianRelaxation,int);
143 vtkGetMacro(JacobianRelaxation,int);
144 vtkBooleanMacro(JacobianRelaxation,int);
146
148
153 vtkSetMacro(TestFinalJacobians,int);
154 vtkGetMacro(TestFinalJacobians,int);
155 vtkBooleanMacro(TestFinalJacobians,int);
157
158 protected:
161
162 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
163
164 bool HasJacobianChangedSign(vtkCell* linearVolumeCell, vtkCell* quadraticVolumeCell);
165 double ComputeJacobian(vtkCell* cell, double pcoords[3]);
166
168
170
171 vtkPolyData* ReferenceSurface;
172
177
180
181 private:
183 void operator=(const vtkvmtkLinearToQuadraticMeshFilter&); // Not implemented.
184};
185
186#endif
static vtkvmtkLinearToQuadraticMeshFilter * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
bool HasJacobianChangedSign(vtkCell *linearVolumeCell, vtkCell *quadraticVolumeCell)
double ComputeJacobian(vtkCell *cell, double pcoords[3])