29 #ifndef NEMOSYS_MERGECELLS_H_ 30 #define NEMOSYS_MERGECELLS_H_ 32 #include "nemosys_export.h" 36 #include <vtkObject.h> 37 #include <vtkDataSetAttributes.h> 38 #include <vtkUnstructuredGrid.h> 47 class mergeCellsSTLCloak;
58 void PrintSelf(ostream &os, vtkIndent indent) override;
62 vtkSetObjectMacro(UnstructuredGrid, vtkUnstructuredGrid);
63 vtkGetObjectMacro(UnstructuredGrid, vtkUnstructuredGrid);
65 vtkSetMacro(TotalNumberOfCells, vtkIdType);
66 vtkGetMacro(TotalNumberOfCells, vtkIdType);
68 vtkSetMacro(TotalNumberOfPoints, vtkIdType);
69 vtkGetMacro(TotalNumberOfPoints, vtkIdType);
71 vtkSetMacro(UseGlobalIds,
int);
72 vtkGetMacro(UseGlobalIds,
int);
74 vtkSetClampMacro(PointMergeTolerance,
float, 0.0f, VTK_FLOAT_MAX);
75 vtkGetMacro(PointMergeTolerance,
float);
77 vtkSetMacro(UseGlobalCellIds,
int);
78 vtkGetMacro(UseGlobalCellIds,
int);
80 vtkSetMacro(MergeDuplicatePoints,
int);
81 vtkGetMacro(MergeDuplicatePoints,
int);
82 vtkBooleanMacro(MergeDuplicatePoints,
int);
84 vtkSetMacro(TotalNumberOfDataSets,
int);
85 vtkGetMacro(TotalNumberOfDataSets,
int);
94 vtkSmartPointer<vtkIdTypeArray> MergeDataSet(vtkDataSet *set);
100 ~mergeCells() VTK_OVERRIDE;
103 void StartUGrid(vtkDataSet *set);
104 vtkIdTypeArray *MapPointsToIdsUsingGlobalIds(vtkDataSet *set);
105 vtkIdTypeArray *MapPointsToIdsUsingLocator(vtkDataSet *set);
106 vtkIdType AddNewCellsUnstructuredGrid(vtkDataSet *set, vtkIdTypeArray *idMap);
107 vtkIdType AddNewCellsDataSet(vtkDataSet *set, vtkIdTypeArray *idMap);
109 vtkIdType GlobalCellIdAccessGetId(vtkIdType idx);
110 int GlobalCellIdAccessStart(vtkDataSet *set);
111 vtkIdType GlobalNodeIdAccessGetId(vtkIdType idx);
112 int GlobalNodeIdAccessStart(vtkDataSet *set);
114 int TotalNumberOfDataSets;
116 vtkIdType TotalNumberOfCells;
117 vtkIdType TotalNumberOfPoints;
119 vtkIdType NumberOfCells;
120 vtkIdType NumberOfPoints;
123 int GlobalIdArrayType;
126 int UseGlobalCellIds;
127 int GlobalCellIdArrayType;
128 void *GlobalCellIdArray;
130 float PointMergeTolerance;
131 int MergeDuplicatePoints;
134 char InputIsPointSet;
136 mergeCellsSTLCloak *GlobalIdMap;
137 mergeCellsSTLCloak *GlobalCellIdMap;
139 vtkDataSetAttributes::FieldList *ptList;
140 vtkDataSetAttributes::FieldList *cellList;
142 vtkUnstructuredGrid *UnstructuredGrid;
146 mergeCells(const mergeCells &) = delete;
147 void operator=(const mergeCells &) = delete;
153 #endif // NEMOSYS_MERGECELLS_H_ geoMeshBase * New(MeshType meshType)
Create a new mesh object.