35 #ifndef vtkPolyhedron_h
36 #define vtkPolyhedron_h
39 #include "vtkCommonDataModelModule.h"
49 class vtkIdToIdVectorMapType;
50 class vtkIdToIdMapType;
76 vtkWarningMacro(<<
"vtkPolyhedron::GetEdgePoints Not Implemented");
79 VTK_LEGACY(
void GetEdgePoints(
int vtkNotUsed(edgeId),
int*& vtkNotUsed(pts))
override {
80 vtkWarningMacro(<<
"vtkPolyhedron::GetEdgePoints Not Implemented. "
81 <<
"Also note that this signature is deprecated. "
82 <<
"Please use GetEdgePoints(vtkIdType, const vtkIdType*& instead");
86 vtkWarningMacro(<<
"vtkPolyhedron::GetFacePoints Not Implemented");
90 VTK_LEGACY(
void GetFacePoints(
int vtkNotUsed(faceId),
int*& vtkNotUsed(pts))
override {
91 vtkWarningMacro(<<
"vtkPolyhedron::GetFacePoints Not Implemented. "
92 <<
"Also note that this signature is deprecated. "
93 <<
"Please use GetFacePoints(vtkIdType, const vtkIdType*& instead");
98 vtkWarningMacro(<<
"vtkPolyhedron::GetEdgeToAdjacentFaces Not Implemented");
103 vtkWarningMacro(<<
"vtkPolyhedron::GetFaceToAdjacentFaces Not Implemented");
109 vtkWarningMacro(<<
"vtkPolyhedron::GetPointToIncidentEdges Not Implemented");
115 vtkWarningMacro(<<
"vtkPolyhedron::GetPointToIncidentFaces Not Implemented");
121 vtkWarningMacro(<<
"vtkPolyhedron::GetPointToOneRingPoints Not Implemented");
126 vtkWarningMacro(<<
"vtkPolyhedron::GetCentroid Not Implemented");
187 int EvaluatePosition(
const double x[3],
double closestPoint[3],
int& subId,
double pcoords[3],
188 double& dist2,
double weights[])
override;
194 void EvaluateLocation(
int& subId,
const double pcoords[3],
double x[3],
double* weights)
override;
202 int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
double x[3],
203 double pcoords[3],
int& subId)
override;
230 int subId,
const double pcoords[3],
const double* values,
int dim,
double* derivs)
override;
355 pcoords[0] = pcoords[1] = pcoords[2] = 0.5;
abstract class to specify 3D cell interface
virtual vtkIdType GetFacePoints(vtkIdType faceId, const vtkIdType *&pts)=0
Get the list of vertices that define a face.
virtual void GetEdgePoints(vtkIdType edgeId, const vtkIdType *&pts)=0
Get the pair of vertices that define an edge.
object to represent cell connectivity
represent and manipulate cell attribute data
octree-based spatial search object to quickly locate cells
abstract class to specify cell behavior
virtual int GetParametricCenter(double pcoords[3])
Return center of the cell in parametric coordinates.
abstract superclass for arrays of numeric data
keep track of edges (edge is pair of integer id's)
provides thread-safe access to cells
list of point or cell ids
dynamic, self-adjusting array of vtkIdType
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
cell represents a 1D line
represent and manipulate point attribute data
quickly locate points in 3-space
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips
a cell that represents an n-sided polygon
a 3D cell defined by a set of polygonal faces
vtkIdType GetFacePoints(vtkIdType vtkNotUsed(faceId), const vtkIdType *&vtkNotUsed(pts)) override
vtkPointIdMap * PointIdMap
int RequiresExplicitFaceRepresentation() override
Methods supporting the definition of faces.
vtkPolyData * GetPolyData()
Construct polydata if no one exist, then return this->PolyData.
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts) override
Use vtkOrderedTriangulator to tetrahedralize the polyhedron mesh.
int GetNumberOfFaces() override
Return the number of faces in the cell.
void SetFaces(vtkIdType *faces) override
int EvaluatePosition(const double x[3], double closestPoint[3], int &subId, double pcoords[3], double &dist2, double weights[]) override
Satisfy the vtkCell API.
int IntersectWithLine(const double p1[3], const double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId) override
Intersect the line (p1,p2) with a given tolerance tol to determine a point of intersection x[3] with ...
~vtkPolyhedron() override
vtkIdType GetPointToIncidentEdges(vtkIdType vtkNotUsed(pointId), const vtkIdType *&vtkNotUsed(edgeIds)) override
void ComputeParametricCoordinate(const double x[3], double pc[3])
void GetEdgeToAdjacentFaces(vtkIdType vtkNotUsed(edgeId), const vtkIdType *&vtkNotUsed(pts)) override
vtkIdType GetPointToOneRingPoints(vtkIdType vtkNotUsed(pointId), const vtkIdType *&vtkNotUsed(pts)) override
vtkIdType GetFaceToAdjacentFaces(vtkIdType vtkNotUsed(faceId), const vtkIdType *&vtkNotUsed(faceIds)) override
vtkIdType GetPointToIncidentFaces(vtkIdType vtkNotUsed(pointId), const vtkIdType *&vtkNotUsed(faceIds)) override
void GetEdgePoints(vtkIdType vtkNotUsed(edgeId), const vtkIdType *&vtkNotUsed(pts)) override
See vtkCell3D API for description of these methods.
void EvaluateLocation(int &subId, const double pcoords[3], double x[3], double *weights) override
The inverse of EvaluatePosition.
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
static vtkPolyhedron * New()
Standard new methods.
void InterpolateFunctions(const double x[3], double *sf) override
Compute the interpolation functions/derivatives (aka shape functions/derivatives).
vtkCellLocator * CellLocator
void Contour(double value, vtkDataArray *scalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd) override
Satisfy the vtkCell API.
int IsInside(const double x[3], double tolerance)
A method particular to vtkPolyhedron.
vtkIdTypeArray * EdgeFaces
int GetParametricCenter(double pcoords[3]) override
Return the center of the cell in parametric coordinates.
vtkIdTypeArray * GlobalFaces
void InterpolateDerivs(const double x[3], double *derivs) override
bool IsConvex()
Determine whether or not a polyhedron is convex.
int GetNumberOfEdges() override
A polyhedron is represented internally by a set of polygonal faces.
vtkCell * GetEdge(int) override
Return the edge cell from the edgeId of the cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetParametricCoords() override
See vtkCell3D API for description of this method.
int IsPrimaryCell() override
A polyhedron is a full-fledged primary cell.
void Derivatives(int subId, const double pcoords[3], const double *values, int dim, double *derivs) override
Computes derivatives at the point specified by the parameter coordinate.
bool GetCentroid(double vtkNotUsed(centroid)[3]) const override
int RequiresInitialization() override
This cell requires that it be initialized prior to access.
void ComputePositionFromParametricCoordinate(const double pc[3], double x[3])
vtkIdType * GetFaces() override
int GetCellType() override
See the vtkCell API for descriptions of these methods.
int CellBoundary(int subId, const double pcoords[3], vtkIdList *pts) override
Find the boundary face closest to the point defined by the pcoords[3] and subId of the cell (subId ca...
vtkIdTypeArray * FaceLocations
void Clip(double value, vtkDataArray *scalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut) override
Satisfy the vtkCell API.
void Initialize() override
a cell that represents a 2D quadrilateral
a 3D cell that represents a tetrahedron
a cell that represents a triangle