BVtkNodes icon indicating copy to clipboard operation
BVtkNodes copied to clipboard

vtkAlembicReader status

Open mwestphal opened this issue 3 years ago • 4 comments

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

mwestphal avatar Dec 12 '21 13:12 mwestphal

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!

tkeskita avatar Dec 13 '21 16:12 tkeskita

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

thomgrand avatar Dec 15 '21 12:12 thomgrand

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

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

mwestphal avatar Dec 16 '21 16:12 mwestphal

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.

tkeskita avatar Dec 31 '21 07:12 tkeskita