Skip to content

Commit 52432b8

Browse files
authored
Merge pull request #2539 from gforney/isofix
by default draw isosurfaces as a shaded surface (no outlines), fix boundary file loading logic when some of the boundary files do not exist
2 parents cc8a1d7 + a0dd636 commit 52432b8

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

Build/for_bundle/smokeview.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ SHOWTRACERSALWAYS
350350
SHOWTRANSPARENT
351351
0
352352
SHOWTRIANGLES
353-
1 1 0 0 1 1 1
353+
1 0 0 0 1 1 1
354354
SHOWTRANSPARENTVENTS
355355
1
356356
SHOWTRIANGLECOUNT

Source/smokeview/glui_bounds.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,9 +2178,9 @@ extern "C" void GLUIPartBoundsCPP_CB(int var){
21782178
}
21792179
}
21802180

2181-
/* ------------------ HavePatchData ------------------------ */
2181+
/* ------------------ HaveAnyPatchData ------------------------ */
21822182

2183-
int HavePatchData(void){
2183+
int HaveAnyPatchData(void){
21842184
int i;
21852185

21862186
for(i = 0; i<global_scase.npatchinfo; i++){
@@ -2193,10 +2193,10 @@ int HavePatchData(void){
21932193
case PATCH_STRUCTURED_NODE_CENTER:
21942194
case PATCH_STRUCTURED_CELL_CENTER:
21952195
meshi = global_scase.meshescoll.meshinfo+patchi->blocknumber;
2196-
if(meshi->patchval==NULL||meshi->cpatchval==NULL)return 0;
2196+
if(meshi->patchval!=NULL||meshi->cpatchval!=NULL)return 1;
21972197
break;
21982198
case PATCH_GEOMETRY_BOUNDARY:
2199-
if(patchi->geom_vals==NULL)return 0;
2199+
if(patchi->geom_vals!=NULL)return 1;
22002200
break;
22012201
case PATCH_GEOMETRY_SLICE:
22022202
break;
@@ -2205,7 +2205,7 @@ int HavePatchData(void){
22052205
break;
22062206
}
22072207
}
2208-
return 1;
2208+
return 0;
22092209
}
22102210

22112211
/* ------------------ patch callback: GLUIPatchBoundsCPP_CB ------------------------ */
@@ -2252,7 +2252,7 @@ extern "C" void GLUIPatchBoundsCPP_CB(int var){
22522252
break;
22532253
case BOUND_DONTUPDATE_COLORS:
22542254
case BOUND_UPDATE_COLORS:
2255-
if(HavePatchData()==1){
2255+
if(HaveAnyPatchData()==1){
22562256
SetLoadedPatchBounds(NULL, 0);
22572257
if(var==BOUND_DONTUPDATE_COLORS){
22582258
UpdateAllBoundaryColors(0);
@@ -2261,9 +2261,6 @@ extern "C" void GLUIPatchBoundsCPP_CB(int var){
22612261
UpdateAllBoundaryColors(1);
22622262
}
22632263
}
2264-
else{
2265-
GLUIPatchBoundsCPP_CB(BOUND_RELOAD_DATA);
2266-
}
22672264
break;
22682265
case BOUND_RELOAD_DATA:
22692266
SetLoadedPatchBounds(NULL, 0);

Source/smokeview/smokeviewvars.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ SVEXTERN int SVDECL(show_boundary_outline, 0);
828828
SVEXTERN int SVDECL(show_boundary_points, 0);
829829

830830
SVEXTERN int SVDECL(show_iso_shaded,1);
831-
SVEXTERN int SVDECL(show_iso_outline,1);
831+
SVEXTERN int SVDECL(show_iso_outline,0);
832832
SVEXTERN int SVDECL(show_iso_points,0);
833833

834834
SVEXTERN int SVDECL(show_faces_shaded, 1);

0 commit comments

Comments
 (0)