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

Cannot plot using MeshFix plot #53

Open
arpit196 opened this issue Jun 6, 2023 · 1 comment
Open

Cannot plot using MeshFix plot #53

arpit196 opened this issue Jun 6, 2023 · 1 comment

Comments

@arpit196
Copy link

arpit196 commented Jun 6, 2023

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?

@banesullivan
Copy link
Member

This code is incomplete. What is the mesh object/how did you generate it? There is missing code. Further, it would be a great help to include the STL file you are loading

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

2 participants