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

Segmentation fault on boolean pyvista operation #5995

Open
pajdakovicm opened this issue Apr 29, 2024 · 0 comments
Open

Segmentation fault on boolean pyvista operation #5995

pajdakovicm opened this issue Apr 29, 2024 · 0 comments
Labels
bug Uh-oh! Something isn't working as expected.

Comments

@pajdakovicm
Copy link

pajdakovicm commented Apr 29, 2024

Describe the bug, what's wrong, and what you expected.

Hello,
I am trying to perform boolean difference operation on two pyvista meshes. Both of them are
<class 'pyvista.core.pointset.PolyData'> objects. When I try to perform this operation, I get zsh: segmentation fault . I am using mac.
I looked into the function implementation, where I have seen an advice about this (apply pv.PolyDataFilters.clean before boolean operation) but it did not help me. Both meshes are constructed only of triangles, I checked this condition as well. Any help would be highly appreciated. I am struggling with boolean on meshes for some time now. :)

Steps to reproduce the bug.

upper_half_mesh_postop_cln = pv.PolyDataFilters.clean(upper_half_mesh_postop)
upper_half_mesh_preop_cln = pv.PolyDataFilters.clean(upper_half_mesh_preop)

result_mesh = upper_half_mesh_preop_cln.boolean_difference(upper_half_mesh_postop_cln, progress_bar=True)

System Information

Date: Mon Apr 29 21:54:39 2024 CEST

                OS : Darwin
            CPU(s) : 8
           Machine : x86_64
      Architecture : 64bit
               RAM : 8.0 GiB
       Environment : Python
       File system : apfs
        GPU Vendor : Apple
      GPU Renderer : Apple M1
       GPU Version : 4.1 Metal - 83
  MathText Support : True

  Python 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 09:52:31)
  [Clang 14.0.6 ]

           pyvista : 0.43.5
               vtk : 9.3.0
             numpy : 1.26.4
        matplotlib : 3.8.3
            scooby : 0.9.2
             pooch : 1.8.1
            pillow : 10.2.0
           imageio : 2.34.0
           IPython : 8.22.1
        ipywidgets : 8.1.2
             scipy : 1.12.0
              tqdm : 4.66.2
      nest_asyncio : 1.6.0

Screenshots

No response

@pajdakovicm pajdakovicm added the bug Uh-oh! Something isn't working as expected. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh-oh! Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

1 participant