From c1655055da4519cde5e560a4ac84b97bc15fb261 Mon Sep 17 00:00:00 2001 From: Gideon Date: Tue, 18 Dec 2018 20:57:55 +0100 Subject: [PATCH] UI-QT: Minor bugfix for for isosurfaces of some 3D systems. If a system has no translations of the basis cell, it can still be 3D and the isosurfaces should be drawn. This was prevented by an incorrect usage of n_cell_step, which regulates the resolution of basis cells. --- ui-cpp/src/SpinWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-cpp/src/SpinWidget.cpp b/ui-cpp/src/SpinWidget.cpp index 745b72755..79cee6dc9 100644 --- a/ui-cpp/src/SpinWidget.cpp +++ b/ui-cpp/src/SpinWidget.cpp @@ -392,7 +392,7 @@ void SpinWidget::updateVectorFieldGeometry() // get tetrahedra if (Geometry_Get_Dimensionality(state.get()) == 3) { - if (n_cells[0]/n_cell_step < 2 || n_cells[1]/n_cell_step < 2 || n_cells[2]/n_cell_step < 2) + if( n_cell_step > 1 && n_cells[0]/n_cell_step < 2 || n_cells[1]/n_cell_step < 2 || n_cells[2]/n_cell_step < 2 ) { geometry = VFRendering::Geometry(positions, {}, {}, true); }