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.
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
puts "=================================================================================="
|
|
puts "0030630: Visualization - wrong visualization of shape with mirrored transformation"
|
|
puts "Check that solid with mirrored transformation is displayed as turned out"
|
|
puts "=================================================================================="
|
|
|
|
pload MODELING VISUALIZATION
|
|
vclear
|
|
vinit View1
|
|
vaxo
|
|
vrotate 3 0 0
|
|
vcamera -persp
|
|
|
|
# Simple box
|
|
box b 1 1 1
|
|
vdisplay -dispMode 1 b
|
|
vaspects b -setBackFaceColor RED
|
|
vfit
|
|
vdump $imagedir/${casename}_simple.png
|
|
verase b
|
|
|
|
# Box with mirror transformation
|
|
box a 1 1 1
|
|
fmirror a 0 0 0 1 0 0
|
|
vdisplay -dispMode 1 a
|
|
vaspects a -setBackFaceColor RED
|
|
vfit
|
|
box aa -0.5 0.5 0.5 0.1 0.1 0.1
|
|
vdisplay -dispMode 1 aa
|
|
vsetcolor aa BLUE
|
|
vdump $imagedir/${casename}_mirror.png
|
|
if { [vreadpixel 195 220 rgb name] != "BLUE2" } { puts "Error: mirrored box should look inside out" }
|
|
verase a
|
|
|
|
# Box with mirror transformation and reversed face
|
|
box c 1 1 1
|
|
fmirror c 0 0 0 1 0 0
|
|
orientation c R
|
|
vdisplay -dispMode 1 c
|
|
vaspects c -setBackFaceColor RED
|
|
vfit
|
|
vdump $imagedir/${casename}_mirrev.png
|
|
if { [vreadpixel 195 220 rgb name] == "BLUE2" } { puts "Error: reversed mirrored box should NOT look inside out" }
|