Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vtkAlembicReader status #68

Open
mwestphal opened this issue Dec 12, 2021 · 4 comments
Open

vtkAlembicReader status #68

mwestphal opened this issue Dec 12, 2021 · 4 comments

Comments

@mwestphal
Copy link

mwestphal commented Dec 12, 2021

In the code there is mentions of a potential vtkAlembicReader:
https://github.com/tkeskita/BVtkNodes/blob/master/__init__.py

 - Blender To VTK Node: A BVTK node which converts Blender mesh into
   vtkPolyData. Alternatively add vtkBlendReader to VTK?
   Or maybe vtkAlembicReader to VTK? https://www.alembic.io/

Was there any ongoing work on this ?

BTW F3D has a first version of a vtkAssimpImporter that would theoritcally allow to reader .blend in VTK:
https://github.com/f3d-app/f3d/blob/master/src/vtkF3DAssimpImporter.cxx

@tkeskita
Copy link
Owner

Hi,

it was just one idea, if I recall correctly nobody has done Blender To VTK exporter, not quite sure about @thomgrand? In principle it shouldn't be too hard to do surface mesh conversion routine, though.

You mean Assimp can read blend files? Good to know!

@thomgrand
Copy link

Hi,

I implemented a BlenderToVTK node on the (experimental) pyvista_features branch on this fork https://github.com/thomgrand/BVtkNodes. It allows direct integration into the BVTK node tree (either as PolyData or UnstructuredGrid). You can use the code as a guide for porting the feature here if you want:
https://github.com/thomgrand/BVtkNodes/blob/pyvista_features/custom_nodes/pynodes/pynodes.py#L610

image

@mwestphal
Copy link
Author

mwestphal commented Dec 16, 2021

You mean Assimp can read blend files? Good to know!

It can suposedly, but we do not enable it in F3D.

@tkeskita
Copy link
Owner

it was just one idea, if I recall correctly nobody has done Blender To VTK exporter

Correcting myself in case anyone finds this useful: I did this small Blender add-on called io_mesh_vtk which can export and import VTK polydata from/to Blender, but I haven't used it for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants