31 #define VTK_CELL_SIZE 512
32 #define VTK_TOL 1.e-05 // Tolerance for geometric calculation
34 #include "vtkCommonDataModelModule.h"
41 VTK_ABI_NAMESPACE_BEGIN
74 virtual void ShallowCopy(
vtkCell* c);
80 virtual void DeepCopy(
vtkCell* c);
90 virtual int GetCellDimension() = 0;
135 virtual int GetNumberOfEdges() = 0;
140 virtual int GetNumberOfFaces() = 0;
152 return this->PointIds->GetId(ptId);
158 virtual vtkCell* GetEdge(
int edgeId) = 0;
171 virtual vtkCell* GetFace(
int faceId) = 0;
180 virtual int CellBoundary(
int subId,
const double pcoords[3],
vtkIdList* pts) = 0;
199 virtual int EvaluatePosition(
const double x[3],
double closestPoint[3],
int& subId,
200 double pcoords[3],
double& dist2,
double weights[]) = 0;
207 virtual void EvaluateLocation(
208 int& subId,
const double pcoords[3],
double x[3],
double* weights) = 0;
256 virtual int Inflate(
double dist);
266 virtual double ComputeBoundingSphere(
double center[3])
const;
276 virtual int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
277 double x[3],
double pcoords[3],
int& subId) = 0;
287 virtual int IntersectWithCell(
vtkCell* other,
double tol = 0.0);
318 virtual void Derivatives(
319 int subId,
const double pcoords[3],
const double* values,
int dim,
double* derivs) = 0;
344 virtual
int GetParametricCenter(
double pcoords[3]);
353 virtual
double GetParametricDistance(const
double pcoords[3]);
362 virtual
int IsPrimaryCell() {
return 1; }
373 virtual double* GetParametricCoords()
VTK_SIZEHINT(3 * GetNumberOfPoints());
380 virtual
void InterpolateFunctions(const
double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(
weight))
383 virtual void InterpolateDerivs(
const double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(derivs)) {}
397 void operator=(
const vtkCell&) =
delete;
400 VTK_ABI_NAMESPACE_END
void GetBounds(T a, double bds[6])
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.
vtkIdType GetNumberOfPoints() const
Return the number of points in the cell.
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...
int GetCellType(const Ioss::ElementTopology *topology)
Returns VTK celltype for a Ioss topology element.
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
Fast, simple class for representing and operating on 3D bounds.