<div dir="ltr">In VTK 7.0, I am getting a segfault in vtkContourFilter when setting UseScalarTreeOn(), but not supplying a ScalarTree pointer.  This worked in VTK 6.3, since the filter would create a default vtkSimpleScalarTree if a ScalarTree wasn't supplied.  However, it seems that in the following commit, the code was changed so that now a default ScalarTree (a vtkSpanSpace) is only supplied if the input is an unstructured grid.<br><div><div><br><a href="https://gitlab.kitware.com/vtk/vtk/commit/8ae05d907d5b047be79574cf8cc0c3c9a816e51c#4ec6be05bae9bbde34d3583e844cc26dfc4e91ea_574_589" target="_blank">https://gitlab.kitware.com/vtk/vtk/commit/8ae05d907d5b047be79574cf8cc0c3c9a816e51c#4ec6be05bae9bbde34d3583e844cc26dfc4e91ea_574_589</a><br><br></div><div>Restoring the deleted block from vtkContourFilter.cxx:574:589 in the above commit fixes the problem for me.<br><br></div><div>I haven't made a test/repro case, but this should be fairly simple to reproduce, just:<br><br></div><div>1. Attach a data set that isn't an unstructured grid (e.g. a vtkStructuredGrid), to a vtkContourFilter.<br></div><div>2. Generate a couple of isovalues in the filter.<br></div><div>3. Set UseScalarTreeOn() in the filter and update/run the filter.<br></div><div><br></div><div>-Leif<br></div></div></div>