mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
Update of tests database
Test for 0023171: Got wrong result after stitching Test for 0023612: BRepPrimAPI_MakeTorus Test for 0023610: checkshape command does not detect mismatch of the tolerance values among the sub-shapes of the shape Test for 0023660: 'bsection' produces result with gap Test for 0024397: BRepBuilderAPI_Copy works not correct Test for 0023927: BRepProj_Projection produces Edge with one Vertex outside from curve Test for 0023902: Cannot build fillet Test for 0023669: Error in Boolean operations algorithm: section between cylindrical face and prism is incomplete Test for 0023660: 'bsection' produces result with gap Test for 0024100: Bad pcurve is built on a face while converting the shape from STEP format. Test for 0024319: Sewing makes a solid transparent Test for 0024302: Section operation modifies input argument Test for 0024397: BRepBuilderAPI_Copy works not correct Test for 0024418: Wrong section curves when intersecting analytical surfaces
This commit is contained in:
34
tests/bugs/modalg_7/bug23610
Normal file
34
tests/bugs/modalg_7/bug23610
Normal file
@@ -0,0 +1,34 @@
|
||||
puts "TODO OCC23610 ALL: should be less then or equal to the minimal tolerance value of its sub-shapes"
|
||||
|
||||
puts "========"
|
||||
puts "OCC23610"
|
||||
puts "========"
|
||||
puts ""
|
||||
########################################################################################################
|
||||
## checkshape command does not detect mismatch of the tolerance values among the sub-shapes of the shape
|
||||
########################################################################################################
|
||||
|
||||
restore [locate_data_file buc60462b.brep] b
|
||||
|
||||
foreach Face [explode b f] {
|
||||
if {[checkshape $Face] == "This shape seems to be valid"} {
|
||||
set ToleranceList [tolerance $Face]
|
||||
regexp {FACE +: +MAX=([-0-9.+eE]+) +AVG=([-0-9.+eE]+) +MIN=([-0-9.+eE]+)} $ToleranceList full MaxTol_face AvgTol_face MinTol_face
|
||||
regexp {EDGE +: +MAX=([-0-9.+eE]+) +AVG=([-0-9.+eE]+) +MIN=([-0-9.+eE]+)} $ToleranceList full MaxTol_edge AvgTol_edge MinTol_edge
|
||||
regexp {VERTEX +: +MAX=([-0-9.+eE]+) +AVG=([-0-9.+eE]+) +MIN=([-0-9.+eE]+)} $ToleranceList full MaxTol_vertex AvgTol_vertex MinTol_vertex
|
||||
if {${MaxTol_face} > ${MinTol_edge} || ${MaxTol_face} > ${MinTol_vertex}} {
|
||||
puts "Error: the tolerance value of the FACE $Face should be less then or equal to the minimal tolerance value of its sub-shapes(EDGES and VERTICES)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach Edge [explode b e] {
|
||||
if {[checkshape $Edge] == "This shape seems to be valid"} {
|
||||
set ToleranceList [tolerance $Edge]
|
||||
regexp {EDGE +: +MAX=([-0-9.+eE]+) +AVG=([-0-9.+eE]+) +MIN=([-0-9.+eE]+)} $ToleranceList full MaxTol_edge AvgTol_edge MinTol_edge
|
||||
regexp {VERTEX +: +MAX=([-0-9.+eE]+) +AVG=([-0-9.+eE]+) +MIN=([-0-9.+eE]+)} $ToleranceList full MaxTol_vertex AvgTol_vertex MinTol_vertex
|
||||
if {${MaxTol_edge} > ${MinTol_vertex}} {
|
||||
puts "Error: the tolerance value of the EDGE $Edge should be less then or equal to the minimal tolerance value of its sub-shapes(VERTICES)"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user