0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / modalg_6 / bug27775
CommitLineData
5146b5ba 1puts "REQUIRED All: Standard_ConstructionError\: GeomFill_BSplineCurves\: invalid filling style"
2
3puts "========"
4puts "OCC27704"
5puts "========"
6puts ""
7#################################################
8# Different behavior of GeomFill_BSplineCurves algorithm in DEBUG and RELEASE mode
9#################################################
10
11#Indeed, the input data are invalid here:
12#1. Algorithm requires B-Spline with 4+ poles. Source curves contains two pole only.
13#2. Four curves must comprise closed region. But it is not here.
14#Therefore, the normal behavior is to throw an exception.
15
16bsplinecurve c1 1 2 0 2 100.000001513789 2 -24033.3957701043 -6337.90755953146 -16577.8188547128 1 -23933.3957701044 -6337.90755953146 -16577.8362547128 1
17bsplinecurve c2 1 2 0 2 100.000001513789 2 -23933.3957701044 -6337.90755953146 -16577.8362547128 1 -24033.3957701043 -6337.90755953146 -16577.8188547128 1
18bsplinecurve c3 1 2 0 2 33.1099999999979 2 -24033.3957701043 -6371.01755953146 -16577.8188547128 1 -24033.3957701043 -6337.90755953146 -16577.8188547128 1
19bsplinecurve c4 1 2 0 2 100.000001513789 2 -24033.3957701043 -6371.01755953146 -16577.8188547128 1 -23933.3957701044 -6371.01755953146 -16577.8362547128 1
20
21if {[catch {fillcurves res c1 c2 c3 c4 2}]} {
22 puts "OK: The incorrect input data were processed correctly!"
23} else {
24 puts "Error: The output result must be invalid because the input data are wrong!"
25}