Common/vtkHexahedron.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00033 #ifndef __vtkHexahedron_h
00034 #define __vtkHexahedron_h
00035
00036 #include "vtkCell3D.h"
00037
00038 class vtkLine;
00039 class vtkQuad;
00040
00041 class VTK_COMMON_EXPORT vtkHexahedron : public vtkCell3D
00042 {
00043 public:
00044 static vtkHexahedron *New();
00045 vtkTypeRevisionMacro(vtkHexahedron,vtkCell3D);
00046
00048
00049 virtual void GetEdgePoints(int edgeId, int* &pts);
00050 virtual void GetFacePoints(int faceId, int* &pts);
00052
00054
00055 int GetCellType() {return VTK_HEXAHEDRON;}
00056 int GetNumberOfEdges() {return 12;}
00057 int GetNumberOfFaces() {return 6;}
00058 vtkCell *GetEdge(int edgeId);
00059 vtkCell *GetFace(int faceId);
00060 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00061 void Contour(double value, vtkDataArray *cellScalars,
00062 vtkPointLocator *locator, vtkCellArray *verts,
00063 vtkCellArray *lines, vtkCellArray *polys,
00064 vtkPointData *inPd, vtkPointData *outPd,
00065 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00067
00068 int EvaluatePosition(double x[3], double* closestPoint,
00069 int& subId, double pcoords[3],
00070 double& dist2, double *weights);
00071 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00072 double *weights);
00073 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00074 double x[3], double pcoords[3], int& subId);
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
00082 static void InterpolationFunctions(double pcoords[3], double weights[8]);
00083 static void InterpolationDerivs(double pcoords[3], double derivs[24]);
00084 static int *GetEdgeArray(int edgeId);
00085 static int *GetFaceArray(int faceId);
00087
00091 void JacobianInverse(double pcoords[3], double **inverse, double derivs[24]);
00092
00093 protected:
00094 vtkHexahedron();
00095 ~vtkHexahedron();
00096
00097 vtkLine *Line;
00098 vtkQuad *Quad;
00099
00100 private:
00101 vtkHexahedron(const vtkHexahedron&);
00102 void operator=(const vtkHexahedron&);
00103 };
00104
00105 #endif
00106
00107