Go to the documentation of this file.
69 #ifndef vtkGreedyTerrainDecimation_h
70 #define vtkGreedyTerrainDecimation_h
83 class vtkGreedyTerrainDecimationTerrainInfoType;
84 class vtkGreedyTerrainDecimationPointInfoType;
86 #define VTK_ERROR_NUMBER_OF_TRIANGLES 0
87 #define VTK_ERROR_SPECIFIED_REDUCTION 1
88 #define VTK_ERROR_ABSOLUTE 2
89 #define VTK_ERROR_RELATIVE 3
225 int InCircle (
double x[3],
double x1[3],
double x2[3],
double x3[3]);
236 int* &min,
int* &
max,
int* &midL,
int* &midR,
237 int* &mid,
int mid2[2],
double h[3],
double &hMin,
double &hMax,
238 double &hL,
double &hR);
int CharacterizeTriangle(int ij1[2], int ij2[2], int ij[3], int *&min, int *&max, int *&midL, int *&midR, int *&mid, int mid2[2], double h[3], double &hMin, double &hMax, double &hL, double &hR)
vtkGreedyTerrainDecimationPointInfoType * PointInfo
void GetPoint(vtkIdType id, double x[3])
void SetErrorMeasureToNumberOfTriangles()
vtkIdType NumberOfTriangles
GLfloat GLfloat GLfloat GLfloat h
int BoundaryVertexDeletion
void GetTerrainPoint(int i, int j, double x[3])
represent and manipulate point attribute data
dynamic, self-adjusting array of float
void UpdateTriangle(vtkIdType triId, int ij1[2], int ij2[2], int ij3[2], double h[4])
void UpdateTriangles(vtkIdType meshPtId)
vtkIdType AddPointToTriangulation(vtkIdType inputPtId)
#define vtkTypeMacro(thisClass, superclass)
a list of ids arranged in priority order
vtkGreedyTerrainDecimation()
GLint GLint GLint GLint GLint x
void InsertBoundaryVertices()
#define VTK_ERROR_ABSOLUTE
abstract superclass for arrays of numeric data
void SetErrorMeasureToAbsoluteError()
vtkIdType MaximumNumberOfTriangles
vtkIdType InsertNextPoint(vtkIdType inputPtId, double x[3])
void ComputePointNormal(int i, int j, float n[3])
void EstimateOutputSize(const vtkIdType numInputPts, vtkIdType &numPts, vtkIdType &numTris)
void ComputeImageCoordinates(vtkIdType inputPtId, int ij[2])
GLint GLint GLsizei GLsizei GLsizei depth
#define vtkSetClampMacro(name, type, min, max)
reduce height field (represented as image) to reduced TIN
#define VTKFILTERSHYBRID_EXPORT
double * GetPoint(vtkIdType id)
virtual int FillInputPortInformation(int port, vtkInformation *info)
void UpdateTriangle(vtkIdType triId, vtkIdType p1, vtkIdType p2, vtkIdType p3)
vtkPriorityQueue * TerrainError
a simple class to control print indentation
list of point or cell ids
int InCircle(double x[3], double x1[3], double x2[3], double x3[3])
void PrintSelf(ostream &os, vtkIndent indent)
vtkGreedyTerrainDecimationTerrainInfoType * TerrainInfo
#define vtkGetMacro(name, type)
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro(IgnoreDriverBugs, bool)
void CheckEdge(vtkIdType ptId, double x[3], vtkIdType p1, vtkIdType p2, vtkIdType tri, int depth)
void SetErrorMeasureToSpecifiedReduction()
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetErrorMeasureToRelativeError()
dynamic, self-adjusting array of double
#define VTK_ERROR_NUMBER_OF_TRIANGLES
vtkIdType FindTriangle(double x[3], vtkIdType ptIds[3], vtkIdType tri, double tol, vtkIdType nei[3], vtkIdList *neighbors, int &status)
#define VTK_ERROR_RELATIVE
~vtkGreedyTerrainDecimation()
virtual int SatisfiesErrorMeasure(double error)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for algorithms that produce only polydata as output.
static vtkGreedyTerrainDecimation * New()
#define VTK_ERROR_SPECIFIED_REDUCTION