Skip to content

Commit

Permalink
Convert Alembic importer to reader (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored Oct 21, 2023
1 parent b40c3c4 commit 8eddb96
Show file tree
Hide file tree
Showing 12 changed files with 230 additions and 281 deletions.
2 changes: 1 addition & 1 deletion plugins/alembic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ f3d_plugin_declare_reader(
NAME Alembic
EXTENSIONS abc
MIMETYPES application/vnd.abc
VTK_IMPORTER vtkF3DAlembicImporter
VTK_READER vtkF3DAlembicReader
FORMAT_DESCRIPTION "Alembic"
)

Expand Down
2 changes: 1 addition & 1 deletion plugins/alembic/module/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(classes
vtkF3DAlembicImporter
vtkF3DAlembicReader
)

set(_no_install "")
Expand Down
2 changes: 1 addition & 1 deletion plugins/alembic/module/Testing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
list(APPEND VTKExtensionsPluginAlembic_list
TestF3DAlembicImporter.cxx
TestF3DAlembicReader.cxx
)

if(VTK_VERSION VERSION_LESS_EQUAL 9.1.0)
Expand Down
16 changes: 0 additions & 16 deletions plugins/alembic/module/Testing/TestF3DAlembicImporter.cxx

This file was deleted.

16 changes: 16 additions & 0 deletions plugins/alembic/module/Testing/TestF3DAlembicReader.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <vtkNew.h>
#include <vtkTestUtilities.h>

#include "vtkF3DAlembicReader.h"

#include <iostream>

int TestF3DAlembicReader(int vtkNotUsed(argc), char* argv[])
{
std::string filename = std::string(argv[1]) + "data/suzanne.abc";
vtkNew<vtkF3DAlembicReader> reader;
reader->SetFileName(filename);
reader->Update();
reader->Print(cout);
return reader->GetOutput() ? EXIT_SUCCESS : EXIT_FAILURE;
}
204 changes: 0 additions & 204 deletions plugins/alembic/module/vtkF3DAlembicImporter.cxx

This file was deleted.

52 changes: 0 additions & 52 deletions plugins/alembic/module/vtkF3DAlembicImporter.h

This file was deleted.

Loading

0 comments on commit 8eddb96

Please sign in to comment.