81 #ifndef vtkQuadricClustering_h
82 #define vtkQuadricClustering_h
84 #include "vtkFiltersCoreModule.h"
87 VTK_ABI_NAMESPACE_BEGIN
91 class vtkQuadricClusteringCellSet;
113 void SetNumberOfXDivisions(
int num);
114 void SetNumberOfYDivisions(
int num);
115 void SetNumberOfZDivisions(
int num);
116 vtkGetMacro(NumberOfXDivisions,
int);
117 vtkGetMacro(NumberOfYDivisions,
int);
118 vtkGetMacro(NumberOfZDivisions,
int);
120 void SetNumberOfDivisions(
int div0,
int div1,
int div2);
122 void GetNumberOfDivisions(
int div[3]);
131 vtkSetMacro(AutoAdjustNumberOfDivisions,
vtkTypeBool);
132 vtkGetMacro(AutoAdjustNumberOfDivisions, vtkTypeBool);
133 vtkBooleanMacro(AutoAdjustNumberOfDivisions, vtkTypeBool);
143 void SetDivisionOrigin(
double x,
double y,
double z);
145 vtkGetVector3Macro(DivisionOrigin,
double);
146 void SetDivisionSpacing(
double x,
double y,
double z);
148 vtkGetVector3Macro(DivisionSpacing,
double);
196 vtkSetClampMacro(FeaturePointsAngle,
double, 0.0, 180.0);
197 vtkGetMacro(FeaturePointsAngle,
double);
209 vtkBooleanMacro(UseInternalTriangles,
vtkTypeBool);
219 void StartAppend(
double* bounds);
220 void StartAppend(
double x0,
double x1,
double y0,
double y1,
double z0,
double z1)
229 this->StartAppend(b);
256 vtkBooleanMacro(PreventDuplicateCells,
vtkTypeBool);
274 void ComputeRepresentativePoint(
double quadric[9],
vtkIdType binId,
double point[3]);
285 void AddTriangle(
vtkIdType* binIds,
double* pt0,
double* pt1,
double* pt2,
int geometeryFlag,
296 void AddEdge(
vtkIdType* binIds,
double* pt0,
double* pt1,
int geometeryFlag,
vtkPolyData* input,
314 void InitializeQuadric(
double quadric[9]);
319 void AddQuadric(
vtkIdType binId,
double quadric[9]);
361 int NumberOfDivisions[3];
368 double DivisionOrigin[3];
369 double DivisionSpacing[3];
418 VTK_ABI_NAMESPACE_END
void SetDivisionOrigin(double o[3])
This is an alternative way to set up the bins.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkCellArray * OutputTriangleArray
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetNumberOfDivisions(int div[3])
Set/Get the number of divisions along each axis for the spatial bins.
vtkFeatureEdges * FeatureEdges
vtkTypeBool ComputeNumberOfDivisions
static vtkPolyDataAlgorithm * New()
vtkTypeBool UseFeatureEdges
vtkQuadricClusteringCellSet * CellSet
double FeaturePointsAngle
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
PointQuadric * QuadricArray
vtkCellArray * OutputLines
void StartAppend(double x0, double x1, double y0, double y1, double z0, double z1)
These methods provide an alternative way of executing the filter.
vtkTypeBool PreventDuplicateCells
#define VTK_SIZEHINT(...)
vtkTypeBool AutoAdjustNumberOfDivisions
vtkTypeBool UseInternalTriangles
object to represent cell connectivity
vtkFeatureEdges * GetFeatureEdges()
By default, this flag is off.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTypeBool UseFeaturePoints
vtkTypeBool UseInputPoints
This method will rep[lace the quadric generated points with the input points with the lowest error...
vtkPoints * FeaturePoints
vtkIdType NumberOfBinsUsed
void SetDivisionSpacing(double s[3])
This is an alternative way to set up the bins.
represent and manipulate 3D points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
reduce the number of triangles in a mesh
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)