0028107: Visualization - provide a flexible interface to set custom hatch styles
[occt.git] / tests / bugs / vis / bug23200
CommitLineData
4c513386 1puts "============"
2puts "CR23200"
3puts "Check that the shape is automatic re-triangulated with deflection-check logic"
4puts "in case of enabled auto triangulation feature (its own triangulation can be lost)."
5puts "And it keeps its already computed triangulation"
6puts "in case of disabled auto triangulation feature."
7puts "============"
8puts ""
9
10set aDefaultShape $imagedir/${casename}_shape.png
11set aShapeAutoTr $imagedir/${casename}_shape_auto_triangulation.png
12set aShapeNotAutoTr $imagedir/${casename}_shape_not_auto_triangulation.png
13
14vinit View1
15vclear
16vaxo
17vsetdispmode 1
18vdefaults -autoTriang on
19psphere s 0.5
20vdisplay s
21vfit
22vdump $aDefaultShape
23
24vclear
25tclean s
26incmesh s 0.1 -a 45
27set tri_info [trinfo s]
28regexp { +([-0-9.+eE]+) +triangles} $tri_info full triIncmesh1
29
30vdisplay s
5d7a0489 31
32checktrinfo s -tri !${triIncmesh1}
33
4c513386 34vfit
35vdump $aShapeAutoTr
36
37vclear
38vdefaults -autoTriang off
39tclean s
40incmesh s 0.1 -a 45
41set tri_info [trinfo s]
42regexp { +([-0-9.+eE]+) +triangles} $tri_info full triIncmesh2
43
44vdisplay s
5d7a0489 45
46checktrinfo s -tri ${triIncmesh2}
47
4c513386 48vfit
49vdump $aShapeNotAutoTr