Skip to content

Cannot plot using MeshFix plot #53

@arpit196

Description

@arpit196

Hi,
I am using pymeshfix to detect self intersecting triangles and holes.
I am using pyvista to load the file and using meshfix plot() function to visualize the mesh.

import pyvista
reader = pyvista.get_reader('Error_Cylinder.stl')
meshfix = pymeshfix.MeshFix(mesh)
meshfix.plot()

However I am getting the following error:
AttributeError: 'MeshFix' object has no attribute 'f'

at
File ~\source\Anaconda\envs\3dEnv\lib\site-packages\pymeshfix\meshfix.py:117, in MeshFix.mesh(self)
115 if not PV_INSTALLED:
116 raise RuntimeError('Please install pyvista for this feature')
117 triangles = np.empty((self.f.shape[0], 4), dtype=pv.ID_TYPE)

Can someone help with this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions