31 #define VTK_CELL_SIZE 512
32 #define VTK_TOL 1.e-05 // Tolerance for geometric calculation
34 #include "vtkCommonDataModelModule.h"
42 VTK_ABI_NAMESPACE_BEGIN
75 virtual void ShallowCopy(
vtkCell* c);
81 virtual void DeepCopy(
vtkCell* c);
91 virtual int GetCellDimension() = 0;
98 virtual int IsLinear() VTK_FUTURE_CONST {
return 1; }
134 virtual int GetNumberOfEdges() = 0;
139 virtual int GetNumberOfFaces() = 0;
151 return this->PointIds->GetId(ptId);
157 virtual vtkCell* GetEdge(
int edgeId) = 0;
170 virtual vtkCell* GetFace(
int faceId) = 0;
179 virtual int CellBoundary(
int subId,
const double pcoords[3],
vtkIdList* pts) = 0;
198 virtual int EvaluatePosition(
const double x[3],
double closestPoint[3],
int& subId,
199 double pcoords[3],
double& dist2,
double weights[]) = 0;
206 virtual void EvaluateLocation(
207 int& subId,
const double pcoords[3],
double x[3],
double* weights) = 0;
255 virtual int Inflate(
double dist);
265 virtual double ComputeBoundingSphere(
double center[3])
const;
275 virtual int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
276 double x[3],
double pcoords[3],
int& subId) = 0;
286 virtual int IntersectWithCell(
vtkCell* other,
double tol = 0.0);
342 virtual void Derivatives(
343 int subId,
const double pcoords[3],
const double* values,
int dim,
double* derivs) = 0;
368 virtual
int GetParametricCenter(
double pcoords[3]);
377 virtual
double GetParametricDistance(const
double pcoords[3]);
386 virtual
int IsPrimaryCell() VTK_FUTURE_CONST {
return 1; }
397 virtual double* GetParametricCoords()
VTK_SIZEHINT(3 * GetNumberOfPoints());
404 virtual
void InterpolateFunctions(const
double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(
weight))
407 virtual void InterpolateDerivs(
const double vtkNotUsed(pcoords)[3],
double* vtkNotUsed(derivs)) {}
421 void operator=(
const vtkCell&) =
delete;
424 VTK_ABI_NAMESPACE_END
virtual void InterpolateDerivs(const double pcoords[3], double *derivs)
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() VTK_FUTURE_CONST
Non-linear cells require special treatment beyond the usual cell type and connectivity list informati...
abstract class to specify cell behavior
VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string &shape)
Get vtk cell type from conduit shape name throw a runtime_error on unsupported type.
virtual int IsExplicitCell() VTK_FUTURE_CONST
Explicit cells require additional representational information beyond the usual cell type and connect...
a simple class to control print indentation
list of point or cell ids
virtual int RequiresExplicitFaceRepresentation() VTK_FUTURE_CONST
Determine whether the cell requires explicit face representation, and methods for setting and getting...
abstract superclass for arrays of numeric data
virtual int RequiresInitialization()
Some cells require initialization prior to access.
#define VTK_SIZEHINT(...)
object to represent cell connectivity
vtkIdList * GetPointIds()
Return the list of point ids defining the cell.
virtual void Initialize()
represent and manipulate 3D points
Fast, simple class for representing and operating on 3D bounds.