43 #define VTK_CELL_SIZE 512 44 #define VTK_TOL 1.e-05 // Tolerance for geometric calculation 46 #include "vtkCommonDataModelModule.h" 84 virtual void ShallowCopy(
vtkCell *c);
90 virtual void DeepCopy(
vtkCell *c);
95 virtual int GetCellType() = 0;
100 virtual int GetCellDimension() = 0;
145 virtual int GetNumberOfEdges() = 0;
150 virtual int GetNumberOfFaces() = 0;
165 virtual vtkCell *GetEdge(
int edgeId) = 0;
170 virtual vtkCell *GetFace(
int faceId) = 0;
179 virtual int CellBoundary(
int subId,
double pcoords[3],
vtkIdList *pts) = 0;
198 virtual int EvaluatePosition(
double x[3],
double* closestPoint,
199 int& subId,
double pcoords[3],
200 double& dist2,
double *weights) = 0;
207 virtual void EvaluateLocation(
int& subId,
double pcoords[3],
208 double x[3],
double *weights) = 0;
242 virtual void Clip(
double value,
vtkDataArray *cellScalars,
256 virtual int IntersectWithLine(
double p1[3],
double p2[3],
257 double tol,
double& t,
double x[3],
258 double pcoords[3],
int& subId) = 0;
286 virtual void Derivatives(
int subId,
double pcoords[3],
double *values,
287 int dim,
double *derivs) = 0;
294 void GetBounds(
double bounds[6]);
316 virtual int GetParametricCenter(
double pcoords[3]);
326 virtual double GetParametricDistance(
double pcoords[3]);
348 virtual double *GetParametricCoords();
374 void operator=(const
vtkCell&) VTK_DELETE_FUNCTION;
vtkIdType GetNumberOfPoints()
Return the number of points in the cell.
abstract base class for most VTK objects
represent and manipulate point attribute data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void InterpolateFunctions(double vtkNotUsed(pcoords)[3], double *vtkNotUsed(weight))
Compute the interpolation functions/derivatives (aka shape functions/derivatives) No-ops at this leve...
vtkPoints * GetPoints()
Get the point coordinates for the cell.
represent and manipulate cell attribute data
Abstract class in support of both point location and point insertion.
vtkIdType GetPointId(int ptId)
For cell point i, return the actual point id.
virtual int IsLinear()
Non-linear cells require special treatment beyond the usual cell type and connectivity list informati...
virtual void SetFaces(vtkIdType *vtkNotUsed(faces))
abstract class to specify cell behavior
a simple class to control print indentation
list of point or cell ids
abstract superclass for arrays of numeric data
virtual int RequiresInitialization()
Some cells require initialization prior to access.
virtual int RequiresExplicitFaceRepresentation()
Determine whether the cell requires explicit face representation, and methods for setting and getting...
virtual void InterpolateDerivs(double vtkNotUsed(pcoords)[3], double *vtkNotUsed(derivs))
object to represent cell connectivity
virtual int IsExplicitCell()
Explicit cells require additional representational information beyond the usual cell type and connect...
virtual int IsPrimaryCell()
Return whether this cell type has a fixed topology or whether the topology varies depending on the da...
vtkIdList * GetPointIds()
Return the list of point ids defining the cell.
virtual vtkIdType * GetFaces()
virtual void Initialize()
represent and manipulate 3D points