VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkTriQuadraticHexahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTriQuadraticHexahedron.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
73 #ifndef __vtkTriQuadraticHexahedron_h
74 #define __vtkTriQuadraticHexahedron_h
75 
76 #include "vtkCommonDataModelModule.h" // For export macro
77 #include "vtkNonLinearCell.h"
78 
79 class vtkQuadraticEdge;
80 class vtkBiQuadraticQuad;
81 class vtkHexahedron;
82 class vtkDoubleArray;
83 
84 class VTKCOMMONDATAMODEL_EXPORT vtkTriQuadraticHexahedron : public vtkNonLinearCell
85 {
86 public:
87  static vtkTriQuadraticHexahedron *New ();
88  vtkTypeMacro(vtkTriQuadraticHexahedron,vtkNonLinearCell);
89  void PrintSelf (ostream & os, vtkIndent indent);
90 
92 
94  int GetCellType () { return VTK_TRIQUADRATIC_HEXAHEDRON; }
95  int GetCellDimension () { return 3; }
96  int GetNumberOfEdges () { return 12; }
97  int GetNumberOfFaces () { return 6; }
98  vtkCell *GetEdge (int);
99  vtkCell *GetFace (int);
101 
102  int CellBoundary (int subId, double pcoords[3], vtkIdList * pts);
103  void Contour (double value, vtkDataArray * cellScalars,
104  vtkIncrementalPointLocator * locator, vtkCellArray * verts,
105  vtkCellArray * lines, vtkCellArray * polys,
106  vtkPointData * inPd, vtkPointData * outPd, vtkCellData * inCd,
107  vtkIdType cellId, vtkCellData * outCd);
108  int EvaluatePosition (double x[3], double *closestPoint,
109  int &subId, double pcoords[3], double &dist2, double *weights);
110  void EvaluateLocation (int &subId, double pcoords[3], double x[3], double *weights);
111  int Triangulate (int index, vtkIdList * ptIds, vtkPoints * pts);
112  void Derivatives (int subId, double pcoords[3], double *values, int dim, double *derivs);
113  virtual double *GetParametricCoords ();
114 
116 
119  void Clip (double value, vtkDataArray * cellScalars,
120  vtkIncrementalPointLocator * locator, vtkCellArray * tetras,
121  vtkPointData * inPd, vtkPointData * outPd,
122  vtkCellData * inCd, vtkIdType cellId, vtkCellData * outCd, int insideOut);
124 
126 
128  int IntersectWithLine (double p1[3], double p2[3], double tol, double &t,
129  double x[3], double pcoords[3], int &subId);
131 
134  static void InterpolationFunctions (double pcoords[3], double weights[27]);
137  static void InterpolationDerivs (double pcoords[3], double derivs[81]);
139 
141  virtual void InterpolateFunctions (double pcoords[3], double weights[27])
142  {
144  }
145  virtual void InterpolateDerivs (double pcoords[3], double derivs[81])
146  {
148  }
150 
151 
153  static int *GetEdgeArray(int edgeId);
154  static int *GetFaceArray(int faceId);
156 
160  void JacobianInverse (double pcoords[3], double **inverse, double derivs[81]);
161 
162 protected:
165 
167  vtkBiQuadraticQuad *Face;
170 
171 private:
172  vtkTriQuadraticHexahedron (const vtkTriQuadraticHexahedron &); // Not implemented.
173  void operator = (const vtkTriQuadraticHexahedron &); // Not implemented.
174 };
175 
176 #endif
virtual void InterpolateFunctions(double pcoords[3], double weights[27])
static void InterpolationDerivs(double pcoords[3], double derivs[81])
Abstract class in support of both point location and point insertion.
static void InterpolationFunctions(double pcoords[3], double weights[27])
int vtkIdType
Definition: vtkType.h:268
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:46
cell represents a parabolic, 27-node isoparametric hexahedron
virtual void InterpolateDerivs(double pcoords[3], double derivs[81])
cell represents a parabolic, isoparametric edge
represent and manipulate 3D points
Definition: vtkPoints.h:39