86 #ifndef vtkDecimatePro_h 87 #define vtkDecimatePro_h 89 #include "vtkFiltersCoreModule.h" 123 vtkSetClampMacro(TargetReduction,
double,0.0,1.0);
124 vtkGetMacro(TargetReduction,
double);
144 vtkSetClampMacro(FeatureAngle,
double,0.0,180.0);
145 vtkGetMacro(FeatureAngle,
double);
166 vtkSetClampMacro(SplitAngle,
double,0.0,180.0);
167 vtkGetMacro(SplitAngle,
double);
192 vtkGetMacro(MaximumError,
double);
215 vtkSetMacro(ErrorIsAbsolute,
int);
216 vtkGetMacro(ErrorIsAbsolute,
int);
224 vtkGetMacro(AbsoluteError,
double);
234 vtkBooleanMacro(BoundaryVertexDeletion,
vtkTypeBool);
245 vtkGetMacro(Degree,
int);
254 vtkSetClampMacro(InflectionPointRatio,
double,1.001,
VTK_DOUBLE_MAX);
255 vtkGetMacro(InflectionPointRatio,
double);
274 void GetInflectionPoints(
double *inflectionPoints);
283 double *GetInflectionPoints();
291 vtkSetMacro(OutputPointsPrecision,
int);
292 vtkGetMacro(OutputPointsPrecision,
int);
322 int EvaluateVertex(
vtkIdType ptId,
unsigned short int numTris,
326 int IsValidSplit(
int index);
329 void SplitVertex(
vtkIdType ptId,
int type,
unsigned short int numTris,
333 void DistributeError(
double error);
363 {this->MaxId = -1; this->Array =
new LocalVertex[sz];};
366 delete [] this->Array;
370 {this->MaxId++; this->Array[this->MaxId] = v;};
383 {this->MaxId = -1; this->Array =
new LocalTri[sz];};
386 delete [] this->Array;
390 {this->MaxId++; this->Array[this->MaxId] = t;};
401 void Insert(
vtkIdType id,
double error= -1.0);
402 int Pop(
double &error);
425 double TheSplitAngle;
vtkTypeBool AccumulateError
vtkTypeBool BoundaryVertexDeletion
LocalTri & GetTriangle(vtkIdType i)
void InsertNextTriangle(LocalTri &t)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of double
a list of ids arranged in priority order
LocalVertex * LocalVertexPtr
static vtkPolyDataAlgorithm * New()
LocalVertex & GetVertex(vtkIdType i)
TriArray(const vtkIdType sz)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
list of point or cell ids
void InsertNextVertex(LocalVertex &v)
double InflectionPointRatio
vtkTypeBool PreserveTopology
VertexArray(const vtkIdType sz)
vtkDoubleArray * InflectionPoints
int OutputPointsPrecision
reduce the number of triangles in a mesh
vtkIdType GetNumberOfVertices()
vtkIdType GetNumberOfTriangles()
vtkPriorityQueue * EdgeLengths
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.