37 #ifndef vtkPolyhedron_h
38 #define vtkPolyhedron_h
51 class vtkIdToIdVectorMapType;
52 class vtkIdToIdMapType;
71 virtual void GetEdgePoints(
int vtkNotUsed(edgeId),
int* &vtkNotUsed(pts)) {}
72 virtual void GetFacePoints(
int vtkNotUsed(faceId),
int* &vtkNotUsed(pts)) {}
130 int& subId,
double pcoords[3],
131 double& dist2,
double *weights);
147 double x[3],
double pcoords[3],
int& subId);
171 virtual void Derivatives(
int subId,
double pcoords[3],
double *values,
172 int dim,
double *derivs);
211 int IsInside(
double x[3],
double tolerance);
248 void GenerateFaces();
252 void ComputeBounds();
253 void ComputeParametricCoordinate(
double x[3],
double pc[3]);
254 void ComputePositionFromParametricCoordinate(
double pc[3],
double x[3]);
261 void ConstructPolyData();
264 void ConstructLocator();
270 int InternalContour(
double value,
278 vtkIdToIdVectorMapType & faceToPointsMap,
279 vtkIdToIdVectorMapType & pointToFacesMap,
280 vtkIdToIdMapType & pointIdMap);
286 int IntersectWithContour(
double value,
296 vtkInternal * Internal;
303 pcoords[0] = pcoords[1] = pcoords[2] = 0.5;
vtkCellLocator * CellLocator
represent and manipulate point attribute data
virtual int GetNumberOfFaces()=0
quickly locate points in 3-space
vtkIdTypeArray * GlobalFaces
virtual int GetCellType()
virtual void InterpolateFunctions(double vtkNotUsed(pcoords)[3], double *vtkNotUsed(weight))
virtual double * GetParametricCoords()
represent and manipulate cell attribute data
Abstract class in support of both point location and point insertion.
virtual int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)=0
virtual void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)=0
virtual void GetFacePoints(int vtkNotUsed(faceId), int *&vtkNotUsed(pts))
virtual int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)=0
virtual void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
a cell that represents a 2D quadrilateral
dynamic, self-adjusting array of vtkIdType
concrete dataset represents vertices, lines, polygons, and triangle strips
provides thread-safe access to cells
abstract class to specify 3D cell interface
keep track of edges (edge is pair of integer id's)
a 3D cell that represents a tetrahedron
virtual void SetFaces(vtkIdType *vtkNotUsed(faces))
cell represents a 1D line
abstract class to specify cell behavior
octree-based spatial search object to quickly locate cells
virtual void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd)
vtkPointIdMap * PointIdMap
a simple class to control print indentation
vtkIdTypeArray * PolyConnectivity
list of point or cell ids
virtual void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)=0
abstract superclass for arrays of numeric data
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)=0
void PrintSelf(ostream &os, vtkIndent indent)
a cell that represents an n-sided polygon
virtual void InterpolateDerivs(double vtkNotUsed(pcoords)[3], double *vtkNotUsed(derivs))
virtual vtkCell * GetFace(int faceId)=0
virtual int GetNumberOfEdges()=0
object to represent cell connectivity
virtual vtkCell * GetEdge(int edgeId)=0
virtual int RequiresExplicitFaceRepresentation()
a cell that represents a triangle
virtual void GetEdgePoints(int vtkNotUsed(edgeId), int *&vtkNotUsed(pts))
virtual int RequiresInitialization()
virtual int GetParametricCenter(double pcoords[3])
a 3D cell defined by a set of polygonal faces
virtual vtkIdType * GetFaces()
virtual int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)=0
virtual void Initialize()
virtual int GetParametricCenter(double pcoords[3])
vtkIdTypeArray * FaceLocations
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points