tkeskita / BVtkNodes

Create and execute VTK pipelines in Blender Node Editor
GNU General Public License v3.0
111 stars 19 forks source link

vtkAlembicReader status #68

Open mwestphal opened 2 years ago

mwestphal commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

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

tkeskita commented 2 years ago

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.