0027780: Face-face intersection produces 2D curve that has reversed derivative at...
[occt.git] / tests / bugs / modalg_6 / bug27780
CommitLineData
5185b161 1puts "============"
2puts "OCC27780"
3puts "============"
4puts ""
5######################################################
6# Face-face intersection produces 2D curve that has reversed derivative at its end
7######################################################
8
9restore [locate_data_file buc60532a.brep] p
10restore [locate_data_file buc60532b.brep] t1
11explode t1 f
12
13bopcurves p t1_2 -2d -p 6.2406621764215551 0.23999999463558200 0.00034444887595448459 -5.0019657458625186
14
15pcurve p
16trim c c2d1_1 0 1
172dcvalue c 0 u0 v0
182dcvalue c 1 u1 v1 du dv
19dset u01 u1-u0
20dset v01 v1-v0
21dset dot u01*du+v01*dv
22
23if {[dval dot] < 0} {
24 puts "Error: p-curve has reversed direction at its end"
25} else {
26 puts "OK: p-curve has correct direction at its end"
27}
28
29view 1 -2D- 728 450 400 400
30don p_* c
312dfit
32
33checkview -screenshot -2d -path ${imagedir}/${test_image}.png