Standard_Real anAxialX = anAxialScale.X();
Standard_Real anAxialY = anAxialScale.Y();
Standard_Real anAxialZ = anAxialScale.Z();
- if (anAxialX > 0 && anAxialY > 0 && anAxialZ > 0)
+ if (anAxialX > 0.0 && anAxialY > 0.0 && anAxialZ > 0.0)
{
- Graphic3d_TransformUtils::Scale(aWorldView, 1.0 / anAxialX, 1.0 / anAxialY, 1.0 / anAxialZ);
+ Graphic3d_TransformUtils::Scale (aWorldView, 1.0 / anAxialX, 1.0 / anAxialY, 1.0 / anAxialZ);
}
Graphic3d_TransformUtils::Translate (aWorldView, aCenter.X(), aCenter.Y(), aCenter.Z());
puts "========"
-puts "0025340: 0027832: Visualization - Scaled zbuffer trihedron"
+puts "0027832: Visualization - Scaled zbuffer trihedron"
puts "========"
puts ""
-pload ALL
+pload MODELING VISUALIZATION
vinit
box b 10 10 10
vdisplay b
vfit
vsetdispmode 1
vzbufftrihedron -on
+#draw initial picture of box without visual scale
+vdump $imagedir/${casename}_unscaled.png
+
+#draw picture of box after visual scale
+#and zoomed out
vscale 1 3 10
+vzoom 0.99
set color_1 [vreadpixel 55 360 -rgb -name]
set color_2 [vreadpixel 50 350 -rgb -name]
puts " current color is: $color_3"
}
-vdump $imagedir/${casename}.png
\ No newline at end of file
+vdump $imagedir/${casename}_scaled.png