Skip to content

Commit

Permalink
Merge pull request #1661 from gforney/master
Browse files Browse the repository at this point in the history
correct near and far cliping planes when x,y,z scalings are applied
  • Loading branch information
gforney authored Aug 22, 2023
2 parents f8b89e0 + 9447b28 commit a54ba96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Source/smokeview/glui_bounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6552,6 +6552,7 @@ extern "C" void SliceBoundCB(int var){
else{
CHECKBOX_transparentflag->set_int_val(1);
}
GLUTPOSTREDISPLAY;
break;
case LINE_CONTOUR_VALUE:
if(slice_line_contour_num<1){
Expand Down
6 changes: 3 additions & 3 deletions Source/smokeview/viewports.c
Original file line number Diff line number Diff line change
Expand Up @@ -2173,9 +2173,9 @@ void GetZoneSmokeDir(float *mm){
float DistPtXYZ(float *pt, float x, float y, float z){
float dx, dy, dz;

dx = pt[0] - x;
dy = pt[1] - y;
dz = pt[2] - z;
dx = (pt[0] - x)*mscale[0];
dy = (pt[1] - y)*mscale[1];
dz = (pt[2] - z)*mscale[2];
return sqrt(dx*dx + dy*dy + dz*dz);
}

Expand Down

0 comments on commit a54ba96

Please sign in to comment.