Commit 08dae251 authored by Timothee Chabat's avatar Timothee Chabat
Browse files

WIP Mulitblock support for Gmsh Writer

 - Topology is exporting correctly
parent 93e89f4a
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<Group name="sources"/> <Group name="sources"/>
<Group name="filters"/> <Group name="filters"/>
</ProxyGroupDomain> </ProxyGroupDomain>
<DataTypeDomain name="input_type" composite_data_supported="0"> <DataTypeDomain name="input_type" composite_data_supported="1">
<DataType value="vtkUnstructuredGrid"/> <DataType value="vtkUnstructuredGrid"/>
</DataTypeDomain> </DataTypeDomain>
</InputProperty> </InputProperty>
......
This diff is collapsed.
This diff is collapsed.
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
struct GmshWriterInternal; struct GmshWriterInternal;
class vtkUnstructuredGrid; class vtkUnstructuredGrid;
class vtkDataSetAttributes; class vtkDataSetAttributes;
class vtkDataObject;
class VTKGMSHIO_EXPORT vtkGmshWriter : public vtkWriter class VTKGMSHIO_EXPORT vtkGmshWriter : public vtkWriter
{ {
...@@ -62,14 +63,6 @@ public: ...@@ -62,14 +63,6 @@ public:
vtkGetMacro(WriteAllTimeSteps, bool); vtkGetMacro(WriteAllTimeSteps, bool);
//@} //@}
//@{
/**
* Get the input of this writer as an unstructured grid.
*/
vtkUnstructuredGrid* GetInput();
vtkUnstructuredGrid* GetInput(int port);
//@}
protected: protected:
vtkGmshWriter(); vtkGmshWriter();
~vtkGmshWriter() override; ~vtkGmshWriter() override;
...@@ -93,7 +86,12 @@ private: ...@@ -93,7 +86,12 @@ private:
void LoadCellData(); void LoadCellData();
void LoadData(vtkDataSetAttributes* data, const char* type); void LoadData(vtkDataSetAttributes* data, const char* type);
int LoadGridIntoPhysicalGroup(vtkUnstructuredGrid* input, std::string name, int dim = -1);
int LoadGridData(vtkUnstructuredGrid* input);
int InitViews(vtkUnstructuredGrid* input);
GmshWriterInternal* Internal; GmshWriterInternal* Internal;
vtkDataObject* OriginalInput;
vtkGmshWriter(const vtkGmshWriter&) = delete; vtkGmshWriter(const vtkGmshWriter&) = delete;
void operator=(const vtkGmshWriter&) = delete; void operator=(const vtkGmshWriter&) = delete;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment