Skip to content
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

Fixed visualization of extruded 1D meshes #307

Merged
merged 4 commits into from
Aug 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/vssolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ void VisualizationSceneSolution::PrepareLines()
line_buf.clear();
gl3::GlBuilder lb = line_buf.createBuilder();

if (mesh_coarse)
if (mesh_coarse && mesh_coarse->Dimension() > 1)
{
auto &ref = mesh->GetRefinementTransforms();
IsoparametricTransformation trans;
Expand Down Expand Up @@ -2200,7 +2200,7 @@ void VisualizationSceneSolution::PrepareLines3()
Array<int> &RE = RefG->RefEdges;

lb.glBegin (GL_LINES);
if (mesh_coarse)
if (mesh_coarse && mesh_coarse->Dimension() > 1)
{
auto &ref = mesh->GetRefinementTransforms();
// we assume that mesh_course is used only for tensor finite elements,
Expand Down
Loading