Commit 37e36d87 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Adding test for BUG #14308.

This exposed an issue in vtkPVGeometryFilter when dealing with empty
input. Fixed that as well.
parent 38a30b9d
......@@ -42,6 +42,7 @@ paraview_test_load_data(""
multicomb_1.vts
multicomb_2.vts
NE2_ps_bath.png
non_convex_polygon.vtu
office.binary.vtk
PropertyLink.pvsm
quadraticTetra01.vtu
......@@ -222,6 +223,7 @@ list(APPEND TESTS_WITH_BASELINES
${CMAKE_CURRENT_SOURCE_DIR}/MultiSliceWavelet.xml
${CMAKE_CURRENT_SOURCE_DIR}/NormalGlyphs.xml
${CMAKE_CURRENT_SOURCE_DIR}/NiftiReaderWriterPlugin.xml
${CMAKE_CURRENT_SOURCE_DIR}/NonConvexPolygon.xml
${CMAKE_CURRENT_SOURCE_DIR}/OpenSaveData.xml
${CMAKE_CURRENT_SOURCE_DIR}/OrthographicView.xml
${CMAKE_CURRENT_SOURCE_DIR}/OutOfRangeColors.xml
......@@ -411,7 +413,7 @@ set(PolygonCellSelection_DISABLE_CRS TRUE)
set(PolygonPointSelection_DISABLE_CRS TRUE)
set(NonlinearSubdivisionDisplay_DISABLE_CRS TRUE)
set(InteractiveSelection_DISABLE_CRS TRUE)
set(NonConvexPolygon_DISABLE_CRS TRUE)
# These tests cannot be run using ctest -j since they are affected by focus
# changed events.
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/MainControlsToolbar/1QToolButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/non_convex_polygon.vtu" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionTesting_Window_Size" />
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/representationToolbar/displayRepresentation/comboBox" command="set_string" arguments="Surface With Edges" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="tri" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Triangulate/CheckBox" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/actionSelectSurfaceCells" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mousePress" arguments="(0.343333,0.306667,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mouseMove" arguments="(0.343333,0.306667,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mouseRelease" arguments="(0.343333,0.306667,1,0,0)" />
</pqevents>
......@@ -1380,7 +1380,7 @@ void vtkPVGeometryFilter::UnstructuredGridExecute(
{
this->OutlineFlag = 0;
bool handleSubdivision = (this->Triangulate != 0);
bool handleSubdivision = (this->Triangulate != 0) && (input->GetNumberOfCells() > 0);
if (!handleSubdivision && (this->NonlinearSubdivisionLevel > 0))
{
// Check to see if the data actually has nonlinear cells. Handling
......
8e2ac4578aa45fa384defe610b122e64
fa0ab0d077d8b11f0f051e26200e928c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment