1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_6/bug26180
dbp ae9a414af0 0026180: Modeling Algorithms - Provide shape self-intersection detector
Small correction of test case for issue CR26180

Fix GCC compilation warnings.
2015-05-28 12:19:25 +03:00

43 lines
994 B
Plaintext

puts "========"
puts "OCC26180"
puts "========"
puts ""
##################################################################
## Modeling Algorithms - Provide shape self-intersection detector
##################################################################
list aBoxNames
set BOX_SIZE 5
set BOX_GRID_SIZE 30
for {set i 0} {$i < $BOX_GRID_SIZE} {incr i} {
for {set j 0} {$j < $BOX_GRID_SIZE} {incr j} {
box b_[expr $i]_[expr $j] [expr $i * 6] [expr $j * 6] 0 5 5 5
lappend aBoxNames b_[expr $i]_[expr $j]
lappend aBoxNames " "
}
}
psphere s 30
ttranslate s 90.0 90.0 0.0
incmesh s 0.002
trinfo s
set aCompName "C"
compound {*}$aBoxNames s $aCompName
vinit
vsetdispmode 1
vdisplay $aCompName
vsettransparency $aCompName 0.8
vdump $imagedir/${casename}_1.png
selfintersect $aCompName -tol 0.0 -profile
vdisplay [set aCompName]_overlapped
vsetcolor [set aCompName]_overlapped red
vsettransparency [set aCompName]_overlapped 0.5
vfit
vdump $imagedir/${casename}_2.png