From 5a9c9dfdb43aceb1ada7b47b3398d5930354194e Mon Sep 17 00:00:00 2001 From: gforney Date: Mon, 4 May 2026 13:40:45 -0400 Subject: [PATCH] smokeview source: make smokeview display consistent (snap to grid) for all case sizes --- Source/smokeview/options.h | 1 + Source/smokeview/readsmv.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Source/smokeview/options.h b/Source/smokeview/options.h index 877820810..37fa70303 100644 --- a/Source/smokeview/options.h +++ b/Source/smokeview/options.h @@ -21,6 +21,7 @@ //#define pp_READ_KEYBOARD // read keyboard in the command shell so the visualization can be paused //#define pp_GETMESH_TEST //#define pp_COMPRESS // new compression code +//#define pp_GEOM_EXACT // use exact coorindates for cases with more than 100 meshes //*** options: windows diff --git a/Source/smokeview/readsmv.c b/Source/smokeview/readsmv.c index 948d99d59..7d8491b24 100644 --- a/Source/smokeview/readsmv.c +++ b/Source/smokeview/readsmv.c @@ -2995,10 +2995,12 @@ int ReadSMV_Configure(){ //*** hide_scene when moving objects if there are are lot of OBSTs or geometry triangles if(global_scase.ntotal_blockages > 250000 || GetNCGeomTriangles() > 250000)hide_scene = 1; +#ifdef pp_GEOM_EXACT if(global_scase.meshescoll.nmeshes > 100){ blocklocation = BLOCKlocation_exact; glui_use_cfaces = 0; } +#endif PRINT_TIMER(timer_readsmv, "update trianglesfaces");