mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 17:40:24 +08:00
New features:
1. class BRepCheck_Solid
The class is to check a solid per se.
The scan area is:
i. Shells that overlaps each other
Status: BRepCheck_InvalidImbricationOfShells
ii. Detached parts of the solid (vertices, edges)
that have non-internal orientation
Status: BRepCheck_BadOrientationOfSubshape
iii. For closed, non-internal shells:
iii.1 Shells containing entities of the solid that
are outside towards the shells
Status: BRepCheck_SubshapeNotInShape
iii.2 Shells that encloses other Shells
(for non-holes)
Status: BRepCheck_EnclosedRegion
Changes:
1. enumeration BRepCheck_Status
members:
InvalidImbricationOfShells,
EnclosedRegion,
has been added
2. class BRepCheck
method:
void BRepCheck::Print(const BRepCheck_Status stat,
Standard_OStream& OS)
has been modified to take into account II.1
3. class BRepCheck_Analyzer
method:
void BRepCheck_Analyzer::Put(const TopoDS_Shape& S,
const Standard_Boolean B)
has been modified to take into account I.1
4. class BRepTest
function:
void StructuralDump(Draw_Interpretor& theCommands,
const BRepCheck_Analyzer &theAna,
const Standard_CString ShName,
const Standard_CString Pref,
const TopoDS_Shape &theShape)
has been modified to take into account I.1, II.1
Test cases for issue CR25509
Correction of test cases for issue CR25509
31 lines
625 B
Plaintext
Executable File
31 lines
625 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC25509"
|
|
puts "============"
|
|
puts ""
|
|
######################################################
|
|
# Wrong shape considered as valid by checkshape
|
|
######################################################
|
|
|
|
# 01
|
|
# A solid with 2 shells that are regular
|
|
# and the SAME
|
|
#
|
|
|
|
box b 10 10 10
|
|
explode b
|
|
shape result so
|
|
add b_1 result
|
|
add b_1 result
|
|
|
|
decho off
|
|
set info [checkshape result]
|
|
decho on
|
|
|
|
if { [regexp "Faulty shapes in variables faulty_1" ${info}] != 1 } {
|
|
puts "Error : There are no mistakes by checkshape-command"
|
|
} else {
|
|
puts "OK : There are mistakes by checkshape-command"
|
|
}
|
|
|
|
set 2dviewer 1
|