36 #ifndef __vtkPyramid_h
37 #define __vtkPyramid_h
39 #include "vtkCommonDataModelModule.h"
40 #include "vtkCell3D.h"
45 class vtkUnstructuredGrid;
48 class VTKCOMMONDATAMODEL_EXPORT
vtkPyramid :
public vtkCell3D
53 void PrintSelf(ostream& os, vtkIndent indent);
57 virtual void GetEdgePoints(
int edgeId,
int* &pts);
58 virtual void GetFacePoints(
int faceId,
int* &pts);
67 vtkCell *GetEdge(
int edgeId);
68 vtkCell *GetFace(
int faceId);
69 int CellBoundary(
int subId,
double pcoords[3], vtkIdList *pts);
70 void Contour(
double value, vtkDataArray *cellScalars,
73 vtkPointData *inPd, vtkPointData *outPd,
75 int EvaluatePosition(
double x[3],
double* closestPoint,
76 int& subId,
double pcoords[3],
77 double& dist2,
double *weights);
78 void EvaluateLocation(
int& subId,
double pcoords[3],
double x[3],
80 int IntersectWithLine(
double p1[3],
double p2[3],
double tol,
double& t,
81 double x[3],
double pcoords[3],
int& subId);
82 int Triangulate(
int index, vtkIdList *ptIds, vtkPoints *pts);
83 void Derivatives(
int subId,
double pcoords[3],
double *values,
84 int dim,
double *derivs);
85 virtual double *GetParametricCoords();
89 int GetParametricCenter(
double pcoords[3]);
93 static void InterpolationFunctions(
double pcoords[3],
double weights[5]);
95 static void InterpolationDerivs(
double pcoords[3],
double derivs[15]);
109 int JacobianInverse(
double pcoords[3],
double **inverse,
double derivs[15]);
114 static int *GetEdgeArray(
int edgeId);
115 static int *GetFaceArray(
int faceId);
134 pcoords[0] = pcoords[1] = 0.4;
a 3D cell that represents a linear pyramid
int GetParametricCenter(double pcoords[3])
represent and manipulate cell attribute data
Abstract class in support of both point location and point insertion.
virtual void InterpolateDerivs(double pcoords[3], double derivs[15])
virtual void InterpolateFunctions(double pcoords[3], double weights[5])
object to represent cell connectivity
a cell that represents a triangle
static void InterpolationDerivs(double pcoords[3], double derivs[15])
static void InterpolationFunctions(double pcoords[3], double weights[5])