0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_6 / bug25880
CommitLineData
905522ee 1puts "============"
2puts "OCC25880"
3puts "============"
4puts ""
5###############################
6## fuzzy booleans with multiple tools
7###############################
8
9bfuzzyvalue 0.00001
10box Box018 13.550000190735 50.200000762939 3.299999952316
11ttranslate Box018 -19.1 -0.1 2.35
12#Object Label: Box
13
14psphere Sphere002 1.600000023842 0 90 180
15ttranslate Sphere002 -15 50.1 5.5
16#Object Label: LeftSph
17
18#bfuse to-Fusion-001-t Box018 Sphere002
19pcylinder Cylinder006 1.600000023842 3.200000047684 180
20ttranslate Cylinder006 -15 50.1 2.35
21
22#Object Label: LeftHalfCyl
23bfuse to-Fusion-002-t to-Fusion-001-t Cylinder006
24psphere Sphere001 1.600000023842 0 90 180
25trotate Sphere001 0 0 0 1 0 0 90
26ttranslate Sphere001 -15 -0.1 5.5
27
28#Object Label: RightSph
29bfuse to-Fusion-003-t to-Fusion-002-t Sphere001
30pcylinder Cylinder005 1.600000023842 3.200000047684 180
31trotate Cylinder005 0 0 0 0 0 1 180
32ttranslate Cylinder005 -15 -0.1 2.35
33
34#Object Label: RightHalfCyl
35bfuse to-Fusion-004-t to-Fusion-003-t Cylinder005
36pcylinder Cylinder004 1.600000023842 50.200000762939 180
37trotate Cylinder004 0 0 0 0 0.7071067811865475 0.7071067811865475 180
38ttranslate Cylinder004 -15.000003814697 -0.100001335144 5.500000953674
39
40#Object Label: TopHalfCyl
41#bfuse Fusion to-Fusion-004-t Cylinder004
42bclearobjects
43bcleartools
44baddobjects Box018
45baddtools Sphere002 Cylinder006 Sphere001 Cylinder005 Cylinder004
46bfillds
47bbop result 1
48
58cf74e0 49checkprops result -s 1893.17
50checkshape result
905522ee 51
52set nbshapes_expected "
53Number of shapes in shape
54 VERTEX : 32
55 EDGE : 51
56 WIRE : 20
57 FACE : 20
58 SHELL : 1
59 SOLID : 1
60 COMPSOLID : 0
61 COMPOUND : 1
62 SHAPE : 126
63"
64checknbshapes result -ref ${nbshapes_expected} -t -m "fuzzy booleans with multiple tools"
5747059b 65checkview -display result -3d -path ${imagedir}/${test_image}.png