1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00
Files
occt/tests/bugs/modalg_5/bug25232_9
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

32 lines
1.1 KiB
Plaintext

puts "TODO OCC27014 ALL: Faulty shapes in variables faulty_1 to"
puts "TODO OCC27014 ALL: Error : is WRONG because number of .* entities in shape .* is"
puts "============"
puts "OCC25232"
puts "============"
puts ""
#########################################################################
# Functionality to create solids from set of shapes
#########################################################################
compound b1
compound b2
compound b3
set nbi 21
set nbj 21
set nbk 21
for {set i 0} {$i < $nbi} {incr i} {plane p 0 0 [expr $i-10] 0 0 1; mkface f_$i p -10 10 -10 10; add f_$i b1;}
for {set j 0} {$j < $nbj} {incr j} {plane p [expr $j-10] 0 0 1 0 0; mkface f_$j p -10 10 -10 10; add f_$j b2;}
for {set k 0} {$k < $nbk} {incr k} {plane p 0 [expr $k-10] 0 0 1 0; mkface f_$k p -10 10 -10 10; add f_$k b3;}
sphere s 0 0 0 10
mkface f s
mkvolume result b1 b2 b3 f
# 9832 solids created
checkprops result -s 50513.3
checkshape result
checknbshapes result -vertex 11037 -edge 31880 -wire 30668 -face 30668 -shell 9832 -solid 9832 -compsolid 0 -compound 1 -shape 123918
checkview -display result -2d -path ${imagedir}/${test_image}.png