Standard_Real anAxialX = anAxialScale.X();
Standard_Real anAxialY = anAxialScale.Y();
Standard_Real anAxialZ = anAxialScale.Z();
- if ((anAxialX > Precision::Confusion() &&
- anAxialY > Precision::Confusion() &&
- anAxialZ > Precision::Confusion()))
+ if (anAxialX > 0 && anAxialY > 0 && anAxialZ > 0)
{
Graphic3d_TransformUtils::Scale(aWorldView, 1.0 / anAxialX, 1.0 / anAxialY, 1.0 / anAxialZ);
}
--- /dev/null
+puts "========"
+puts "0025340: 0027832: Visualization - Scaled zbuffer trihedron"
+puts "========"
+puts ""
+
+pload ALL
+vinit
+box b 10 10 10
+vdisplay b
+vfit
+vsetdispmode 1
+vzbufftrihedron -on
+vscale 1 3 10
+
+set color_1 [vreadpixel 55 360 -rgb -name]
+set color_2 [vreadpixel 50 350 -rgb -name]
+set color_3 [vreadpixel 55 355 -rgb -name]
+
+if {$color_1 != "RED3"} {
+ puts "ERROR: trihedron does not maintain position"
+ puts " additional investigation is needed"
+ puts " expected color is: RED3"
+ puts " current color is: $color_1"
+}
+
+if {$color_2 != "BLUE3"} {
+ puts "ERROR: trihedron does not maintain position"
+ puts " additional investigation is needed"
+ puts " expected color is: BLUE3"
+ puts " current color is: $color_2"
+}
+
+if {$color_3 != "GREEN3"} {
+ puts "ERROR: trihedron does not maintain position"
+ puts " additional investigation is needed"
+ puts " expected color is: GREEN3"
+ puts " current color is: $color_3"
+}
+
+vdump $imagedir/${casename}.png
\ No newline at end of file