87 #ifndef vtkQuadricClustering_h
88 #define vtkQuadricClustering_h
96 class vtkQuadricClusteringCellSet;
115 void SetNumberOfXDivisions(
int num);
116 void SetNumberOfYDivisions(
int num);
117 void SetNumberOfZDivisions(
int num);
118 vtkGetMacro(NumberOfXDivisions,
int);
119 vtkGetMacro(NumberOfYDivisions,
int);
120 vtkGetMacro(NumberOfZDivisions,
int);
122 { this->SetNumberOfDivisions(div[0], div[1], div[2]); }
123 void SetNumberOfDivisions(
int div0,
int div1,
int div2);
124 int *GetNumberOfDivisions();
125 void GetNumberOfDivisions(
int div[3]);
132 vtkSetMacro(AutoAdjustNumberOfDivisions,
int);
133 vtkGetMacro(AutoAdjustNumberOfDivisions,
int);
134 vtkBooleanMacro(AutoAdjustNumberOfDivisions,
int);
142 void SetDivisionOrigin(
double x,
double y,
double z);
144 {this->SetDivisionOrigin(o[0],o[1],o[2]);}
145 vtkGetVector3Macro(DivisionOrigin,
double);
146 void SetDivisionSpacing(
double x,
double y,
double z);
148 {this->SetDivisionSpacing(s[0],s[1],s[2]);}
149 vtkGetVector3Macro(DivisionSpacing,
double);
159 vtkSetMacro(UseInputPoints,
int);
160 vtkGetMacro(UseInputPoints,
int);
161 vtkBooleanMacro(UseInputPoints,
int);
169 vtkSetMacro(UseFeatureEdges,
int);
170 vtkGetMacro(UseFeatureEdges,
int);
171 vtkBooleanMacro(UseFeatureEdges,
int);
181 vtkSetMacro(UseFeaturePoints,
int);
182 vtkGetMacro(UseFeaturePoints,
int);
183 vtkBooleanMacro(UseFeaturePoints,
int);
189 vtkSetClampMacro(FeaturePointsAngle,
double, 0.0, 180.0);
190 vtkGetMacro(FeaturePointsAngle,
double);
198 vtkSetMacro(UseInternalTriangles,
int);
199 vtkGetMacro(UseInternalTriangles,
int);
200 vtkBooleanMacro(UseInternalTriangles,
int);
208 void StartAppend(
double *bounds);
209 void StartAppend(
double x0,
double x1,
double y0,
double y1,
double z0,
double z1)
210 {
double b[6]; b[0]=x0; b[1]=x1; b[2]=y0; b[3]=y1; b[4]=z0; b[5]=z1;
211 this->StartAppend(b);}
221 vtkSetMacro(CopyCellData,
int);
222 vtkGetMacro(CopyCellData,
int);
223 vtkBooleanMacro(CopyCellData,
int);
231 vtkSetMacro(PreventDuplicateCells,
int);
232 vtkGetMacro(PreventDuplicateCells,
int);
233 vtkBooleanMacro(PreventDuplicateCells,
int);
248 void ComputeRepresentativePoint(
double quadric[9],
vtkIdType binId,
259 void AddTriangle(
vtkIdType *binIds,
double *pt0,
double *pt1,
double *pt2,
269 void AddEdge(
vtkIdType *binIds,
double *pt0,
double *pt1,
int geometeryFlag,
278 void AddVertex(
vtkIdType binId,
double *pt,
int geometryFlag,
283 void InitializeQuadric(
double quadric[9]);
286 void AddQuadric(
vtkIdType binId,
double quadric[9]);
322 int NumberOfDivisions[3];
329 double DivisionOrigin[3];
330 double DivisionSpacing[3];
void SetDivisionOrigin(double o[3])
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtksys_stl::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
int ComputeNumberOfDivisions
vtkCellArray * OutputTriangleArray
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetNumberOfDivisions(int div[3])
vtkFeatureEdges * FeatureEdges
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
vtkQuadricClusteringCellSet * CellSet
double FeaturePointsAngle
Superclass for algorithms that produce only polydata as output.
int AutoAdjustNumberOfDivisions
a simple class to control print indentation
extract 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)
object to represent cell connectivity
vtkFeatureEdges * GetFeatureEdges()
vtkPoints * FeaturePoints
vtkIdType NumberOfBinsUsed
void SetDivisionSpacing(double s[3])
int PreventDuplicateCells
represent and manipulate 3D points
reduce the number of triangles in a mesh