00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00035 #ifndef __vtkQuadraticTetra_h
00036 #define __vtkQuadraticTetra_h
00037
00038 #include "vtkNonLinearCell.h"
00039
00040 class vtkPolyData;
00041 class vtkQuadraticEdge;
00042 class vtkQuadraticTriangle;
00043 class vtkTetra;
00044 class vtkDoubleArray;
00045
00046 class VTK_FILTERING_EXPORT vtkQuadraticTetra : public vtkNonLinearCell
00047 {
00048 public:
00049 static vtkQuadraticTetra *New();
00050 vtkTypeRevisionMacro(vtkQuadraticTetra,vtkNonLinearCell);
00051 void PrintSelf(ostream& os, vtkIndent indent);
00052
00054
00056 int GetCellType() {return VTK_QUADRATIC_TETRA;}
00057 int GetCellDimension() {return 3;}
00058 int GetNumberOfEdges() {return 6;}
00059 int GetNumberOfFaces() {return 4;}
00060 vtkCell *GetEdge(int);
00061 vtkCell *GetFace(int);
00063
00064 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00065 void Contour(double value, vtkDataArray *cellScalars,
00066 vtkPointLocator *locator, vtkCellArray *verts,
00067 vtkCellArray *lines, vtkCellArray *polys,
00068 vtkPointData *inPd, vtkPointData *outPd,
00069 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00070 int EvaluatePosition(double x[3], double* closestPoint,
00071 int& subId, double pcoords[3],
00072 double& dist2, double *weights);
00073 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00074 double *weights);
00075 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00076 void Derivatives(int subId, double pcoords[3], double *values,
00077 int dim, double *derivs);
00078 virtual double *GetParametricCoords();
00079
00081
00083 void Clip(double value, vtkDataArray *cellScalars,
00084 vtkPointLocator *locator, vtkCellArray *tetras,
00085 vtkPointData *inPd, vtkPointData *outPd,
00086 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00087 int insideOut);
00089
00091
00093 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00094 double x[3], double pcoords[3], int& subId);
00096
00097
00099 int GetParametricCenter(double pcoords[3]);
00100
00103 double GetParametricDistance(double pcoords[3]);
00104
00106
00107 static void InterpolationFunctions(double pcoords[3], double weights[10]);
00108 static void InterpolationDerivs(double pcoords[3], double derivs[30]);
00110
00114 void JacobianInverse(double pcoords[3], double **inverse, double derivs[30]);
00115
00116 protected:
00117 vtkQuadraticTetra();
00118 ~vtkQuadraticTetra();
00119
00120 vtkQuadraticEdge *Edge;
00121 vtkQuadraticTriangle *Face;
00122 vtkTetra *Tetra;
00123 vtkDoubleArray *Scalars;
00124
00125 private:
00126 vtkQuadraticTetra(const vtkQuadraticTetra&);
00127 void operator=(const vtkQuadraticTetra&);
00128 };
00129
00130 #endif
00131
00132