mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Implementation of raising exception while using scale and mirror transformation in shape location TopLoc/TopLoc_Location.hxx TopoDS/TopoDS_Shape.hxx Implementation of new tools for removing forbidden locations from shapes: BRepTools/BRepTools_PurgeLocations.cxx BRepTools/BRepTools_PurgeLocations.hxx BRepTools/BRepTools.cxx BRepTools/BRepTools.hxx Draw commands for transforming shapes are corrected, new draw commands: purgeloc, checkloc added BRepTest/BRepTest_BasicCommands.cxx Fixing unstable test bug xde bug24759 StepToGeom/StepToGeom.cxx All other C++ commits are modification of algorithms used mainly in import/export operations in order to allows these operations if shape locations contains scale and mirror transformations. New test for command purgeloc added tests/bugs/moddata_3/bug27457 tests/bugs/moddata_3/bug27457_1 tests/bugs/moddata_3/bug27457_2 Some test corrected according to modifications.
33 lines
850 B
Plaintext
33 lines
850 B
Plaintext
puts "========="
|
|
puts "0027457: Modeling Data - Raise if scaled transformation is used for shape location"
|
|
puts " Testing tool for purging locations"
|
|
puts "========="
|
|
puts ""
|
|
|
|
restore [locate_data_file bug27457_1.brep] s
|
|
set chsh [checkshape s b]
|
|
regexp {Shapes with problems : ([0-9]+)} $chsh full NbSh
|
|
puts "Number of faulty shapes : $NbSh"
|
|
|
|
set Nbloc 0
|
|
set chloc [checkloc s]
|
|
set Nbloc [llength $chloc]
|
|
puts "Number of problematic locations : $Nbloc"
|
|
|
|
set Purge_status [purgeloc s1 s]
|
|
checkshape s1
|
|
|
|
set Nbloc1 0
|
|
|
|
set chloc1 [checkloc s1]
|
|
if { ! [regexp {There are no problematic shapes} $chloc1 full str]} {
|
|
puts "Error - not all problematic locations are purged"
|
|
set Nbloc1 [llength $chloc1]
|
|
puts "Number of problematic locations : $Nbloc1"
|
|
}
|
|
|
|
smallview
|
|
donly s1
|
|
fit
|
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|