Go to the documentation of this file.
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;
161 VTK_EXPECTS(0 <= ptId && ptId < GetPointIds()->GetNumberOfIds())
162 {
return this->PointIds->GetId(ptId);}
167 virtual vtkCell *GetEdge(
int edgeId) = 0;
172 virtual vtkCell *GetFace(
int faceId) = 0;
181 virtual int CellBoundary(
int subId,
const double pcoords[3],
vtkIdList *pts) = 0;
200 virtual int EvaluatePosition(
const double x[3],
double closestPoint[3],
201 int& subId,
double pcoords[3],
202 double& dist2,
double weights[]) = 0;
209 virtual void EvaluateLocation(
int& subId,
const double pcoords[3],
210 double x[3],
double *weights) = 0;
258 virtual int IntersectWithLine(
const double p1[3],
const double p2[3],
259 double tol,
double& t,
double x[3],
260 double pcoords[3],
int& subId) = 0;
288 virtual void Derivatives(
int subId,
const double pcoords[3],
const double *values,
289 int dim,
double *derivs) = 0;
296 void GetBounds(
double bounds[6]);
318 virtual
int GetParametricCenter(
double pcoords[3]);
328 virtual
double GetParametricDistance(const
double pcoords[3]);
338 virtual
int IsPrimaryCell() {
return 1;}
350 virtual double *GetParametricCoords()
VTK_SIZEHINT(3*GetNumberOfPoints());
357 virtual
void InterpolateFunctions(const
double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(
weight))
376 void operator=(
const vtkCell&) =
delete;
represent and manipulate 3D points
represent and manipulate point attribute data
virtual int RequiresExplicitFaceRepresentation()
Determine whether the cell requires explicit face representation, and methods for setting and getting...
virtual void Initialize()
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
virtual int IsLinear()
Non-linear cells require special treatment beyond the usual cell type and connectivity list informati...
#define VTK_SIZEHINT(...)
vtkIdList * GetPointIds()
Return the list of point ids defining the cell.
virtual vtkIdType * GetFaces()
abstract class to specify cell behavior
represent and manipulate cell attribute data
a simple class to control print indentation
object to represent cell connectivity
Abstract class in support of both point location and point insertion.
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int IsExplicitCell()
Explicit cells require additional representational information beyond the usual cell type and connect...
vtkIdType GetNumberOfPoints()
Return the number of points in the cell.
virtual int RequiresInitialization()
Some cells require initialization prior to access.
virtual void InterpolateDerivs(const double vtkNotUsed(pcoords)[3], double *vtkNotUsed(derivs))
virtual void SetFaces(vtkIdType *vtkNotUsed(faces))
vtkIdType GetPointId(int ptId)
For cell point i, return the actual point id.
vtkPoints * GetPoints()
Get the point coordinates for the cell.