Skip to content

Commit

Permalink
UI-QT: Minor bugfix for for isosurfaces of some 3D systems.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GPMueller committed Dec 18, 2018
1 parent b3188f0 commit c165505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui-cpp/src/SpinWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c165505

Please sign in to comment.