0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / bugs / bug25363
CommitLineData
6262a303 1puts "================"
0d828ac8 2puts "OCC25335: Visualization - add test command for V3d_View::FitAll by view area"
6262a303 3puts "================"
4puts ""
6262a303 5
6set check1_x 2
7set check1_y 2
8
9set check2_x 407
10set check2_y 2
11
12set check3_x 2
13set check3_y 407
14
15set check4_x 407
16set check4_y 407
17
18set check5_x 204
19set check5_y 204
20
0d828ac8 21pload MODELING VISUALIZATION
6262a303 22vinit View1
23vtop
24
25# 2D view area
26vpoint p1 5.0 5.0 0.0
27vpoint p2 15.0 5.0 0.0
28vpoint p3 15.0 15.0 0.0
29vpoint p4 5.0 15.0 0.0
30vpoint p5 10.0 10.0 0.0
31
32vfitarea 4.999 4.999 15.001 15.001
33
34# Check area by 1st point
35vmoveto ${check1_x} ${check1_y}
36checkcolor ${check1_x} ${check1_y} 0 1 1
0d828ac8 37if {$stat != 1} { puts "Error : Fit all by view area is broken." }
6262a303 38
39# Check area by 2nd point
40vmoveto ${check2_x} ${check2_y}
41checkcolor ${check2_x} ${check2_y} 0 1 1
0d828ac8 42if {$stat != 1} { puts "Error : Fit all by view area is broken." }
6262a303 43
44# Check area by 3rd point
45vmoveto ${check3_x} ${check3_y}
46checkcolor ${check3_x} ${check3_y} 0 1 1
0d828ac8 47if {$stat != 1} { puts "Error : Fit all by view area is broken." }
6262a303 48
49# Check area by 4th point
50vmoveto ${check4_x} ${check4_y}
51checkcolor ${check4_x} ${check4_y} 0 1 1
0d828ac8 52if {$stat != 1} { puts "Error : Fit all by view area is broken." }
6262a303 53
54# Check area by 5th point
55vmoveto ${check5_x} ${check5_y}
56checkcolor ${check5_x} ${check5_y} 0 1 1
0d828ac8 57if {$stat != 1} { puts "Error : Fit all by view area is broken." }
6262a303 58
0d828ac8 59vdump ${imagedir}/${casename}.png