mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
Adding test cases from chl grid
This commit is contained in:
parent
aadab519fd
commit
3bea4c165c
33
tests/bugs/caf/bug1138
Executable file
33
tests/bugs/caf/bug1138
Executable file
@ -0,0 +1,33 @@
|
||||
puts "TODO ?OCC12345 ALL: An exception was caught"
|
||||
puts "TODO ?OCC12345 ALL: Faulty OCC1138 : here is reading problem when the filename is a directory name."
|
||||
puts "TODO ?OCC12345 ALL: Faulty OCC1138"
|
||||
|
||||
puts "================"
|
||||
puts "OCC1138"
|
||||
puts "================"
|
||||
puts ""
|
||||
#######################################################################################
|
||||
# OSD_SIGSEGV is thrown during call LDOMParser.parse method
|
||||
#######################################################################################
|
||||
|
||||
pload QAcommands
|
||||
|
||||
set BugNumber OCC1138
|
||||
|
||||
set status 0
|
||||
decho off
|
||||
if [catch { OCC983 ${imagedir} } result] {
|
||||
decho on
|
||||
puts "Faulty ${BugNumber} : here is reading problem when the filename is a directory name."
|
||||
set status 1
|
||||
} else {
|
||||
puts "Reading ${BugNumber} OK : here is not reading problem when the filename is a directory name."
|
||||
}
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { ${status} != 0 } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
95
tests/bugs/caf/bug21231
Executable file
95
tests/bugs/caf/bug21231
Executable file
@ -0,0 +1,95 @@
|
||||
puts "TODO ?OCC12345 ALL: Error: Document not saved"
|
||||
puts "TODO ?OCC12345 ALL: Error: Object obj2 not found"
|
||||
puts "TODO ?OCC12345 ALL: Tcl Exception: Error: Object obj2 not found"
|
||||
puts "TODO ?OCC12345 ALL: TEST INCOMPLETE"
|
||||
puts "============"
|
||||
puts "OCC21231"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21231
|
||||
set status 0
|
||||
|
||||
pload TOBJ
|
||||
|
||||
# Create a new document
|
||||
TObjNew TD1
|
||||
|
||||
TObjAddObj TD1 obj1
|
||||
TObjAddObj TD1 obj2
|
||||
TObjAddObj TD1 obj3
|
||||
|
||||
set parent "obj1 obj2 obj2"
|
||||
set children "ch11 ch21 ch22"
|
||||
for { set i 0} {$i <= 2} {incr i} {
|
||||
set p [lindex $parent $i]
|
||||
set ch [lindex $children $i]
|
||||
TObjAddChild TD1 $p $ch
|
||||
}
|
||||
|
||||
TObjSetRef TD1 obj1 obj2
|
||||
|
||||
TObjSetVal TD1 obj1 533
|
||||
TObjSetVal TD1 obj2 -r 3 3.14 2.78 0.123
|
||||
|
||||
# Save the document
|
||||
set aFile $imagedir/${test_image}-[file tail [info script]].cbf
|
||||
catch {[file delete ${aFile}]}
|
||||
catch {TObjSave TD1 ${aFile}}
|
||||
if { ![file exists ${aFile}] } {
|
||||
set status 1
|
||||
puts "There is not ${aFile} file; TObjSave command: Error"
|
||||
puts "${BugNumber}: ERROR"
|
||||
} else {
|
||||
puts "Save the document to ${aFile} file"
|
||||
}
|
||||
|
||||
TObjClose TD1
|
||||
unset TD1
|
||||
|
||||
# Restore the document
|
||||
if [catch { TObjLoad TD2 ${aFile} } catch_result] {
|
||||
puts "${BugNumber}: ERROR"
|
||||
}
|
||||
|
||||
# check children of obj2
|
||||
set retChh [TObjGetChildren TD2 obj2]
|
||||
for { set i 1 } { $i <= 2} {incr i} {
|
||||
set chh [lindex $retChh [expr $i - 1]]
|
||||
set oldCh [lindex $children $i]
|
||||
if { $chh != $oldCh } {
|
||||
set status 1
|
||||
puts "${BugNumber}: check children of obj2; ERROR (case 1)"
|
||||
}
|
||||
}
|
||||
|
||||
# check reference from obj1
|
||||
set retRef [TObjGetRef TD2 obj1]
|
||||
if { $retRef != "obj2" } {
|
||||
set status 1
|
||||
puts "${BugNumber}: check reference from obj1; ERROR (case 2)"
|
||||
}
|
||||
|
||||
# check stored single integer value
|
||||
set retInt [TObjGetVal TD2 obj1 -i]
|
||||
if { $retInt != 533 } {
|
||||
set status 1
|
||||
puts "${BugNumber}: check stored single integer value; ERROR (case 3)"
|
||||
}
|
||||
|
||||
# check stored array of doubles
|
||||
set retDbl [TObjGetVal TD2 obj2 -r]
|
||||
set nbVal [llength $retDbl]
|
||||
if { $nbVal != 3 } {
|
||||
set status 1
|
||||
puts "${BugNumber}: check stored array of doubles; ERROR (case 4)"
|
||||
}
|
||||
|
||||
if { ${status} != 0 } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
25
tests/bugs/caf/bug22976
Executable file
25
tests/bugs/caf/bug22976
Executable file
@ -0,0 +1,25 @@
|
||||
puts "==========="
|
||||
puts "OCC22976"
|
||||
puts "==========="
|
||||
######################################################
|
||||
# A draw-command CopyDF failes to copy content of a label
|
||||
######################################################
|
||||
|
||||
set BugNumber OCC22976
|
||||
|
||||
# Create a new document and set UndoLimit
|
||||
NewDocument D
|
||||
UndoLimit D 100
|
||||
|
||||
# Open a transaction
|
||||
NewCommand D
|
||||
|
||||
SetReal D 0:1 1.2345
|
||||
CopyDF D 0:1 0:2
|
||||
catch { GetReal D 0:2 } catch_result
|
||||
|
||||
if { $catch_result == 1.2344999999999999 } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
30
tests/bugs/caf/bug22995
Executable file
30
tests/bugs/caf/bug22995
Executable file
@ -0,0 +1,30 @@
|
||||
puts "========================"
|
||||
puts "OCC22995"
|
||||
puts "========================"
|
||||
puts ""
|
||||
##################################################################################################
|
||||
# It is not possible to check presence of a document in OCAF session via IsInSession() on Windows
|
||||
##################################################################################################
|
||||
|
||||
set BugNumber OCC22995
|
||||
|
||||
set status 0
|
||||
set aFile1 $imagedir/${test_image}-1.std
|
||||
set aFile2 $imagedir/${test_image}-2.std
|
||||
|
||||
NewDocument D MDTV-Standard
|
||||
|
||||
if { [file exists ${aFile1}] } {
|
||||
file delete ${aFile1}
|
||||
}
|
||||
if { [file exists ${aFile2}] } {
|
||||
file delete ${aFile2}
|
||||
}
|
||||
SaveAs D ${aFile1}
|
||||
set info1 [ IsInSession ${aFile1} ]
|
||||
set info0 [ IsInSession ${aFile2} ]
|
||||
if { ${info1} == 1 && ${info0} == 0 } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
82
tests/bugs/caf/bug23071
Executable file
82
tests/bugs/caf/bug23071
Executable file
@ -0,0 +1,82 @@
|
||||
puts "================"
|
||||
puts "OCC23071"
|
||||
puts "================"
|
||||
puts ""
|
||||
###################################################################################################
|
||||
# Comparison of file extension is case sensitive
|
||||
###################################################################################################
|
||||
|
||||
set BugNumber OCC23071
|
||||
|
||||
set FileName $imagedir/${test_image}.STD
|
||||
set FileName2 $imagedir/${test_image}.std
|
||||
set FileName3 ${FileName}.std
|
||||
|
||||
set status 0
|
||||
|
||||
file delete ${FileName}
|
||||
if [file exists ${FileName}] {
|
||||
puts "There is temporary ${FileName} file"
|
||||
set status 1
|
||||
}
|
||||
file delete ${FileName2}
|
||||
if [file exists ${FileName2}] {
|
||||
puts "There is temporary ${FileName2} file"
|
||||
set status 1
|
||||
}
|
||||
file delete ${FileName3}
|
||||
if [file exists ${FileName3}] {
|
||||
puts "There is temporary ${FileName3} file"
|
||||
set status 1
|
||||
}
|
||||
|
||||
catch { NewDocument D MDTV-Standard }
|
||||
|
||||
if [catch {SaveAs D ${FileName} }] {
|
||||
puts "Faulty ${BugNumber} ; SaveAs command: Error"
|
||||
set status 1
|
||||
} else {
|
||||
|
||||
# if [file exists ${WorkDirectory}/${FileName}] {
|
||||
# puts "There is ${FileName} file"
|
||||
# } else {
|
||||
# puts "There is not ${FileName} file"
|
||||
# }
|
||||
|
||||
if [file exists ${FileName2}] {
|
||||
puts "There is ${FileName2} file"
|
||||
} else {
|
||||
puts "There is not ${FileName2} file"
|
||||
#
|
||||
|
||||
if { [string compare $tcl_platform(platform) "windows"] == 0 } {
|
||||
puts "OS = Windows NT"
|
||||
set status 1
|
||||
}
|
||||
#
|
||||
}
|
||||
|
||||
if [file exists ${FileName3}] {
|
||||
puts "There is ${FileName3} file"
|
||||
} else {
|
||||
puts "There is not ${FileName3} file"
|
||||
#
|
||||
if { [string compare $tcl_platform(platform) "windows"] == 0 } {
|
||||
puts "OS = Windows NT"
|
||||
} else {
|
||||
puts "OS = Unix"
|
||||
set status 1
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { ${status} == 0 } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
||||
|
||||
|
28
tests/bugs/caf/bug23306
Executable file
28
tests/bugs/caf/bug23306
Executable file
@ -0,0 +1,28 @@
|
||||
puts "============"
|
||||
puts "OCC23306"
|
||||
puts "============"
|
||||
puts ""
|
||||
####################################################################################
|
||||
# Failures reading some attributes of BinOcaf document
|
||||
####################################################################################
|
||||
|
||||
set BugNumber OCC23306
|
||||
|
||||
NewDocument D1 BinOcaf
|
||||
SetExtStringArray D1 0:1:1 0 1 3 String1 String2 String3
|
||||
SaveAs D1 ${imagedir}/ocaf1.cbf
|
||||
Close D1
|
||||
set warn [Open ${imagedir}/ocaf1.cbf D2]
|
||||
set info [lsearch $warn "warning:"]
|
||||
|
||||
if { $info == -1 } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
175
tests/bugs/caf/bug9746
Executable file
175
tests/bugs/caf/bug9746
Executable file
@ -0,0 +1,175 @@
|
||||
puts "TODO OCC12345 ALL: Dump1 : Faulty"
|
||||
puts "TODO OCC12345 ALL: Dump2 : Faulty"
|
||||
puts "TODO OCC12345 ALL: Dump3 : Faulty"
|
||||
puts "TODO OCC12345 ALL: Dump4 : Faulty"
|
||||
puts "TODO OCC12345 ALL: Dump5 : Faulty"
|
||||
puts "TODO OCC12345 ALL: Dump6 : Faulty"
|
||||
puts "TODO OCC12345 ALL: Faulty OCC9746"
|
||||
|
||||
puts "============"
|
||||
puts "OCC9746"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Incorrect writing of integer array in BinMNaming_NamingDriver::Paste
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC9746
|
||||
|
||||
# Create a new document
|
||||
NewDocument D BinOcaf
|
||||
|
||||
box b 130 111 145
|
||||
ttranslate b 35 1 1
|
||||
pcylinder cyl 50 120 230
|
||||
ttranslate cyl 1 1 75
|
||||
|
||||
set aLab1 [ImportShape D 0:2 b Box1]
|
||||
set aLab2 [ImportShape D 0:3 cyl Cylinder]
|
||||
|
||||
GetShape D $aLab1 S
|
||||
explode S F
|
||||
set BoxNamLab [Label D 0:4]
|
||||
SelectShape D $BoxNamLab:1 S_1 S
|
||||
SelectShape D $BoxNamLab:2 S_2 S
|
||||
SelectShape D $BoxNamLab:3 S_3 S
|
||||
SelectShape D $BoxNamLab:4 S_4 S
|
||||
SelectShape D $BoxNamLab:5 S_5 S
|
||||
SelectShape D $BoxNamLab:6 S_6 S
|
||||
|
||||
GetShape D $aLab2 C
|
||||
explode C F
|
||||
set CylNamLab [Label D 0:5]
|
||||
SelectShape D $CylNamLab:1 C_1 C
|
||||
SelectShape D $CylNamLab:2 C_2 C
|
||||
|
||||
explode S E
|
||||
SelectShape D $BoxNamLab:10 S_1 S
|
||||
SelectShape D $BoxNamLab:11 S_3 S
|
||||
|
||||
explode S V
|
||||
SelectShape D $BoxNamLab:21 S_3 S
|
||||
SelectShape D $BoxNamLab:22 S_5 S
|
||||
|
||||
explode C V
|
||||
SelectShape D $CylNamLab:10 C_1 C
|
||||
SelectShape D $CylNamLab:11 C_2 C
|
||||
SelectShape D $CylNamLab:12 C_3 C
|
||||
|
||||
# Save the document
|
||||
set aFile ${imagedir}/OCC9746-Z3.cbf
|
||||
file delete ${aFile}
|
||||
SaveAs D ${aFile}
|
||||
if { ![file exists ${aFile}] } {
|
||||
puts "There is not ${aFile} file; SaveAs command: Error"
|
||||
puts "${BugNumber}: ERROR (case 1)"
|
||||
}
|
||||
catch {exec chmod 777 ${aFile}}
|
||||
|
||||
Close D
|
||||
|
||||
# Restore the document
|
||||
catch {Open ${aFile} DDoc}
|
||||
|
||||
#
|
||||
set BoxNamLab [Label DDoc 0:4]
|
||||
set CylNamLab [Label DDoc 0:5]
|
||||
|
||||
# one Naming argument
|
||||
Attachment DDoc $BoxNamLab:1
|
||||
Attachment DDoc $BoxNamLab:2
|
||||
Attachment DDoc $BoxNamLab:3
|
||||
Attachment DDoc $BoxNamLab:4
|
||||
Attachment DDoc $BoxNamLab:5
|
||||
Attachment DDoc $BoxNamLab:6
|
||||
|
||||
# two Naming arguments
|
||||
Attachment DDoc $BoxNamLab:10
|
||||
Attachment DDoc $BoxNamLab:11
|
||||
GetShape DDoc $BoxNamLab:10
|
||||
GetShape DDoc $BoxNamLab:11
|
||||
|
||||
# three naming arguments
|
||||
Attachment DDoc $BoxNamLab:21
|
||||
Attachment DDoc $BoxNamLab:22
|
||||
GetShape DDoc $BoxNamLab:21
|
||||
GetShape DDoc $BoxNamLab:22
|
||||
|
||||
# one naming argument
|
||||
Attachment DDoc $CylNamLab:1
|
||||
Attachment DDoc $CylNamLab:2
|
||||
GetShape DDoc $CylNamLab:1
|
||||
GetShape DDoc $CylNamLab:2
|
||||
|
||||
# three naming arguments
|
||||
Attachment DDoc $CylNamLab:10
|
||||
GetShape DDoc $CylNamLab:10
|
||||
set Dump1 [DumpSelection DDoc $CylNamLab:10]
|
||||
set Dump2 [DumpSelection DDoc $CylNamLab:10:1]
|
||||
|
||||
Attachment DDoc $CylNamLab:11
|
||||
GetShape DDoc $CylNamLab:11
|
||||
set Dump3 [DumpSelection DDoc $CylNamLab:11]
|
||||
set Dump4 [DumpSelection DDoc $CylNamLab:10:1]
|
||||
|
||||
Attachment DDoc $CylNamLab:12
|
||||
GetShape DDoc $CylNamLab:12
|
||||
set Dump5 [DumpSelection DDoc $CylNamLab:12]
|
||||
set Dump6 [DumpSelection DDoc $CylNamLab:12:1]
|
||||
|
||||
#
|
||||
set Good_Dump1 "IDENTITY VERTEX 0:5:10:1 Stop 0:5:10:1\n"
|
||||
set Good_Dump2 "INTERSECTION VERTEX 0:3:5 0:3:1 0:3:2 Stop 0:3:2\n"
|
||||
set Good_Dump3 "IDENTITY VERTEX 0:5:11:1 Stop 0:5:11:1\n"
|
||||
set Good_Dump4 "INTERSECTION VERTEX 0:3:5 0:3:1 0:3:2 Stop 0:3:2\n"
|
||||
set Good_Dump5 "IDENTITY VERTEX 0:5:12:1 Stop 0:5:12:1\n"
|
||||
set Good_Dump6 "INTERSECTION VERTEX 0:3:3 0:3:5 0:3:1 Stop 0:3:1\n"
|
||||
#
|
||||
|
||||
# Checking
|
||||
set status 0
|
||||
puts ""
|
||||
if { ${Dump1} != ${Good_Dump1} } {
|
||||
set status 1
|
||||
puts "Dump1 : Faulty"
|
||||
} else {
|
||||
puts "Dump1 : OK"
|
||||
}
|
||||
if { ${Dump2} != ${Good_Dump2} } {
|
||||
set status 1
|
||||
puts "Dump2 : Faulty"
|
||||
} else {
|
||||
puts "Dump2 : OK"
|
||||
}
|
||||
if { ${Dump3} != ${Good_Dump3} } {
|
||||
set status 1
|
||||
puts "Dump3 : Faulty"
|
||||
} else {
|
||||
puts "Dump3 : OK"
|
||||
}
|
||||
if { ${Dump4} != ${Good_Dump4} } {
|
||||
set status 1
|
||||
puts "Dump4 : Faulty"
|
||||
} else {
|
||||
puts "Dump4 : OK"
|
||||
}
|
||||
if { ${Dump5} != ${Good_Dump5} } {
|
||||
set status 1
|
||||
puts "Dump5 : Faulty"
|
||||
} else {
|
||||
puts "Dump5 : OK"
|
||||
}
|
||||
if { ${Dump6} != ${Good_Dump6} } {
|
||||
set status 1
|
||||
puts "Dump6 : Faulty"
|
||||
} else {
|
||||
puts "Dump6 : OK"
|
||||
}
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { ${status} != 0 } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
62
tests/bugs/fclasses/bug15489
Executable file
62
tests/bugs/fclasses/bug15489
Executable file
@ -0,0 +1,62 @@
|
||||
puts "==========="
|
||||
puts "OCC15489"
|
||||
puts "==========="
|
||||
|
||||
set BugNumber OCC15489
|
||||
|
||||
######################################################
|
||||
# Constructor gp_Lin2d(A, B, C) creates line with origin point in infinity
|
||||
######################################################
|
||||
|
||||
proc GetPercent {Value GoodValue} {
|
||||
set Percent 0.
|
||||
if {${GoodValue} != 0.} {
|
||||
set Percent [expr abs(${Value} - ${GoodValue}) / abs(double(${GoodValue})) * 100.]
|
||||
} elseif {${Value} != 0.} {
|
||||
set Percent [expr abs(${GoodValue} - ${Value}) / abs(double(${Value})) * 100.]
|
||||
} else {
|
||||
set Percent 0.
|
||||
}
|
||||
return ${Percent}
|
||||
}
|
||||
|
||||
pload QAcommands
|
||||
|
||||
set A 1e-20
|
||||
set B -1.
|
||||
set C 2.
|
||||
|
||||
set OriginList [OCC15489 $A $B $C]
|
||||
regexp {X_0 += +([-0-9.+eE]+)} $OriginList full X_0
|
||||
regexp {Y_0 += +([-0-9.+eE]+)} $OriginList full Y_0
|
||||
|
||||
set percent_max 0.1
|
||||
set good_X_0 -1.9999999999999999e-20
|
||||
set good_Y_0 2
|
||||
set status 0
|
||||
|
||||
set X_0_percent [GetPercent ${X_0} ${good_X_0}]
|
||||
puts "X_0_percent = ${X_0_percent}"
|
||||
if { ${X_0_percent} > ${percent_max} } {
|
||||
puts "X_0: Faulty ${BugNumber}"
|
||||
set status 1
|
||||
} else {
|
||||
puts "X_0: OK ${BugNumber}"
|
||||
}
|
||||
|
||||
set Y_0_percent [GetPercent ${Y_0} ${good_Y_0}]
|
||||
puts "Y_0_percent = ${Y_0_percent}"
|
||||
if { ${Y_0_percent} > ${percent_max} } {
|
||||
puts "Y_0: Faulty ${BugNumber}"
|
||||
set status 1
|
||||
} else {
|
||||
puts "Y_0: OK ${BugNumber}"
|
||||
}
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { ${status} != 0 } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
29
tests/bugs/heal/bug22587
Executable file
29
tests/bugs/heal/bug22587
Executable file
@ -0,0 +1,29 @@
|
||||
puts "================"
|
||||
puts "OCC22587"
|
||||
puts "================"
|
||||
puts ""
|
||||
######################################################################################
|
||||
# Problem with missing seam fixer
|
||||
######################################################################################
|
||||
|
||||
set BugNumber OCC22587
|
||||
|
||||
catch {pload XDE}
|
||||
|
||||
restore [locate_data_file OCC22587-face.brep] f
|
||||
fixshape result f -l -o -h +m -d -s -i -n
|
||||
set info [checkshape result]
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { [regexp {This shape seems to be valid} $info] } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
||||
set square 290.283
|
||||
set 2dviewer 0
|
||||
|
||||
|
||||
|
||||
|
38
tests/bugs/heal/bug22924
Executable file
38
tests/bugs/heal/bug22924
Executable file
@ -0,0 +1,38 @@
|
||||
puts "================"
|
||||
puts "OCC22924"
|
||||
puts "================"
|
||||
puts ""
|
||||
######################################################################################
|
||||
# We need more stable work of ShapeAnalysis_FreeBounds::ConnectEdgesToWires()
|
||||
######################################################################################
|
||||
|
||||
set BugNumber OCC22924
|
||||
|
||||
pload XDE
|
||||
|
||||
set order {1 2 3 4 5 6 7 8 9 10}
|
||||
restore [locate_data_file bug22924_3D_Sketcher.brep] a
|
||||
set err 0
|
||||
set numcheck 100
|
||||
set lord [split $order " "]
|
||||
for {set i 1} {$i <= $numcheck} {incr i} {
|
||||
set val [connectedges r a]
|
||||
set lnum [lindex [split $val \n] 1]
|
||||
set llnum [split $lnum " "]
|
||||
set ll [llength $llnum]
|
||||
for {set j 0} {$j <= $ll} {incr j} {
|
||||
set ref_val [lindex $lord $j]
|
||||
set check_val [lindex $llnum $j]
|
||||
if {$ref_val == $check_val} {
|
||||
continue
|
||||
}
|
||||
incr err
|
||||
}
|
||||
}
|
||||
|
||||
if $err {
|
||||
puts "Error $err"
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK"
|
||||
}
|
14
tests/bugs/iges/bug13627
Executable file
14
tests/bugs/iges/bug13627
Executable file
@ -0,0 +1,14 @@
|
||||
puts "============"
|
||||
puts "OCC13627"
|
||||
puts "============"
|
||||
puts ""
|
||||
########################################################################
|
||||
# Crash during reading a.igs file on Linux (RedHat) platform
|
||||
########################################################################
|
||||
|
||||
set BugNumber OCC13627
|
||||
|
||||
igesread [locate_data_file OCC13627.igs] a *
|
||||
tpcompound result
|
||||
|
||||
set 2dviewer 0
|
16
tests/bugs/iges/bug15755
Executable file
16
tests/bugs/iges/bug15755
Executable file
@ -0,0 +1,16 @@
|
||||
puts "==========="
|
||||
puts "OCC15755"
|
||||
puts "==========="
|
||||
|
||||
set BugNumber OCC15755
|
||||
|
||||
######################################################
|
||||
# IGESData_IGESEntity::NameValue returns nothing when nbname > 1
|
||||
######################################################
|
||||
|
||||
pload QAcommands
|
||||
|
||||
OCC15755 [locate_data_file OCC15755.igs] result
|
||||
|
||||
set 2dviewer 0
|
||||
|
10
tests/bugs/iges/bug16569
Executable file
10
tests/bugs/iges/bug16569
Executable file
@ -0,0 +1,10 @@
|
||||
puts "========"
|
||||
puts "OCC16569"
|
||||
puts "========"
|
||||
puts ""
|
||||
######################################################
|
||||
# Exception in IGESDraw_Planar::Init when allEntities parameter is a null handle
|
||||
######################################################
|
||||
|
||||
igesbrep [locate_data_file OCC16569.igs] a *
|
||||
|
14
tests/bugs/iges/bug16662
Executable file
14
tests/bugs/iges/bug16662
Executable file
@ -0,0 +1,14 @@
|
||||
puts "==========="
|
||||
puts "OCC16662"
|
||||
puts "==========="
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Crash in ShapeAnalysis_Wire::CheckSmall
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC16662
|
||||
|
||||
igesread [locate_data_file OCC16662.igs] a *
|
||||
tpcompound result
|
||||
|
||||
set 2dviewer 0
|
24
tests/bugs/iges/bug17026_1
Executable file
24
tests/bugs/iges/bug17026_1
Executable file
@ -0,0 +1,24 @@
|
||||
puts "============"
|
||||
puts "OCC17026"
|
||||
puts "============"
|
||||
puts ""
|
||||
########################################################################
|
||||
# Problem of reading IGES files
|
||||
########################################################################
|
||||
|
||||
igesread [locate_data_file OCC17026-1.igs] a *
|
||||
tpcompound result
|
||||
|
||||
set square 8.76948e+09
|
||||
set nb_v_good 8
|
||||
set nb_e_good 12
|
||||
set nb_w_good 4
|
||||
set nb_f_good 4
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 2
|
||||
set nb_shape_good 30
|
||||
|
||||
set 2dviewer 0
|
||||
|
24
tests/bugs/iges/bug17026_2
Executable file
24
tests/bugs/iges/bug17026_2
Executable file
@ -0,0 +1,24 @@
|
||||
puts "============"
|
||||
puts "OCC17026"
|
||||
puts "============"
|
||||
puts ""
|
||||
########################################################################
|
||||
# Problem of reading IGES files
|
||||
########################################################################
|
||||
|
||||
igesread [locate_data_file OCC17026-2.igs] a *
|
||||
tpcompound result
|
||||
|
||||
set square 8.80533e+09
|
||||
set nb_v_good 8
|
||||
set nb_e_good 12
|
||||
set nb_w_good 4
|
||||
set nb_f_good 4
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 2
|
||||
set nb_shape_good 30
|
||||
|
||||
set 2dviewer 0
|
||||
|
24
tests/bugs/iges/bug17026_3
Executable file
24
tests/bugs/iges/bug17026_3
Executable file
@ -0,0 +1,24 @@
|
||||
puts "============"
|
||||
puts "OCC17026"
|
||||
puts "============"
|
||||
puts ""
|
||||
########################################################################
|
||||
# Problem of reading IGES files
|
||||
########################################################################
|
||||
|
||||
cpulimit 2000
|
||||
igesread [locate_data_file OCC17026-3.iges] a *
|
||||
tpcompound result
|
||||
|
||||
set square 7.72668e+08
|
||||
set nb_v_good 175
|
||||
set nb_e_good 175
|
||||
set nb_w_good 38
|
||||
set nb_f_good 38
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 2
|
||||
set nb_shape_good 428
|
||||
|
||||
set 2dviewer 0
|
23
tests/bugs/iges/bug17026_4
Executable file
23
tests/bugs/iges/bug17026_4
Executable file
@ -0,0 +1,23 @@
|
||||
puts "============"
|
||||
puts "OCC17026"
|
||||
puts "============"
|
||||
puts ""
|
||||
########################################################################
|
||||
# Problem of reading IGES files
|
||||
########################################################################
|
||||
|
||||
igesread [locate_data_file OCC17026-4.iges] a *
|
||||
tpcompound result
|
||||
|
||||
set square 7.72668e+08
|
||||
set nb_v_good 175
|
||||
set nb_e_good 175
|
||||
set nb_w_good 38
|
||||
set nb_f_good 38
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 2
|
||||
set nb_shape_good 428
|
||||
|
||||
set 2dviewer 0
|
@ -1,5 +1,16 @@
|
||||
set subgroup modalg
|
||||
|
||||
set calcul "p"
|
||||
set type "i"
|
||||
|
||||
proc OFFSETSHAPE {distance faces calcul type} {
|
||||
uplevel #0 explode s f
|
||||
uplevel #0 offsetparameter 1e-7 $calcul $type
|
||||
uplevel #0 offsetload s $distance $faces
|
||||
uplevel #0 offsetperform result
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
27
tests/bugs/modalg/bug11565_1
Executable file
27
tests/bugs/modalg/bug11565_1
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC11565"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean operation "Cut" in 2d cannot cut the hole from the rectangle
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC11565.brep] a
|
||||
explode a
|
||||
|
||||
bop a_1 a_2
|
||||
bopcut result
|
||||
|
||||
set square 28.6255
|
||||
set nb_v_good 12
|
||||
set nb_e_good 12
|
||||
set nb_w_good 2
|
||||
set nb_f_good 1
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 29
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug11565_2
Executable file
27
tests/bugs/modalg/bug11565_2
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC11565"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean operation "Cut" in 2d cannot cut the hole from the rectangle
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC11565.brep] a
|
||||
explode a
|
||||
|
||||
bop a_1 a_3
|
||||
bopcut result
|
||||
|
||||
set square 28.6438
|
||||
set nb_v_good 12
|
||||
set nb_e_good 12
|
||||
set nb_w_good 2
|
||||
set nb_f_good 1
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 29
|
||||
|
||||
set 2dviewer 0
|
||||
|
30
tests/bugs/modalg/bug12507
Executable file
30
tests/bugs/modalg/bug12507
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC12507"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong result of fuse operation
|
||||
#######################################################################
|
||||
|
||||
puts "First shape ..."
|
||||
pcylinder c 3 3
|
||||
explode c e
|
||||
|
||||
puts "Second shape ..."
|
||||
tcopy c_3 e3
|
||||
ttranslate e3 0 6 0
|
||||
|
||||
bop c_3 e3
|
||||
bopfuse result
|
||||
|
||||
set nb_v_good 3
|
||||
set nb_e_good 4
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 9
|
||||
|
||||
set 2dviewer 0
|
30
tests/bugs/modalg/bug12627
Executable file
30
tests/bugs/modalg/bug12627
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC12627"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Classification of a point comparing to a face is incorrect
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC12627
|
||||
|
||||
restore [locate_data_file OCC12627_1.brep] b1
|
||||
restore [locate_data_file OCC12627_2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 272295
|
||||
set nb_v_good 13
|
||||
set nb_e_good 20
|
||||
set nb_w_good 9
|
||||
set nb_f_good 9
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 54
|
||||
|
||||
set 2dviewer 0
|
||||
|
||||
|
82
tests/bugs/modalg/bug12661
Executable file
82
tests/bugs/modalg/bug12661
Executable file
@ -0,0 +1,82 @@
|
||||
puts "================"
|
||||
puts "OCC12661"
|
||||
puts "================"
|
||||
puts ""
|
||||
#######################################################################################
|
||||
# Wrong calculation of bnd box for edge if edge has polygon of triangulation
|
||||
#######################################################################################
|
||||
|
||||
proc GetPercent {Value GoodValue} {
|
||||
set Percent 0.
|
||||
if {${GoodValue} != 0.} {
|
||||
set Percent [expr abs(${Value} - ${GoodValue}) / abs(double(${GoodValue})) * 100.]
|
||||
} elseif {${Value} != 0.} {
|
||||
set Percent [expr abs(${GoodValue} - ${Value}) / abs(double(${Value})) * 100.]
|
||||
} else {
|
||||
set Percent 0.
|
||||
}
|
||||
return ${Percent}
|
||||
}
|
||||
|
||||
set BugNumber OCC12661
|
||||
|
||||
restore [locate_data_file OCC12661.brep] result
|
||||
set res [bounding result]
|
||||
|
||||
set x1 [lindex ${res} 0]
|
||||
set y1 [lindex ${res} 1]
|
||||
set z1 [lindex ${res} 2]
|
||||
set x2 [lindex ${res} 3]
|
||||
set y2 [lindex ${res} 4]
|
||||
set z2 [lindex ${res} 5]
|
||||
|
||||
set good_x1 -6.3659273065258741
|
||||
set good_y1 0.7051405053395956
|
||||
set good_z1 -2.5792617865186296
|
||||
set good_x2 6.3659273065258795
|
||||
set good_y2 7.6599592236605769
|
||||
set good_z2 3.0815250146676485
|
||||
|
||||
set percent_max 0.1
|
||||
set status 0
|
||||
|
||||
set x1_percent [GetPercent ${x1} ${good_x1}]
|
||||
set y1_percent [GetPercent ${y1} ${good_y1}]
|
||||
set z1_percent [GetPercent ${z1} ${good_z1}]
|
||||
set x2_percent [GetPercent ${x2} ${good_x2}]
|
||||
set y2_percent [GetPercent ${y2} ${good_y2}]
|
||||
set z2_percent [GetPercent ${z2} ${good_z2}]
|
||||
|
||||
if {${x1_percent} > ${percent_max}} {
|
||||
puts "Faulty ${BugNumber} : x1 is wrong"
|
||||
set status 1
|
||||
}
|
||||
if {${y1_percent} > ${percent_max}} {
|
||||
puts "Faulty ${BugNumber} : y1 is wrong"
|
||||
set status 1
|
||||
}
|
||||
if {${z1_percent} > ${percent_max}} {
|
||||
puts "Faulty ${BugNumber} : z1 is wrong"
|
||||
set status 1
|
||||
}
|
||||
if {${x2_percent} > ${percent_max}} {
|
||||
puts "Faulty ${BugNumber} : x2 is wrong"
|
||||
set status 1
|
||||
}
|
||||
if {${y2_percent} > ${percent_max}} {
|
||||
puts "Faulty ${BugNumber} : y2 is wrong"
|
||||
set status 1
|
||||
}
|
||||
if {${z2_percent} > ${percent_max}} {
|
||||
puts "Faulty ${BugNumber} : z2 is wrong"
|
||||
set status 1
|
||||
}
|
||||
|
||||
if { ${status} == 0 } {
|
||||
puts "${BugNumber}: OK"
|
||||
} else {
|
||||
puts "${BugNumber}: Faulty"
|
||||
}
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug12918
Executable file
29
tests/bugs/modalg/bug12918
Executable file
@ -0,0 +1,29 @@
|
||||
puts "============"
|
||||
puts "OCC12918"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operations failed
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC12918
|
||||
|
||||
restore [locate_data_file OCC12918_1.brep] b1
|
||||
restore [locate_data_file OCC12918_2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 0.00240038
|
||||
set nb_v_good 24
|
||||
set nb_e_good 36
|
||||
set nb_w_good 14
|
||||
set nb_f_good 14
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 91
|
||||
|
||||
set 2dviewer 1
|
||||
|
29
tests/bugs/modalg/bug13116_1
Executable file
29
tests/bugs/modalg/bug13116_1
Executable file
@ -0,0 +1,29 @@
|
||||
puts "============"
|
||||
puts "OCC13116"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operations produce faulty shape
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC13116
|
||||
|
||||
restore [locate_data_file OCC13116_sh1.brep] b1
|
||||
restore [locate_data_file OCC13116_sh2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 438194
|
||||
set nb_v_good 21
|
||||
set nb_e_good 37
|
||||
set nb_w_good 16
|
||||
set nb_f_good 16
|
||||
set nb_sh_good 2
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 94
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug13116_2
Executable file
27
tests/bugs/modalg/bug13116_2
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13116"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operations produce faulty shape
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13116_sh1.brep] b1
|
||||
restore [locate_data_file OCC13116_sh2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcommon result
|
||||
|
||||
set square 3769.91
|
||||
set nb_v_good 3
|
||||
set nb_e_good 5
|
||||
set nb_w_good 2
|
||||
set nb_f_good 2
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 15
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug13116_3
Executable file
27
tests/bugs/modalg/bug13116_3
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13116"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operations produce faulty shape
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13116_sh1.brep] b1
|
||||
restore [locate_data_file OCC13116_sh2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcut result
|
||||
|
||||
set square 438194
|
||||
set nb_v_good 21
|
||||
set nb_e_good 34
|
||||
set nb_w_good 15
|
||||
set nb_f_good 15
|
||||
set nb_sh_good 2
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 89
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug13116_4
Executable file
27
tests/bugs/modalg/bug13116_4
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13116"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operations produce faulty shape
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13116_sh1.brep] b1
|
||||
restore [locate_data_file OCC13116_sh2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
boptuc result
|
||||
|
||||
set square 3769.89
|
||||
set nb_v_good 3
|
||||
set nb_e_good 8
|
||||
set nb_w_good 3
|
||||
set nb_f_good 3
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 20
|
||||
|
||||
set 2dviewer 0
|
||||
|
47
tests/bugs/modalg/bug13140
Executable file
47
tests/bugs/modalg/bug13140
Executable file
@ -0,0 +1,47 @@
|
||||
puts "============"
|
||||
puts "OCC13140"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Exception during creation pipe on from attached spine and profile
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13140_Spine.brep] Spine
|
||||
restore [locate_data_file OCC13140_Profile.brep] Profile
|
||||
|
||||
pipe result Spine Profile
|
||||
|
||||
set square 3.48689
|
||||
set good_vertex 2
|
||||
set good_edge 3
|
||||
set good_wire 1
|
||||
set good_face 1
|
||||
|
||||
set explode_v_length [llength [explode result v] ]
|
||||
set explode_e_length [llength [explode result e] ]
|
||||
set explode_w_length [llength [explode result w] ]
|
||||
set explode_f_length [llength [explode result f] ]
|
||||
|
||||
if { ${explode_v_length} != ${good_vertex} } {
|
||||
puts "vertex: Faulty"
|
||||
} else {
|
||||
puts "vertex: OK"
|
||||
}
|
||||
if { ${explode_e_length} != ${good_edge} } {
|
||||
puts "edge: Faulty"
|
||||
} else {
|
||||
puts "edge: OK"
|
||||
}
|
||||
if { ${explode_w_length} != ${good_wire} } {
|
||||
puts "wire: Faulty"
|
||||
} else {
|
||||
puts "wire: OK"
|
||||
}
|
||||
if { ${explode_f_length} != ${good_face} } {
|
||||
puts "face: Faulty"
|
||||
} else {
|
||||
puts "face: OK"
|
||||
}
|
||||
|
||||
set 2dviewer 0
|
||||
|
28
tests/bugs/modalg/bug13142
Executable file
28
tests/bugs/modalg/bug13142
Executable file
@ -0,0 +1,28 @@
|
||||
puts "============"
|
||||
puts "OCC13142"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Exception is raised while performing boolean operations
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13142.brep] result
|
||||
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
vsetdispmode 1
|
||||
|
||||
set square 513.007
|
||||
set nb_v_good 34
|
||||
set nb_e_good 66
|
||||
set nb_w_good 47
|
||||
set nb_f_good 42
|
||||
set nb_sh_good 9
|
||||
set nb_sol_good 9
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 3
|
||||
set nb_shape_good 210
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug13186_1
Executable file
29
tests/bugs/modalg/bug13186_1
Executable file
@ -0,0 +1,29 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC13186"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with Boolean operation
|
||||
# Bug is reprodused on Linux platform only
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13186_cutcyl11.brep] b1
|
||||
restore [locate_data_file OCC13186_sphere.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcut result
|
||||
|
||||
set square 42.5841
|
||||
set nb_v_good 19
|
||||
set nb_e_good 25
|
||||
set nb_w_good 12
|
||||
set nb_f_good 7
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 66
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug13186_2
Executable file
29
tests/bugs/modalg/bug13186_2
Executable file
@ -0,0 +1,29 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC13186"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with Boolean operation
|
||||
# Bug is reprodused on Linux platform only
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13186_cutcyl11.brep] b1
|
||||
restore [locate_data_file OCC13186_sphere.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 85.6816
|
||||
set nb_v_good 21
|
||||
set nb_e_good 28
|
||||
set nb_w_good 13
|
||||
set nb_f_good 8
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 73
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug13186_3
Executable file
29
tests/bugs/modalg/bug13186_3
Executable file
@ -0,0 +1,29 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC13186"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with Boolean operation
|
||||
# Bug is reprodused on Linux platform only
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13186_cutcyl11.brep] b1
|
||||
restore [locate_data_file OCC13186_sphere.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcommon result
|
||||
|
||||
set square 14.9648
|
||||
set nb_v_good 8
|
||||
set nb_e_good 11
|
||||
set nb_w_good 7
|
||||
set nb_f_good 5
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 34
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug13186_4
Executable file
29
tests/bugs/modalg/bug13186_4
Executable file
@ -0,0 +1,29 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC13186"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with Boolean operation
|
||||
# Bug is reprodused on Linux platform only
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13186_cutcyl11.brep] b1
|
||||
restore [locate_data_file OCC13186_sphere.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
boptuc result
|
||||
|
||||
set square 58.0624
|
||||
set nb_v_good 10
|
||||
set nb_e_good 14
|
||||
set nb_w_good 8
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 41
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug13209_1
Executable file
27
tests/bugs/modalg/bug13209_1
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13209"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Exception is raised while performing boolean operations
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] b1
|
||||
restore [locate_data_file OCC13209_s2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 17308.3
|
||||
set nb_v_good 13
|
||||
set nb_e_good 25
|
||||
set nb_w_good 13
|
||||
set nb_f_good 12
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 66
|
||||
|
||||
set 2dviewer 0
|
||||
|
30
tests/bugs/modalg/bug13209_2
Executable file
30
tests/bugs/modalg/bug13209_2
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC13209"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Exception is raised while performing boolean operations
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] b1
|
||||
restore [locate_data_file OCC13209_s2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcommon result
|
||||
|
||||
set square 2990.42
|
||||
set nb_v_good 13
|
||||
set nb_e_good 23
|
||||
set nb_w_good 10
|
||||
set nb_f_good 10
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 59
|
||||
|
||||
set 2dviewer 0
|
||||
|
||||
|
||||
|
||||
|
27
tests/bugs/modalg/bug13209_3
Executable file
27
tests/bugs/modalg/bug13209_3
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13209"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Exception is raised while performing boolean operations
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] b1
|
||||
restore [locate_data_file OCC13209_s2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcut result
|
||||
|
||||
set square 17292.5
|
||||
set nb_v_good 13
|
||||
set nb_e_good 26
|
||||
set nb_w_good 12
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 65
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug13209_4
Executable file
27
tests/bugs/modalg/bug13209_4
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13209"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Exception is raised while performing boolean operations
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] b1
|
||||
restore [locate_data_file OCC13209_s2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
boptuc result
|
||||
|
||||
set square 3006.19
|
||||
set nb_v_good 11
|
||||
set nb_e_good 18
|
||||
set nb_w_good 11
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 3
|
||||
set nb_sol_good 3
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 58
|
||||
|
||||
set 2dviewer 0
|
||||
|
26
tests/bugs/modalg/bug13211_1
Executable file
26
tests/bugs/modalg/bug13211_1
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13211-f14.brep] b1
|
||||
restore [locate_data_file OCC13211-f24.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopsection result
|
||||
|
||||
set length 37.7057
|
||||
set nb_v_good 5
|
||||
set nb_e_good 4
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 10
|
||||
|
||||
set 2dviewer 0
|
27
tests/bugs/modalg/bug13211_10
Executable file
27
tests/bugs/modalg/bug13211_10
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] s1
|
||||
restore [locate_data_file OCC13209_s2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
boptuc result
|
||||
|
||||
set square 3006.19
|
||||
set nb_v_good 11
|
||||
set nb_e_good 18
|
||||
set nb_w_good 11
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 3
|
||||
set nb_sol_good 3
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 58
|
||||
|
||||
set 2dviewer 0
|
||||
|
26
tests/bugs/modalg/bug13211_11
Executable file
26
tests/bugs/modalg/bug13211_11
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] s1
|
||||
restore [locate_data_file OCC13209_s2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopsection result
|
||||
|
||||
set length 228.699
|
||||
set nb_v_good 13
|
||||
set nb_e_good 15
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 29
|
||||
|
||||
set 2dviewer 0
|
46
tests/bugs/modalg/bug13211_2
Executable file
46
tests/bugs/modalg/bug13211_2
Executable file
@ -0,0 +1,46 @@
|
||||
puts "TODO ?OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC13211
|
||||
|
||||
vertex v1 136.06, 187.51, 0.0
|
||||
vertex v2 136.06, 143.01, 0.0
|
||||
edge e1 v1 v2
|
||||
vertex v3 136.06, 143.01, 0.0
|
||||
vertex v4 128.08, 143.01, 0.0
|
||||
edge e2 v3 v4
|
||||
vertex v5 128.08, 143.01, 0.0
|
||||
vertex v6 127.88, 164.75, 0.0
|
||||
edge e3 v5 v6
|
||||
vertex v7 127.88, 164.75, 0.0
|
||||
vertex v8 116.11, 176.00, 0.0
|
||||
edge e4 v7 v8
|
||||
vertex v9 116.11, 176.00, 0.0
|
||||
vertex v10 136.06, 187.51, 0.0
|
||||
edge e5 v9 v10
|
||||
wire twire e1 e2 e3 e4 e5
|
||||
mkplane tface twire
|
||||
revol r1 tface 153.08, 143.01 0.0 1 0 0 360 1
|
||||
revol r2 tface 136.06, 68.01, 0.0 0 1 0 360 1
|
||||
|
||||
bop r1 r2
|
||||
bopfuse result
|
||||
|
||||
set square 17308.3
|
||||
set nb_v_good 13
|
||||
set nb_e_good 25
|
||||
set nb_w_good 13
|
||||
set nb_f_good 12
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 66
|
||||
|
||||
set 2dviewer 0
|
43
tests/bugs/modalg/bug13211_3
Executable file
43
tests/bugs/modalg/bug13211_3
Executable file
@ -0,0 +1,43 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
vertex v1 136.06, 187.51, 0.0
|
||||
vertex v2 136.06, 143.01, 0.0
|
||||
edge e1 v1 v2
|
||||
vertex v3 136.06, 143.01, 0.0
|
||||
vertex v4 128.08, 143.01, 0.0
|
||||
edge e2 v3 v4
|
||||
vertex v5 128.08, 143.01, 0.0
|
||||
vertex v6 127.88, 164.75, 0.0
|
||||
edge e3 v5 v6
|
||||
vertex v7 127.88, 164.75, 0.0
|
||||
vertex v8 116.11, 176.00, 0.0
|
||||
edge e4 v7 v8
|
||||
vertex v9 116.11, 176.00, 0.0
|
||||
vertex v10 136.06, 187.51, 0.0
|
||||
edge e5 v9 v10
|
||||
wire twire e1 e2 e3 e4 e5
|
||||
mkplane tface twire
|
||||
revol r1 tface 153.08, 143.01 0.0 1 0 0 360 1
|
||||
revol r2 tface 136.06, 68.01, 0.0 0 1 0 360 1
|
||||
|
||||
bop r1 r2
|
||||
bopcommon result
|
||||
|
||||
set square 2990.42
|
||||
set nb_v_good 13
|
||||
set nb_e_good 23
|
||||
set nb_w_good 10
|
||||
set nb_f_good 10
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 59
|
||||
|
||||
set 2dviewer 0
|
44
tests/bugs/modalg/bug13211_4
Executable file
44
tests/bugs/modalg/bug13211_4
Executable file
@ -0,0 +1,44 @@
|
||||
puts "TODO ?OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
vertex v1 136.06, 187.51, 0.0
|
||||
vertex v2 136.06, 143.01, 0.0
|
||||
edge e1 v1 v2
|
||||
vertex v3 136.06, 143.01, 0.0
|
||||
vertex v4 128.08, 143.01, 0.0
|
||||
edge e2 v3 v4
|
||||
vertex v5 128.08, 143.01, 0.0
|
||||
vertex v6 127.88, 164.75, 0.0
|
||||
edge e3 v5 v6
|
||||
vertex v7 127.88, 164.75, 0.0
|
||||
vertex v8 116.11, 176.00, 0.0
|
||||
edge e4 v7 v8
|
||||
vertex v9 116.11, 176.00, 0.0
|
||||
vertex v10 136.06, 187.51, 0.0
|
||||
edge e5 v9 v10
|
||||
wire twire e1 e2 e3 e4 e5
|
||||
mkplane tface twire
|
||||
revol r1 tface 153.08, 143.01 0.0 1 0 0 360 1
|
||||
revol r2 tface 136.06, 68.01, 0.0 0 1 0 360 1
|
||||
|
||||
bop r1 r2
|
||||
bopcut result
|
||||
|
||||
set square 17292.5
|
||||
set nb_v_good 13
|
||||
set nb_e_good 26
|
||||
set nb_w_good 12
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 65
|
||||
|
||||
set 2dviewer 0
|
43
tests/bugs/modalg/bug13211_5
Executable file
43
tests/bugs/modalg/bug13211_5
Executable file
@ -0,0 +1,43 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
vertex v1 136.06, 187.51, 0.0
|
||||
vertex v2 136.06, 143.01, 0.0
|
||||
edge e1 v1 v2
|
||||
vertex v3 136.06, 143.01, 0.0
|
||||
vertex v4 128.08, 143.01, 0.0
|
||||
edge e2 v3 v4
|
||||
vertex v5 128.08, 143.01, 0.0
|
||||
vertex v6 127.88, 164.75, 0.0
|
||||
edge e3 v5 v6
|
||||
vertex v7 127.88, 164.75, 0.0
|
||||
vertex v8 116.11, 176.00, 0.0
|
||||
edge e4 v7 v8
|
||||
vertex v9 116.11, 176.00, 0.0
|
||||
vertex v10 136.06, 187.51, 0.0
|
||||
edge e5 v9 v10
|
||||
wire twire e1 e2 e3 e4 e5
|
||||
mkplane tface twire
|
||||
revol r1 tface 153.08, 143.01 0.0 1 0 0 360 1
|
||||
revol r2 tface 136.06, 68.01, 0.0 0 1 0 360 1
|
||||
|
||||
bop r1 r2
|
||||
boptuc result
|
||||
|
||||
set square 3006.19
|
||||
set nb_v_good 11
|
||||
set nb_e_good 18
|
||||
set nb_w_good 11
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 3
|
||||
set nb_sol_good 3
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 58
|
||||
|
||||
set 2dviewer 0
|
43
tests/bugs/modalg/bug13211_6
Executable file
43
tests/bugs/modalg/bug13211_6
Executable file
@ -0,0 +1,43 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
vertex v1 136.06, 187.51, 0.0
|
||||
vertex v2 136.06, 143.01, 0.0
|
||||
edge e1 v1 v2
|
||||
vertex v3 136.06, 143.01, 0.0
|
||||
vertex v4 128.08, 143.01, 0.0
|
||||
edge e2 v3 v4
|
||||
vertex v5 128.08, 143.01, 0.0
|
||||
vertex v6 127.88, 164.75, 0.0
|
||||
edge e3 v5 v6
|
||||
vertex v7 127.88, 164.75, 0.0
|
||||
vertex v8 116.11, 176.00, 0.0
|
||||
edge e4 v7 v8
|
||||
vertex v9 116.11, 176.00, 0.0
|
||||
vertex v10 136.06, 187.51, 0.0
|
||||
edge e5 v9 v10
|
||||
wire twire e1 e2 e3 e4 e5
|
||||
mkplane tface twire
|
||||
revol r1 tface 153.08, 143.01 0.0 1 0 0 360 1
|
||||
revol r2 tface 136.06, 68.01, 0.0 0 1 0 360 1
|
||||
|
||||
bop r1 r2
|
||||
bopsection result
|
||||
|
||||
set length 228.699
|
||||
set nb_v_good_vertex 13
|
||||
set nb_e_good_edge 15
|
||||
set nb_w_good_wire 0
|
||||
set nb_f_good_face 0
|
||||
set nb_sh_good_shell 0
|
||||
set nb_sol_good_solid 0
|
||||
set nb_compsol_good_compsolid 0
|
||||
set nb_compound_good_compound 1
|
||||
set nb_shape_good_shape 29
|
||||
|
||||
set 2dviewer 0
|
26
tests/bugs/modalg/bug13211_7
Executable file
26
tests/bugs/modalg/bug13211_7
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] s1
|
||||
restore [locate_data_file OCC13209_s2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopfuse result
|
||||
|
||||
set square 17308.3
|
||||
set nb_v_good 13
|
||||
set nb_e_good 25
|
||||
set nb_w_good 13
|
||||
set nb_f_good 12
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 66
|
||||
|
||||
set 2dviewer 0
|
26
tests/bugs/modalg/bug13211_8
Executable file
26
tests/bugs/modalg/bug13211_8
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] s1
|
||||
restore [locate_data_file OCC13209_s2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopcommon result
|
||||
|
||||
set square 2990.42
|
||||
set nb_v_good 13
|
||||
set nb_e_good 23
|
||||
set nb_w_good 10
|
||||
set nb_f_good 10
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 59
|
||||
|
||||
set 2dviewer 0
|
26
tests/bugs/modalg/bug13211_9
Executable file
26
tests/bugs/modalg/bug13211_9
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC13211"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong treatment of conical faces in BOP algorithm
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC13209_s1.brep] s1
|
||||
restore [locate_data_file OCC13209_s2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopcut result
|
||||
|
||||
set square 17292.5
|
||||
set nb_v_good 13
|
||||
set nb_e_good 26
|
||||
set nb_w_good 12
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 65
|
||||
|
||||
set 2dviewer 0
|
54
tests/bugs/modalg/bug13395
Executable file
54
tests/bugs/modalg/bug13395
Executable file
@ -0,0 +1,54 @@
|
||||
puts "============"
|
||||
puts "OCC13395"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Pipe is constructed wrongly on a result of revolution
|
||||
#######################################################################
|
||||
|
||||
# revolution of an edge to obtain half-disk
|
||||
line line1 0 0 0 1 0 0
|
||||
mkedge edge1 line1 0 10
|
||||
revol revol1 edge1 0 0 0 0 1 0 180
|
||||
|
||||
# spine for pipe
|
||||
line line2 0 0 0 0 1 0
|
||||
mkedge edge2 line2 0 10
|
||||
wire wire_spine edge2
|
||||
|
||||
# invalid pipe
|
||||
pipe result wire_spine revol1
|
||||
|
||||
set square 828.319
|
||||
set good_vertex 6
|
||||
set good_edge 9
|
||||
set good_wire 5
|
||||
set good_face 5
|
||||
set explode_v_length [llength [explode result v] ]
|
||||
set explode_e_length [llength [explode result e] ]
|
||||
set explode_w_length [llength [explode result w] ]
|
||||
set explode_f_length [llength [explode result f] ]
|
||||
|
||||
if { ${explode_v_length} != ${good_vertex} } {
|
||||
puts "vertex: Faulty"
|
||||
} else {
|
||||
puts "vertex: OK"
|
||||
}
|
||||
if { ${explode_e_length} != ${good_edge} } {
|
||||
puts "edge: Faulty"
|
||||
} else {
|
||||
puts "edge: OK"
|
||||
}
|
||||
if { ${explode_w_length} != ${good_wire} } {
|
||||
puts "wire: Faulty"
|
||||
} else {
|
||||
puts "wire: OK"
|
||||
}
|
||||
if { ${explode_f_length} != ${good_face} } {
|
||||
puts "face: Faulty"
|
||||
} else {
|
||||
puts "face: OK"
|
||||
}
|
||||
|
||||
set 2dviewer 0
|
||||
|
30
tests/bugs/modalg/bug13538
Executable file
30
tests/bugs/modalg/bug13538
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC13538"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with Boolean operation on Shells
|
||||
#######################################################################
|
||||
|
||||
box a 100 100 100
|
||||
box b 100 100 100
|
||||
ttranslate b 0 0 100
|
||||
explode a Sh
|
||||
explode b Sh
|
||||
|
||||
bop a_1 b_1
|
||||
bopcommon result
|
||||
|
||||
set square 10000
|
||||
set nb_v_good 4
|
||||
set nb_e_good 4
|
||||
set nb_w_good 1
|
||||
set nb_f_good 1
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 12
|
||||
|
||||
set 2viewer 0
|
||||
|
29
tests/bugs/modalg/bug14506
Executable file
29
tests/bugs/modalg/bug14506
Executable file
@ -0,0 +1,29 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
|
||||
puts "============"
|
||||
puts "OCC14506"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong section of faces with bspline geometry
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file bug14506_face1.brep] face1
|
||||
restore [locate_data_file bug14506_face2.brep] face2
|
||||
|
||||
bop face1 face2
|
||||
bopsection result
|
||||
|
||||
set length 129.639
|
||||
set nb_v_good 2
|
||||
set nb_e_good 2
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 5
|
||||
|
||||
set 2dviewer 0
|
||||
|
26
tests/bugs/modalg/bug14536
Executable file
26
tests/bugs/modalg/bug14536
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC14536"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operation Algorithm failed
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC14536-sh1.brep] s1
|
||||
restore [locate_data_file OCC14536-sh2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopfuse result
|
||||
|
||||
set square 330318
|
||||
set nb_v_good 7
|
||||
set nb_e_good 13
|
||||
set nb_w_good 6
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 35
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug14643
Executable file
39
tests/bugs/modalg/bug14643
Executable file
@ -0,0 +1,39 @@
|
||||
puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
|
||||
puts "============"
|
||||
puts "OCC14643"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Checkshape command gives wrong result for compound of 66 solids
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC14643
|
||||
|
||||
restore [locate_data_file OCC14643.brep] result
|
||||
|
||||
set square 8.63143e+07
|
||||
set nb_v_good 108
|
||||
set nb_e_good 282
|
||||
set nb_w_good 239
|
||||
set nb_f_good 259
|
||||
set nb_sh_good 66
|
||||
set nb_sol_good 66
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 1021
|
||||
|
||||
puts ""
|
||||
puts "Check each solid"
|
||||
explode result
|
||||
for {set k 1} {$k < 67} {incr k} {
|
||||
puts ""
|
||||
puts [eval whatis result_$k]
|
||||
puts [eval checkshape result_$k]
|
||||
wait .5
|
||||
}
|
||||
puts ""
|
||||
puts "End check each solid"
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug14777
Executable file
27
tests/bugs/modalg/bug14777
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC14777"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean Operation Algorithm failed
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC14777-s1.brep] s1
|
||||
restore [locate_data_file OCC14777-s2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopcut result
|
||||
|
||||
set square 10653.3
|
||||
set nb_v_good 6
|
||||
set nb_e_good 9
|
||||
set nb_w_good 5
|
||||
set nb_f_good 5
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 28
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug14780
Executable file
29
tests/bugs/modalg/bug14780
Executable file
@ -0,0 +1,29 @@
|
||||
puts "============"
|
||||
puts "OCC14780"
|
||||
puts "============"
|
||||
puts ""
|
||||
######################################################
|
||||
# Boolean operations (section, fuse, common, cut) give incorrect result
|
||||
######################################################
|
||||
|
||||
set BugNumber OCC14780
|
||||
|
||||
restore [locate_data_file OCC14780_part1.brep] s1
|
||||
restore [locate_data_file OCC14780_part2.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopsection result
|
||||
|
||||
regexp {nb alone Vertices +: +([-0-9.+eE]+)} [checksection result] full Vertices
|
||||
|
||||
set good_Vertices 0
|
||||
if { ${Vertices} != ${good_Vertices} } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
||||
set length 171.289
|
||||
set 2dviewer 0
|
||||
|
||||
|
43
tests/bugs/modalg/bug15036
Executable file
43
tests/bugs/modalg/bug15036
Executable file
@ -0,0 +1,43 @@
|
||||
puts "============"
|
||||
puts "OCC15936"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong shape build by revolution algorithm
|
||||
#######################################################################
|
||||
|
||||
vertex v1 0 725 20
|
||||
vertex v2 0 709 20
|
||||
vertex v3 0 709 230
|
||||
vertex v4 0 645 230
|
||||
vertex v5 0 645 320
|
||||
vertex v6 0 805 320
|
||||
vertex v7 0 805 230
|
||||
vertex v8 0 741 230
|
||||
vertex v9 0 741 20
|
||||
edge e12 v1 v2
|
||||
edge e23 v2 v3
|
||||
edge e34 v3 v4
|
||||
edge e45 v4 v5
|
||||
edge e56 v5 v6
|
||||
edge e67 v6 v7
|
||||
edge e78 v7 v8
|
||||
edge e89 v8 v9
|
||||
edge e91 v9 v1
|
||||
wire w e12 e23 e34 e45 e56 e67 e78 e89 e91
|
||||
mkplane fr w 1
|
||||
|
||||
revol result fr 0.001428571428572667 640.5285714285715 20 -1.691188905560395E-05 0.9999999998569939 0 360
|
||||
|
||||
set square 1.03597e+06
|
||||
set nb_v_good 9
|
||||
set nb_e_good 14
|
||||
set nb_w_good 13
|
||||
set nb_f_good 9
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 47
|
||||
|
||||
set 2dviewer 0
|
25
tests/bugs/modalg/bug15836
Executable file
25
tests/bugs/modalg/bug15836
Executable file
@ -0,0 +1,25 @@
|
||||
puts "============"
|
||||
puts "OCC15836"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong visualization of filleted shape on IRIX32 platform
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15836.brep] f
|
||||
explode f e
|
||||
|
||||
fillet result f 10 f_8 15 f_9 20 f_11 25 f_17 30 f_21 35 f_29
|
||||
|
||||
set square 42816.6
|
||||
set nb_v_good 31
|
||||
set nb_e_good 50
|
||||
set nb_w_good 21
|
||||
set nb_f_good 21
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 126
|
||||
|
||||
set 2dviewer 0
|
28
tests/bugs/modalg/bug15850
Executable file
28
tests/bugs/modalg/bug15850
Executable file
@ -0,0 +1,28 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC15850"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Regression in BOP - wrong results for simple shapes with Bspline geometry
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15850_bb.brep] bb
|
||||
restore [locate_data_file OCC15850_bc.brep] bc
|
||||
|
||||
bop bb bc
|
||||
bopcut result
|
||||
|
||||
set square 732.453
|
||||
set nb_v_good 12
|
||||
set nb_e_good 17
|
||||
set nb_w_good 9
|
||||
set nb_f_good 7
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 48
|
||||
|
||||
set 2dviewer 0
|
||||
|
28
tests/bugs/modalg/bug15850_1
Executable file
28
tests/bugs/modalg/bug15850_1
Executable file
@ -0,0 +1,28 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC15850"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Regression in BOP - wrong results for simple shapes with Bspline geometry
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15850_bb.brep] bb
|
||||
restore [locate_data_file OCC15850_bc.brep] bc
|
||||
|
||||
bop bb bc
|
||||
boptuc result
|
||||
|
||||
set square 301.996
|
||||
set nb_v_good 6
|
||||
set nb_e_good 8
|
||||
set nb_w_good 6
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 2
|
||||
set nb_sol_good 2
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 31
|
||||
|
||||
set 2dviewer 0
|
||||
|
28
tests/bugs/modalg/bug15850_2
Executable file
28
tests/bugs/modalg/bug15850_2
Executable file
@ -0,0 +1,28 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC15850"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Regression in BOP - wrong results for simple shapes with Bspline geometry
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15850_bb.brep] bb
|
||||
restore [locate_data_file OCC15850_bc.brep] bc
|
||||
|
||||
bop bb bc
|
||||
bopcommon result
|
||||
|
||||
set square 245.55
|
||||
set nb_v_good 4
|
||||
set nb_e_good 5
|
||||
set nb_w_good 3
|
||||
set nb_f_good 3
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 18
|
||||
|
||||
set 2dviewer 0
|
||||
|
28
tests/bugs/modalg/bug15850_3
Executable file
28
tests/bugs/modalg/bug15850_3
Executable file
@ -0,0 +1,28 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC15850"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Regression in BOP - wrong results for simple shapes with Bspline geometry
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15850_bb.brep] bb
|
||||
restore [locate_data_file OCC15850_bc.brep] bc
|
||||
|
||||
bop bb bc
|
||||
bopfuse result
|
||||
|
||||
set square 788.9
|
||||
set nb_v_good 14
|
||||
set nb_e_good 20
|
||||
set nb_w_good 12
|
||||
set nb_f_good 10
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 59
|
||||
|
||||
set 2dviewer 0
|
||||
|
38
tests/bugs/modalg/bug15850_4
Executable file
38
tests/bugs/modalg/bug15850_4
Executable file
@ -0,0 +1,38 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC15850"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Regression in BOP - wrong results for simple shapes with Bspline geometry
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC15850
|
||||
|
||||
restore [locate_data_file OCC15850_bb.brep] bb
|
||||
restore [locate_data_file OCC15850_bc.brep] bc
|
||||
|
||||
bop bb bc
|
||||
bopsection result
|
||||
|
||||
set length 37.6991
|
||||
set nb_v_good 4
|
||||
set nb_e_good 4
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 9
|
||||
|
||||
regexp {nb alone Vertices +: +([-0-9.+eE]+)} [checksection result] full Vertices
|
||||
set good_Vertices 0
|
||||
if { ${Vertices} != ${good_Vertices} } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
||||
set 2dviewer 0
|
||||
|
26
tests/bugs/modalg/bug15943
Executable file
26
tests/bugs/modalg/bug15943
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC15943"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong result of boolen fuse
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15943_p1.brep] b1
|
||||
restore [locate_data_file OCC15943_p2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 266944
|
||||
set nb_v_good 12
|
||||
set nb_e_good 20
|
||||
set nb_w_good 10
|
||||
set nb_f_good 10
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 55
|
||||
|
||||
set 2dviewer 0
|
30
tests/bugs/modalg/bug15968_1
Executable file
30
tests/bugs/modalg/bug15968_1
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC15968"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Result of checkshape command depends on order of subshapes in a shape
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15968.brep] s
|
||||
|
||||
explode s f
|
||||
|
||||
# shell 1
|
||||
shape s1 sh
|
||||
add s_2 s1
|
||||
add s_1 s1
|
||||
renamevar s1 result
|
||||
|
||||
set square 164
|
||||
set nb_v_good 10
|
||||
set nb_e_good 11
|
||||
set nb_w_good 3
|
||||
set nb_f_good 2
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 27
|
||||
|
||||
set 2dviewer 0
|
30
tests/bugs/modalg/bug15968_2
Executable file
30
tests/bugs/modalg/bug15968_2
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC15968"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Result of checkshape command depends on order of subshapes in a shape
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC15968.brep] s
|
||||
|
||||
explode s f
|
||||
|
||||
# shell 2
|
||||
shape s2 sh
|
||||
add s_1 s2
|
||||
add s_2 s2
|
||||
renamevar s2 result
|
||||
|
||||
set square 164
|
||||
set nb_v_good 10
|
||||
set nb_e_good 11
|
||||
set nb_w_good 3
|
||||
set nb_f_good 2
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 27
|
||||
|
||||
set 2dviewer 0
|
44
tests/bugs/modalg/bug16517_1
Executable file
44
tests/bugs/modalg/bug16517_1
Executable file
@ -0,0 +1,44 @@
|
||||
puts "============"
|
||||
puts "OCC16517"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Cylindrical projection is wrong
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC16517
|
||||
|
||||
restore [locate_data_file OCC16517_c.brep] c
|
||||
restore [locate_data_file OCC16517_s.brep] s
|
||||
|
||||
set Result_List [prj p c s 0 0 1]
|
||||
set Result_Numbers [llength ${Result_List}]
|
||||
set mistake 0
|
||||
if { ${Result_Numbers} != 2 } {
|
||||
puts "Faulty ${BugNumber} : projection numbers are wrong"
|
||||
set mistake 1
|
||||
} else {
|
||||
puts "First projection ..."
|
||||
renamevar p_1 result
|
||||
|
||||
set status 0
|
||||
set length 110.167
|
||||
set nb_v_good 1
|
||||
set nb_e_good 1
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 3
|
||||
}
|
||||
|
||||
if { ${mistake} != 0 } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
||||
set 2dviewer 0
|
||||
|
46
tests/bugs/modalg/bug16517_2
Executable file
46
tests/bugs/modalg/bug16517_2
Executable file
@ -0,0 +1,46 @@
|
||||
puts "============"
|
||||
puts "OCC16517"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Cylindrical projection is wrong
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC16517
|
||||
|
||||
restore [locate_data_file OCC16517_c.brep] c
|
||||
restore [locate_data_file OCC16517_s.brep] s
|
||||
|
||||
set Result_List [prj p c s 0 0 1]
|
||||
set Result_Numbers [llength ${Result_List}]
|
||||
set mistake 0
|
||||
if { ${Result_Numbers} != 2 } {
|
||||
puts "Faulty ${BugNumber} : projection numbers are wrong"
|
||||
set mistake 1
|
||||
} else {
|
||||
puts "Second projection ..."
|
||||
renamevar p_2 result
|
||||
set status 0
|
||||
|
||||
set length 110.167
|
||||
set nb_v_good 1
|
||||
set nb_e_good 1
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 3
|
||||
}
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { ${mistake} != 0 } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
||||
set 2dviewer 0
|
||||
|
26
tests/bugs/modalg/bug16667_1
Executable file
26
tests/bugs/modalg/bug16667_1
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC16667"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# 2D Offset algorithm fails
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC16667-face.brep] a
|
||||
|
||||
mkoffset resoffset a 1 20
|
||||
renamevar resoffset_1 result
|
||||
|
||||
set length 1542.3
|
||||
set nb_v_good 7
|
||||
set nb_e_good 7
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 15
|
||||
|
||||
set 2dviewer 0
|
||||
|
26
tests/bugs/modalg/bug16667_2
Executable file
26
tests/bugs/modalg/bug16667_2
Executable file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC16667"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# 2D Offset algorithm fails
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC16667-face.brep] a
|
||||
|
||||
mkoffset resoffset a 1 -20
|
||||
renamevar resoffset_1 result
|
||||
|
||||
set length 1188.62
|
||||
set nb_v_good 5
|
||||
set nb_e_good 5
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 11
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug16667_3
Executable file
27
tests/bugs/modalg/bug16667_3
Executable file
@ -0,0 +1,27 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC16667"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# 2D Offset algorithm fails
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC16667-wire.brep] a
|
||||
|
||||
mkoffset resoffset a 1 20
|
||||
renamevar resoffset_1 result
|
||||
|
||||
set length 1451.49
|
||||
set nb_v_good 8
|
||||
set nb_e_good 8
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 17
|
||||
|
||||
set 2dviewer 0
|
||||
|
28
tests/bugs/modalg/bug16667_4
Executable file
28
tests/bugs/modalg/bug16667_4
Executable file
@ -0,0 +1,28 @@
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC16667"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# 2D Offset algorithm fails
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC16667-wire.brep] a
|
||||
|
||||
mkoffset resoffset a 1 -20
|
||||
renamevar resoffset_1 result
|
||||
|
||||
set length 1200.16
|
||||
set nb_v_good 8
|
||||
set nb_e_good 8
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 17
|
||||
|
||||
set 2dviewer 0
|
||||
|
||||
|
27
tests/bugs/modalg/bug16781
Executable file
27
tests/bugs/modalg/bug16781
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC16781"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Wrong result of Cut operation.
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC16781-wing_solid.brep] s1
|
||||
restore [locate_data_file OCC16781-extr.brep] s2
|
||||
|
||||
bop s1 s2
|
||||
bopcut result
|
||||
|
||||
set square 3.92094e+07
|
||||
set nb_v_good 14
|
||||
set nb_e_good 21
|
||||
set nb_w_good 9
|
||||
set nb_f_good 9
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 56
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug17194_1
Executable file
29
tests/bugs/modalg/bug17194_1
Executable file
@ -0,0 +1,29 @@
|
||||
puts "============"
|
||||
puts "OCC17194"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Incorrect section of a face got by extrusion of an arc of circle
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC17194
|
||||
|
||||
circle f 0 0 0 0 0 1 1 0 0 20
|
||||
mkedge f f -pi/2 pi/2
|
||||
prism f f 50 0 30
|
||||
plane pl 10 0 0 1 0 4
|
||||
mkface pl pl
|
||||
bsection result f pl
|
||||
|
||||
set nb_v_good 4
|
||||
set nb_e_good 2
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 7
|
||||
|
||||
set length 15.8064
|
||||
set 2dviewer 0
|
30
tests/bugs/modalg/bug17194_2
Executable file
30
tests/bugs/modalg/bug17194_2
Executable file
@ -0,0 +1,30 @@
|
||||
puts "============"
|
||||
puts "OCC17194"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Incorrect section of a face got by extrusion of an arc of circle
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC17194
|
||||
|
||||
circle f 0 0 0 0 0 1 1 0 0 20
|
||||
mkedge f f -pi/2 pi/2
|
||||
prism f f 50 0 30
|
||||
plane pl 10 0 10 1 0 4
|
||||
mkface pl pl
|
||||
bsection result f pl
|
||||
|
||||
set nb_v_good 2
|
||||
set nb_e_good 1
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 4
|
||||
|
||||
set length 54.6122
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug17357_1
Executable file
27
tests/bugs/modalg/bug17357_1
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC17357"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Any boolean operation is impossible between attached shapes
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC17357-1.brep] b1
|
||||
restore [locate_data_file OCC17357-2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcommon result
|
||||
|
||||
set square 1.18671
|
||||
set nb_v_good 10
|
||||
set nb_e_good 18
|
||||
set nb_w_good 8
|
||||
set nb_f_good 8
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 47
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug17357_2
Executable file
27
tests/bugs/modalg/bug17357_2
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC17357"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Any boolean operation is impossible between attached shapes
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC17357-1.brep] b1
|
||||
restore [locate_data_file OCC17357-2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopfuse result
|
||||
|
||||
set square 241.111
|
||||
set nb_v_good 16
|
||||
set nb_e_good 24
|
||||
set nb_w_good 12
|
||||
set nb_f_good 10
|
||||
set nb_sh_goodl 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 65
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug17357_3
Executable file
27
tests/bugs/modalg/bug17357_3
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC17357"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Any boolean operation is impossible between attached shapes
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC17357-1.brep] b1
|
||||
restore [locate_data_file OCC17357-2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopcut result
|
||||
|
||||
set square 241.111
|
||||
set nb_v_good 18
|
||||
set nb_e_good 30
|
||||
set nb_w_good 14
|
||||
set nb_f_good 12
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 77
|
||||
|
||||
set 2dviewer 0
|
||||
|
27
tests/bugs/modalg/bug17357_4
Executable file
27
tests/bugs/modalg/bug17357_4
Executable file
@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC17357"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Any boolean operation is impossible between attached shapes
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC17357-1.brep] b1
|
||||
restore [locate_data_file OCC17357-2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
boptuc result
|
||||
|
||||
set square 1.18671
|
||||
set nb_v_good 8
|
||||
set nb_e_good 12
|
||||
set nb_w_good 6
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 35
|
||||
|
||||
set 2dviewer 0
|
||||
|
18
tests/bugs/modalg/bug17357_5
Executable file
18
tests/bugs/modalg/bug17357_5
Executable file
@ -0,0 +1,18 @@
|
||||
puts "============"
|
||||
puts "OCC17357"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Any boolean operation is impossible between attached shapes
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC17357-1.brep] b1
|
||||
restore [locate_data_file OCC17357-2.brep] b2
|
||||
|
||||
bop b1 b2
|
||||
bopsection result
|
||||
|
||||
set length 3.84991
|
||||
|
||||
set 2dviewer 0
|
||||
|
29
tests/bugs/modalg/bug18186
Executable file
29
tests/bugs/modalg/bug18186
Executable file
@ -0,0 +1,29 @@
|
||||
puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
|
||||
puts "============"
|
||||
puts "OCC18186"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Boolean operation algo fails
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file OCC18186_r3.brep] bb
|
||||
restore [locate_data_file OCC18186_Tool2.brep] bc
|
||||
|
||||
bop bb bc
|
||||
bopcut result
|
||||
|
||||
set square 308374
|
||||
set nb_v_good 43
|
||||
set nb_e_good 68
|
||||
set nb_w_good 27
|
||||
set nb_f_good 27
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 168
|
||||
|
||||
set 2dviewer 0
|
||||
|
37
tests/bugs/modalg/bug19071
Executable file
37
tests/bugs/modalg/bug19071
Executable file
@ -0,0 +1,37 @@
|
||||
puts "============"
|
||||
puts "OCC19071"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# The MakeFuse or the MakePartition function crash together on 2 torus
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC19071
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC19071_Rotation_2.brep] b1
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC19071_Torus_2.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopfuse result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 177462
|
||||
|
||||
set nb_v_good 6
|
||||
set nb_e_good 16
|
||||
set nb_w_good 6
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 37
|
||||
|
||||
|
||||
set 2dviewer 0
|
||||
|
41
tests/bugs/modalg/bug19793_2
Executable file
41
tests/bugs/modalg/bug19793_2
Executable file
@ -0,0 +1,41 @@
|
||||
puts "TODO OCC11111 ALL: TEST INCOMPLETE"
|
||||
|
||||
puts "============"
|
||||
puts "OCC19793"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Fuse problem of symetrical shapes. Appendix for NPAL19789
|
||||
#######################################################################
|
||||
|
||||
cpulimit 100
|
||||
#cpulimit 4500
|
||||
set BugNumber OCC19793
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file bug19793_new_shape.brep] b1
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file bug19793_shape.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopsection result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set length 17730.1
|
||||
|
||||
set nb_e_good 1190
|
||||
set nb_v_good 68
|
||||
set nb_e_good 70
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 139
|
||||
|
||||
|
||||
set 2dviewer 0
|
35
tests/bugs/modalg/bug19811
Executable file
35
tests/bugs/modalg/bug19811
Executable file
@ -0,0 +1,35 @@
|
||||
puts "============"
|
||||
puts "OCC19811"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Scaling problem. Appendix for NPAL19806
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC19811
|
||||
|
||||
puts "Load shape ..."
|
||||
restore [locate_data_file bug19811_VanneMP_supports_tiges_V3.brep] result
|
||||
|
||||
puts "Scaling operation ..."
|
||||
if [catch { tscale result 0 0 0 0.5 } catch_result] {
|
||||
puts "Faulty ${BugNumber} : Scaling is wrong"
|
||||
}
|
||||
|
||||
set square 1.6949e+06
|
||||
|
||||
set nb_v_good 173
|
||||
set nb_e_good 285
|
||||
set nb_w_good 113
|
||||
set nb_f_good 113
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 686
|
||||
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
set only_screen 0
|
19
tests/bugs/modalg/bug20222
Executable file
19
tests/bugs/modalg/bug20222
Executable file
@ -0,0 +1,19 @@
|
||||
puts "============"
|
||||
puts "OCC20222"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Chamfer operation produces incorrect shape (PACE-01-006)
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20222
|
||||
|
||||
restore [locate_data_file OCC20222.brep] s
|
||||
explode s f
|
||||
explode s_10 e
|
||||
chamf result s s_10_3 s_10 S 50
|
||||
|
||||
checkshape result
|
||||
|
||||
set square 712126
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_1
Executable file
39
tests/bugs/modalg/bug20285_1
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_5 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopsection result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set length 750.952
|
||||
|
||||
set nb_v_good 8
|
||||
set nb_e_good 7
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 16
|
||||
|
||||
|
||||
set 2dviewer 0
|
41
tests/bugs/modalg/bug20285_10
Executable file
41
tests/bugs/modalg/bug20285_10
Executable file
@ -0,0 +1,41 @@
|
||||
puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
|
||||
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_6 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
boptuc result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 37856.9
|
||||
|
||||
set nb_v_good 15
|
||||
set nb_e_good 22
|
||||
set nb_w_good 9
|
||||
set nb_f_good 9
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 58
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_11
Executable file
39
tests/bugs/modalg/bug20285_11
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_7 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopsection result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set length 446.679
|
||||
|
||||
set nb_v_good 8
|
||||
set nb_e_good 8
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 17
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_12
Executable file
39
tests/bugs/modalg/bug20285_12
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_7 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopcommon result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 17028.5
|
||||
|
||||
set nb_v_good 12
|
||||
set nb_e_good 18
|
||||
set nb_w_good 8
|
||||
set nb_f_good 8
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 49
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_13
Executable file
39
tests/bugs/modalg/bug20285_13
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_7 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopfuse result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 160323
|
||||
|
||||
set nb_v_good 26
|
||||
set nb_e_good 39
|
||||
set nb_w_good 15
|
||||
set nb_f_good 15
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 98
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_14
Executable file
39
tests/bugs/modalg/bug20285_14
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_7 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopcut result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 135189
|
||||
|
||||
set nb_v_good 20
|
||||
set nb_e_good 30
|
||||
set nb_w_good 12
|
||||
set nb_f_good 12
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 77
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_15
Executable file
39
tests/bugs/modalg/bug20285_15
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_7 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
boptuc result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 42162.7
|
||||
|
||||
set nb_v_good 18
|
||||
set nb_e_good 27
|
||||
set nb_w_good 11
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 70
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_2
Executable file
39
tests/bugs/modalg/bug20285_2
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_5 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopcommon result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 17577
|
||||
|
||||
set nb_v_good 8
|
||||
set nb_e_good 12
|
||||
set nb_w_good 6
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 35
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_3
Executable file
39
tests/bugs/modalg/bug20285_3
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_5 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopfuse result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 113140
|
||||
|
||||
set nb_v_good 18
|
||||
set nb_e_good 28
|
||||
set nb_w_good 11
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 71
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_4
Executable file
39
tests/bugs/modalg/bug20285_4
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_5 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopcut result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 92859.7
|
||||
|
||||
set nb_v_good 13
|
||||
set nb_e_good 19
|
||||
set nb_w_good 8
|
||||
set nb_f_good 8
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 51
|
||||
|
||||
|
||||
set 2dviewer 0
|
39
tests/bugs/modalg/bug20285_5
Executable file
39
tests/bugs/modalg/bug20285_5
Executable file
@ -0,0 +1,39 @@
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_5 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
boptuc result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 37856.9
|
||||
|
||||
set nb_v_good 15
|
||||
set nb_e_good 22
|
||||
set nb_w_good 9
|
||||
set nb_f_good 9
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 58
|
||||
|
||||
|
||||
set 2dviewer 0
|
42
tests/bugs/modalg/bug20285_6
Executable file
42
tests/bugs/modalg/bug20285_6
Executable file
@ -0,0 +1,42 @@
|
||||
puts "TODO OCC11111 ALL: Error : The length of result shape is"
|
||||
puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
|
||||
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_6 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopsection result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set length 750.952
|
||||
|
||||
set nb_v_good 8
|
||||
set nb_e_good 7
|
||||
set nb_w_good 0
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 16
|
||||
|
||||
|
||||
set 2dviewer 0
|
42
tests/bugs/modalg/bug20285_7
Executable file
42
tests/bugs/modalg/bug20285_7
Executable file
@ -0,0 +1,42 @@
|
||||
puts "TODO OCC11111 ALL: Error : The square of result shape is"
|
||||
puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
|
||||
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_6 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopcommon result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 17577
|
||||
|
||||
set nb_v_good 8
|
||||
set nb_e_good 12
|
||||
set nb_w_good 6
|
||||
set nb_f_good 6
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 35
|
||||
|
||||
|
||||
set 2dviewer 0
|
42
tests/bugs/modalg/bug20285_8
Executable file
42
tests/bugs/modalg/bug20285_8
Executable file
@ -0,0 +1,42 @@
|
||||
puts "TODO OCC11111 ALL: Error : The square of result shape is"
|
||||
puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
|
||||
|
||||
puts "============"
|
||||
puts "OCC20285"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# SIGFPE Arithmetic exception on MakeCut Appendix for IPAL20277
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20285
|
||||
|
||||
puts "Load first shape ..."
|
||||
restore [locate_data_file OCC20285-main.brep] a1
|
||||
explode a1
|
||||
renamevar a1_6 b1
|
||||
|
||||
puts "Load second shape ..."
|
||||
restore [locate_data_file OCC20285-tool.brep] b2
|
||||
|
||||
puts "Prepare boolean operation ..."
|
||||
bop b1 b2
|
||||
|
||||
puts "Start boolean operation ..."
|
||||
bopfuse result
|
||||
puts "Finish boolean operation ..."
|
||||
|
||||
set square 113140
|
||||
|
||||
set nb_v_good 18
|
||||
set nb_e_good 28
|
||||
set nb_w_good 11
|
||||
set nb_f_good 11
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 71
|
||||
|
||||
|
||||
set 2dviewer 0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user