00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00060 #ifndef __vtkTriangleStrip_h
00061 #define __vtkTriangleStrip_h
00062
00063 #include "vtkCell.h"
00064 #include "vtkLine.h"
00065 #include "vtkTriangle.h"
00066
00067 class VTK_COMMON_EXPORT vtkTriangleStrip : public vtkCell
00068 {
00069 public:
00070 static vtkTriangleStrip *New();
00071 vtkTypeMacro(vtkTriangleStrip,vtkCell);
00072
00074
00075 vtkCell *MakeObject();
00076 int GetCellType() {return VTK_TRIANGLE_STRIP;};
00077 int GetCellDimension() {return 2;};
00078 int GetNumberOfEdges() {return this->GetNumberOfPoints();};
00079 int GetNumberOfFaces() {return 0;};
00080 vtkCell *GetEdge(int edgeId);
00081 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00082 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00083 void Contour(float value, vtkDataArray *cellScalars,
00084 vtkPointLocator *locator, vtkCellArray *verts,
00085 vtkCellArray *lines, vtkCellArray *polys,
00086 vtkPointData *inPd, vtkPointData *outPd,
00087 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00088 void Clip(float value, vtkDataArray *cellScalars,
00089 vtkPointLocator *locator, vtkCellArray *polys,
00090 vtkPointData *inPd, vtkPointData *outPd,
00091 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00092 int insideOut);
00094
00095 int EvaluatePosition(float x[3], float* closestPoint,
00096 int& subId, float pcoords[3],
00097 float& dist2, float *weights);
00098 void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00099 float *weights);
00100 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00101 float x[3], float pcoords[3], int& subId);
00102 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00103 void Derivatives(int subId, float pcoords[3], float *values,
00104 int dim, float *derivs);
00105
00107 int GetParametricCenter(float pcoords[3]);
00108
00112 static void DecomposeStrip(int npts, vtkIdType *pts, vtkCellArray *tris);
00113
00114
00115 protected:
00116 vtkTriangleStrip();
00117 ~vtkTriangleStrip();
00118
00119 vtkLine *Line;
00120 vtkTriangle *Triangle;
00121
00122 private:
00123 vtkTriangleStrip(const vtkTriangleStrip&);
00124 void operator=(const vtkTriangleStrip&);
00125 };
00126
00127 #endif
00128
00129