44 #ifndef __vtkMergeCells_h
45 #define __vtkMergeCells_h
47 #include "vtkFiltersGeneralModule.h"
48 #include "vtkObject.h"
49 #include "vtkDataSetAttributes.h"
52 class vtkUnstructuredGrid;
55 class vtkMergeCellsSTLCloak;
61 virtual void PrintSelf(ostream &os, vtkIndent indent);
69 virtual void SetUnstructuredGrid(vtkUnstructuredGrid*);
70 vtkGetObjectMacro(UnstructuredGrid, vtkUnstructuredGrid);
75 vtkSetMacro(TotalNumberOfCells, vtkIdType);
76 vtkGetMacro(TotalNumberOfCells, vtkIdType);
82 vtkSetMacro(TotalNumberOfPoints, vtkIdType);
83 vtkGetMacro(TotalNumberOfPoints, vtkIdType);
89 vtkSetMacro(UseGlobalIds,
int);
90 vtkGetMacro(UseGlobalIds,
int);
97 vtkSetClampMacro(PointMergeTolerance,
float, 0.0, VTK_FLOAT_MAX);
98 vtkGetMacro(PointMergeTolerance,
float);
103 vtkSetMacro(UseGlobalCellIds,
int);
104 vtkGetMacro(UseGlobalCellIds,
int);
110 vtkSetMacro(MergeDuplicatePoints,
int);
111 vtkGetMacro(MergeDuplicatePoints,
int);
112 vtkBooleanMacro(MergeDuplicatePoints,
int);
118 vtkSetMacro(TotalNumberOfDataSets,
int);
119 vtkGetMacro(TotalNumberOfDataSets,
int);
127 int MergeDataSet(vtkDataSet *set);
143 void StartUGrid(vtkDataSet *set);
144 vtkIdType *MapPointsToIdsUsingGlobalIds(vtkDataSet *set);
145 vtkIdType *MapPointsToIdsUsingLocator(vtkDataSet *set);
146 vtkIdType AddNewCellsUnstructuredGrid(vtkDataSet *set, vtkIdType *idMap);
147 vtkIdType AddNewCellsDataSet(vtkDataSet *set, vtkIdType *idMap);
149 vtkIdType GlobalCellIdAccessGetId(vtkIdType idx);
150 int GlobalCellIdAccessStart(vtkDataSet *set);
151 vtkIdType GlobalNodeIdAccessGetId(vtkIdType idx);
152 int GlobalNodeIdAccessStart(vtkDataSet *set);
154 int TotalNumberOfDataSets;
156 vtkIdType TotalNumberOfCells;
157 vtkIdType TotalNumberOfPoints;
159 vtkIdType NumberOfCells;
160 vtkIdType NumberOfPoints;
163 int GlobalIdArrayType;
166 int UseGlobalCellIds;
167 int GlobalCellIdArrayType;
168 void* GlobalCellIdArray;
170 float PointMergeTolerance;
171 int MergeDuplicatePoints;
174 char InputIsPointSet;
176 vtkMergeCellsSTLCloak *GlobalIdMap;
177 vtkMergeCellsSTLCloak *GlobalCellIdMap;
180 vtkDataSetAttributes::FieldList *ptList;
181 vtkDataSetAttributes::FieldList *cellList;
184 vtkUnstructuredGrid *UnstructuredGrid;
merges any number of vtkDataSets back into a single vtkUnstructuredGrid