86#ifndef vtkDecimatePro_h
87#define vtkDecimatePro_h
89#include "vtkFiltersCoreModule.h"
123 vtkSetClampMacro(TargetReduction,
double,0.0,1.0);
124 vtkGetMacro(TargetReduction,
double);
134 vtkGetMacro(PreserveTopology,
int);
144 vtkSetClampMacro(FeatureAngle,
double,0.0,180.0);
145 vtkGetMacro(FeatureAngle,
double);
156 vtkGetMacro(Splitting,
int);
166 vtkSetClampMacro(SplitAngle,
double,0.0,180.0);
167 vtkGetMacro(SplitAngle,
double);
180 vtkGetMacro(PreSplitMesh,
int);
192 vtkGetMacro(MaximumError,
double);
205 vtkGetMacro(AccumulateError,
int);
216 vtkGetMacro(ErrorIsAbsolute,
int);
224 vtkGetMacro(AbsoluteError,
double);
233 vtkGetMacro(BoundaryVertexDeletion,
int);
245 vtkGetMacro(Degree,
int);
255 vtkGetMacro(InflectionPointRatio,
double);
292 vtkGetMacro(OutputPointsPrecision,
int);
301 double TargetReduction;
304 double AbsoluteError;
310 int BoundaryVertexDeletion;
311 int PreserveTopology;
313 double InflectionPointRatio;
315 int OutputPointsPrecision;
322 int EvaluateVertex(
vtkIdType ptId,
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;
void InsertNextTriangle(LocalTri &t)
LocalTri & GetTriangle(vtkIdType i)
TriArray(const vtkIdType sz)
vtkIdType GetNumberOfTriangles()
VertexArray(const vtkIdType sz)
LocalVertex & GetVertex(vtkIdType i)
vtkIdType GetNumberOfVertices()
void InsertNextVertex(LocalVertex &v)
reduce the number of triangles in a mesh
void GetInflectionPoints(double *inflectionPoints)
Get a list of inflection points.
~vtkDecimatePro() override
LocalVertex * LocalVertexPtr
static vtkDecimatePro * New()
Create object with specified reduction of 90% and feature angle of 15 degrees.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType GetNumberOfInflectionPoints()
Get the number of inflection points.
double * GetInflectionPoints()
Get a list of inflection points.
dynamic, self-adjusting array of double
list of point or cell ids
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
a list of ids arranged in priority order
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.