/usr/include/vtk-6.3/vtkCell3D.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCell3D.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkCell3D - abstract class to specify 3D cell interface
// .SECTION Description
// vtkCell3D is an abstract class that extends the interfaces for 3D data
// cells, and implements methods needed to satisfy the vtkCell API. The
// 3D cells include hexehedra, tetrahedra, wedge, pyramid, and voxel.
// .SECTION See Also
// vtkTetra vtkHexahedron vtkVoxel vtkWedge vtkPyramid
#ifndef vtkCell3D_h
#define vtkCell3D_h
#include "vtkCommonDataModelModule.h" // For export macro
#include "vtkCell.h"
class vtkOrderedTriangulator;
class vtkTetra;
class vtkCellArray;
class vtkDoubleArray;
class VTKCOMMONDATAMODEL_EXPORT vtkCell3D : public vtkCell
{
public:
vtkTypeMacro(vtkCell3D,vtkCell);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Get the pair of vertices that define an edge. The method returns the
// number of vertices, along with an array of vertices. Note that the
// vertices are 0-offset; that is, they refer to the ids of the cell, not
// the point ids of the mesh that the cell belongs to. The edgeId must
// range between 0<=edgeId<this->GetNumberOfEdges().
virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
// Description:
// Get the list of vertices that define a face. The list is terminated
// with a negative number. Note that the vertices are 0-offset; that is,
// they refer to the ids of the cell, not the point ids of the mesh that
// the cell belongs to. The faceId must range between
// 0<=faceId<this->GetNumberOfFaces().
virtual void GetFacePoints(int faceId, int* &pts) = 0;
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);
// Description:
// Cut (or clip) the cell based on the input cellScalars and the specified
// value. The output of the clip operation will be one or more cells of the
// same topological dimension as the original cell. The flag insideOut
// controls what part of the cell is considered inside - normally cell
// points whose scalar value is greater than "value" are considered
// inside. If insideOut is on, this is reversed. Also, if the output cell
// data is non-NULL, the cell data from the clipped cell is passed to the
// generated contouring primitives. (Note: the CopyAllocate() method must
// be invoked on both the output cell and point data. The cellId refers to
// the cell from which the cell data is copied.) (Satisfies vtkCell API.)
virtual void Clip(double value, vtkDataArray *cellScalars,
vtkIncrementalPointLocator *locator, vtkCellArray *connectivity,
vtkPointData *inPd, vtkPointData *outPd,
vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
int insideOut);
// Description:
// The topological dimension of the cell. (Satisfies vtkCell API.)
virtual int GetCellDimension() {return 3;}
// Description:
// Set the tolerance for merging clip intersection points that are near
// the vertices of cells. This tolerance is used to prevent the generation
// of degenerate tetrahedra during clipping.
vtkSetClampMacro(MergeTolerance,double,0.0001,0.25);
vtkGetMacro(MergeTolerance,double);
protected:
vtkCell3D();
~vtkCell3D();
vtkOrderedTriangulator *Triangulator;
double MergeTolerance;
//used to support clipping
vtkTetra *ClipTetra;
vtkDoubleArray *ClipScalars;
private:
vtkCell3D(const vtkCell3D&); // Not implemented.
void operator=(const vtkCell3D&); // Not implemented.
};
#endif
|