mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
fix crash on solution double click (no colormeshsize)
This commit is contained in:
parent
31587d6097
commit
1b275bf988
@ -580,7 +580,7 @@ namespace netgen
|
||||
}
|
||||
*/
|
||||
|
||||
vispar.colormeshsize = 1;
|
||||
// vispar.colormeshsize = 1;
|
||||
|
||||
// recalc clipping plane
|
||||
SetClippingPlane ();
|
||||
|
@ -4475,7 +4475,6 @@ namespace netgen
|
||||
vispar.drawnetgenlogo = atoi (Tcl_GetVar (interp, "::viewoptions.drawnetgenlogo", TCL_GLOBAL_ONLY));
|
||||
vispar.stereo = atoi (Tcl_GetVar (interp, "::viewoptions.stereo", TCL_GLOBAL_ONLY));
|
||||
vispar.colormeshsize = atoi (Tcl_GetVar (interp, "::viewoptions.colormeshsize", TCL_GLOBAL_ONLY));
|
||||
|
||||
VisualScene :: SetBackGroundColor (vispar.whitebackground ? 1 : 0);
|
||||
|
||||
strcpy (vispar.selectvisual, Tcl_GetVar (interp, "::selectvisual", TCL_GLOBAL_ONLY));
|
||||
|
@ -70,23 +70,23 @@ int main (int argc, char ** argv)
|
||||
cout << "meshing done" << endl;
|
||||
|
||||
// volume mesh output
|
||||
// np = Ng_GetNP(mesh);
|
||||
// cout << "Points: " << np << endl;
|
||||
np = Ng_GetNP(mesh);
|
||||
cout << "Points: " << np << endl;
|
||||
|
||||
// for (i = 1; i <= np; i++)
|
||||
// {
|
||||
// Ng_GetPoint (mesh, i, point);
|
||||
// cout << i << ": " << point[0] << " " << point[1] << " " << point[2] << endl;
|
||||
// }
|
||||
for (i = 1; i <= np; i++)
|
||||
{
|
||||
Ng_GetPoint (mesh, i, point);
|
||||
cout << i << ": " << point[0] << " " << point[1] << " " << point[2] << endl;
|
||||
}
|
||||
|
||||
// ne = Ng_GetNE(mesh);
|
||||
// cout << "Elements: " << ne << endl;
|
||||
// for (i = 1; i <= ne; i++)
|
||||
// {
|
||||
// Ng_GetVolumeElement (mesh, i, tet);
|
||||
// cout << i << ": " << tet[0] << " " << tet[1]
|
||||
// << " " << tet[2] << " " << tet[3] << endl;
|
||||
// }
|
||||
ne = Ng_GetNE(mesh);
|
||||
cout << "Elements: " << ne << endl;
|
||||
for (i = 1; i <= ne; i++)
|
||||
{
|
||||
Ng_GetVolumeElement (mesh, i, tet);
|
||||
cout << i << ": " << tet[0] << " " << tet[1]
|
||||
<< " " << tet[2] << " " << tet[3] << endl;
|
||||
}
|
||||
|
||||
Ng_SaveMesh(mesh,"test.vol");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user