-
Notifications
You must be signed in to change notification settings - Fork 38
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
Difference boolean operation (e.g. A-B) leads to crash #72
Comments
Hello, do you use the newest version of my lib? Here is what I get: The code I used to created it is: #!/usr/bin/env python
# *-* coding: UTF-8 *-*
import sys
sys.path.extend(['/home/zippy/vtkbool/build/lib/python3.11/site-packages/vtkbool'])
from vtkmodules.vtkIOLegacy import vtkPolyDataReader, vtkPolyDataWriter
from vtkmodules.vtkIOGeometry import vtkSTLReader, vtkSTLWriter
from vtkmodules.vtkFiltersCore import vtkCleanPolyData, vtkPolyDataNormals, vtkTriangleFilter
from vtkBool import vtkPolyDataBooleanFilter
readerA = vtkPolyDataReader()
readerA.SetFileName('A.vtk')
readerB = vtkPolyDataReader()
readerB.SetFileName('B.vtk')
bf = vtkPolyDataBooleanFilter()
bf.SetInputConnection(0, readerA.GetOutputPort())
bf.SetInputConnection(1, readerB.GetOutputPort())
bf.SetOperModeToDifference2()
clean = vtkCleanPolyData()
clean.SetInputConnection(bf.GetOutputPort())
writer = vtkPolyDataWriter()
writer.SetFileName('result.vtk')
writer.SetInputConnection(clean.GetOutputPort())
writer.Update() |
I don't know how to check, I think the files of vtkbool are inside this folder: It appears they are a few years old |
Yes, the files there are really old. You should upgrade to version 3.0. The new version is much better!! 😃 |
where is the newest version of vtkbool?the slicersandbox have't update the logic 3 years age |
Thank you, we've updated vtkbool in the Slicer extension now. The current vtkbool version is indeed much cleaner, properly wrapped, and available as a VTK module, so in the future we'll not have to vendorize it anymore. The only changes I had to make in vtkbool to allow it to build on Windows were:
|
This is defined by my CMakeLists.txt 😄 |
Hi @zippy84
Thanks for the amazing software
I can replicate crashes with the file below
vtk_bool_difference_A-B_operation_bug.zip
Hope you can help
PS: I worked around it by adding some filters to the pipeline that creates the cylinders
The text was updated successfully, but these errors were encountered: