43 #define VTK_CELL_SIZE 512
44 #define VTK_TOL 1.e-05 // Tolerance for geometric calculation
46 #include "vtkCommonDataModelModule.h"
85 virtual void ShallowCopy(
vtkCell* c);
91 virtual void DeepCopy(
vtkCell* c);
101 virtual int GetCellDimension() = 0;
146 virtual int GetNumberOfEdges() = 0;
151 virtual int GetNumberOfFaces() = 0;
163 return this->PointIds->GetId(ptId);
169 virtual vtkCell* GetEdge(
int edgeId) = 0;
182 virtual vtkCell* GetFace(
int faceId) = 0;
191 virtual int CellBoundary(
int subId,
const double pcoords[3],
vtkIdList* pts) = 0;
210 virtual int EvaluatePosition(
const double x[3],
double closestPoint[3],
int& subId,
211 double pcoords[3],
double& dist2,
double weights[]) = 0;
218 virtual void EvaluateLocation(
219 int& subId,
const double pcoords[3],
double x[3],
double* weights) = 0;
267 virtual int Inflate(
double dist);
277 virtual double ComputeBoundingSphere(
double center[3])
const;
287 virtual int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
288 double x[3],
double pcoords[3],
int& subId) = 0;
298 virtual int IntersectWithCell(
vtkCell* other,
double tol = 0.0);
329 virtual void Derivatives(
330 int subId,
const double pcoords[3],
const double* values,
int dim,
double* derivs) = 0;
355 virtual
int GetParametricCenter(
double pcoords[3]);
364 virtual
double GetParametricDistance(const
double pcoords[3]);
373 virtual
int IsPrimaryCell() {
return 1; }
384 virtual double* GetParametricCoords()
VTK_SIZEHINT(3 * GetNumberOfPoints());
391 virtual
void InterpolateFunctions(const
double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(
weight))
394 virtual void InterpolateDerivs(
const double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(derivs)) {}
408 void operator=(
const vtkCell&) =
delete;
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.