 |
VTK
9.1.0
|
Go to the documentation of this file.
86 #ifndef vtkGreedyTerrainDecimation_h
87 #define vtkGreedyTerrainDecimation_h
89 #include "vtkFiltersHybridModule.h"
100 class vtkGreedyTerrainDecimationTerrainInfoType;
101 class vtkGreedyTerrainDecimationPointInfoType;
103 #define VTK_ERROR_NUMBER_OF_TRIANGLES 0
104 #define VTK_ERROR_SPECIFIED_REDUCTION 1
105 #define VTK_ERROR_ABSOLUTE 2
106 #define VTK_ERROR_RELATIVE 3
127 vtkGetMacro(ErrorMeasure,
int);
157 vtkSetClampMacro(Reduction,
double, 0.0, 1.0);
158 vtkGetMacro(Reduction,
double);
168 vtkGetMacro(AbsoluteError,
double);
179 vtkGetMacro(RelativeError,
double);
258 int InCircle(
double x[3],
double x1[3],
double x2[3],
double x3[3]);
268 int*& midR,
int*& mid,
int mid2[2],
double h[3],
double& hMin,
double& hMax,
double& hL,
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)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGreedyTerrainDecimationPointInfoType * PointInfo
void GetPoint(vtkIdType id, double x[3])
void SetErrorMeasureToNumberOfTriangles()
Specify how to terminate the algorithm: either as an absolute number of triangles,...
vtkIdType NumberOfTriangles
void GetTerrainPoint(int i, int j, double x[3])
represent and manipulate point attribute data
dynamic, self-adjusting array of float
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void UpdateTriangle(vtkIdType triId, int ij1[2], int ij2[2], int ij3[2], double h[4])
void UpdateTriangles(vtkIdType meshPtId)
vtkIdType AddPointToTriangulation(vtkIdType inputPtId)
a list of ids arranged in priority order
vtkGreedyTerrainDecimation()
void InsertBoundaryVertices()
#define VTK_ERROR_ABSOLUTE
abstract superclass for arrays of numeric data
void SetErrorMeasureToAbsoluteError()
Specify how to terminate the algorithm: either as an absolute number of triangles,...
vtkIdType MaximumNumberOfTriangles
vtkTypeBool BoundaryVertexDeletion
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])
reduce height field (represented as image) to reduced TIN
double * GetPoint(vtkIdType id)
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])
vtkGreedyTerrainDecimationTerrainInfoType * TerrainInfo
vtkTypeBool ComputeNormals
void CheckEdge(vtkIdType ptId, double x[3], vtkIdType p1, vtkIdType p2, vtkIdType tri, int depth)
void SetErrorMeasureToSpecifiedReduction()
Specify how to terminate the algorithm: either as an absolute number of triangles,...
concrete dataset represents vertices, lines, polygons, and triangle strips
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetErrorMeasureToRelativeError()
Specify how to terminate the algorithm: either as an absolute number of triangles,...
~vtkGreedyTerrainDecimation() override
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
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
virtual int SatisfiesErrorMeasure(double error)
Superclass for algorithms that produce only polydata as output.
static vtkGreedyTerrainDecimation * New()
Instantiate the class.
#define VTK_ERROR_SPECIFIED_REDUCTION