version 0.4.1
griddrawer.hh File Reference

Draw grid view using Matplot library. More...

#include <matplot/matplot.h>
#include <ranges>
#include <set>
#include <thread>
#include <dune/geometry/dimension.hh>

Go to the source code of this file.

Functions

template<typename GV >
void draw (const GV &gridView, bool forever=false)
 Draw function for visualizing the elements of a DUNE grid view. More...
 

Function Documentation

◆ draw()

template<typename GV >
void draw ( const GV &  gridView,
bool  forever = false 
)

This function uses the Matplot library to visualize the elements of a DUNE grid view. It draws the edges of the elements in either 2D or 3D space.

Template Parameters
GVThe type of the DUNE grid view.
Parameters
gridViewThe DUNE grid view to visualize.
foreverIf true, the plot will be displayed until closed; otherwise, it will be displayed for a short duration.