40 #define VTK_CELL_SIZE 512 41 #define VTK_TOL 1.e-05 // Tolerance for geometric calculation 43 #include "vtkCommonDataModelModule.h" 81 virtual void ShallowCopy(
vtkCell *c);
87 virtual void DeepCopy(
vtkCell *c);
92 virtual int GetCellType() = 0;
97 virtual int GetCellDimension() = 0;
142 virtual int GetNumberOfEdges() = 0;
147 virtual int GetNumberOfFaces() = 0;
158 VTK_EXPECTS(0 <= ptId && ptId < GetPointIds()->GetNumberOfIds())
159 {
return this->PointIds->GetId(ptId);}
164 virtual vtkCell *GetEdge(
int edgeId) = 0;
169 virtual vtkCell *GetFace(
int faceId) = 0;
178 virtual int CellBoundary(
int subId,
const double pcoords[3],
vtkIdList *pts) = 0;
197 virtual int EvaluatePosition(
const double x[3],
double closestPoint[3],
198 int& subId,
double pcoords[3],
199 double& dist2,
double weights[]) = 0;
206 virtual void EvaluateLocation(
int& subId,
const double pcoords[3],
207 double x[3],
double *weights) = 0;
255 virtual int IntersectWithLine(
const double p1[3],
const double p2[3],
256 double tol,
double& t,
double x[3],
257 double pcoords[3],
int& subId) = 0;
285 virtual void Derivatives(
int subId,
const double pcoords[3],
const double *values,
286 int dim,
double *derivs) = 0;
293 void GetBounds(
double bounds[6]);
315 virtual
int GetParametricCenter(
double pcoords[3]);
325 virtual
double GetParametricDistance(const
double pcoords[3]);
335 virtual
int IsPrimaryCell() {
return 1;}
347 virtual double *GetParametricCoords()
VTK_SIZEHINT(3*GetNumberOfPoints());
354 virtual
void InterpolateFunctions(const
double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(
weight))
373 void operator=(
const vtkCell&) =
delete;
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.
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 InterpolateDerivs(const double vtkNotUsed(pcoords)[3], double *vtkNotUsed(derivs))
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.
#define VTK_SIZEHINT(...)
virtual int RequiresExplicitFaceRepresentation()
Determine whether the cell requires explicit face representation, and methods for setting and getting...
object to represent cell connectivity
virtual int IsExplicitCell()
Explicit cells require additional representational information beyond the usual cell type and connect...
vtkIdList * GetPointIds()
Return the list of point ids defining the cell.
virtual vtkIdType * GetFaces()
virtual void Initialize()
represent and manipulate 3D points