-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Hello,
I would like to use glVis for my own magnetometer calibration software. For this I am trying to use glVis as a library within QTCreator. I have solved all the dependency issues. And I have attempted to create a new VisualizationSceneSolution3d with a mesh and solution, and then callint SDLMainLoop(true), but it crashes.
int geom_ref_type = Quadrature1D::ClosedUniform;
const char *mesh_file = "/home/can/gl/mfem/data/ref-cube.mesh";
Mesh *mesh = new Mesh(mesh_file, 1, 1);
int dim = mesh->Dimension();
GLVisGeometryRefiner.SetType(geom_ref_type);
H1_FECollection fec(1, 3);
FiniteElementSpace fespace(mesh, &fec);
GridFunction x(&fespace);
x = 0;
VisualizationSceneSolution3d * vss;
vs = vss = new VisualizationSceneSolution3d(*mesh, x);
SDLMainLoop(true);
return 0;And when I debugged it I got:
Indicating a problem with renderer.
How can I programmatically visualize a mesh, using glVis library within my own application?
Best Regards,
Can
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
