First of all, thanks for the plugin.
I have an obj surface that I want to import and visualize in napari, however, I tried:
from napari_pymeshlab import get_mesh_reader
surface = ("E:/3D-Edited.obj")
viewer.add_surface(get_mesh_reader(surface), name='surface')
But I got the following error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <module>
----> 1 viewer.add_surface(get_mesh_reader(surface), name='surface')
File ~\.conda\envs\bio11\lib\site-packages\napari\components\viewer_model.py:4, in add_surface(self, data, colormap, contrast_limits, gamma, name, metadata, scale, translate, rotate, shear, affine, opacity, blending, shading, visible, cache, experimental_clipping_planes, wireframe, normals)
1 from __future__ import annotations
3 import inspect
----> 4 import itertools
5 import os
6 import warnings
File ~\.conda\envs\bio11\lib\site-packages\napari\layers\surface\surface.py:169, in Surface.__init__(self, data, colormap, contrast_limits, gamma, name, metadata, scale, translate, rotate, shear, affine, opacity, blending, shading, visible, cache, experimental_clipping_planes, wireframe, normals)
145 def __init__(
146 self,
147 data,
(...)
166 normals=None,
167 ):
--> 169 ndim = data[0].shape[1]
171 super().__init__(
172 data,
173 ndim,
(...)
185 experimental_clipping_planes=experimental_clipping_planes,
186 )
188 self.events.add(
189 interpolation=Event,
190 rendering=Event,
191 shading=Event,
192 )
TypeError: 'function' object is not subscriptable
C:\Users\Linux\.conda\envs\bio11\lib\site-packages\ipykernel\kernelbase.py:674: RuntimeWarning: coroutine 'InProcessKernel._abort_queues' was never awaited!`
I know is a newbie question.
Thanks in advance for your help.