MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032175Open CASCADE[OCCT] OCCT:Visualizationpublic2021-02-26 10:002021-08-24 14:19
Reportersnn 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.5.0 
Target Version[OCCT] 7.7.0Fixed in Version 
Summary0032175: Visualization - incorrect rectangular selection with clipping planes defining a box
DescriptionSelection by box performed by the attached script (DR-1569.tcl) is not correct. 10 items are selected, but some bolts that were cut by the box boundaries must not be selected.
Steps To Reproduce
pload XDE OCAF VISUALIZATION MODELING

ReadStep D "as1-oc-214.stp"
XGetOneShape S D

explode S So

vclear
vinit View1

#vdisplay -dispMode 1 S_10
vdisplay -dispMode 1 S_1 S_2 S_3 S_4 S_5 S_6 S_7 S_8 S_9 S_10 S_11 S_12 S_13 S_14 S_15 S_16 S_17 S_18

vfit

vclipplane create XMin
vclipplane change XMin equation 1.0 0.0 0.0 1.0e+001
vclipplane set XMin view Driver1/Viewer1/View1

vclipplane create XMax
vclipplane change XMax equation -1.0 -0.0 -0.0 1.603203e+002
vclipplane set XMax view Driver1/Viewer1/View1

vclipplane create YMin
vclipplane change YMin equation 0.0 1.0 0.0 -6.537673e+001
vclipplane set YMin view Driver1/Viewer1/View1

vclipplane create YMax
vclipplane change YMax equation -0.0 -1.0 -0.0 1.50e+002
vclipplane set YMax view Driver1/Viewer1/View1

vclipplane create ZMin
vclipplane change ZMin equation 0.0 0.0 1.0 4.0
vclipplane set ZMin view Driver1/Viewer1/View1

vclipplane create ZMax
vclipplane change ZMax equation -0.0 -0.0 -1.0 8.0e+001
vclipplane set ZMax view Driver1/Viewer1/View1

set corners { {-1.0e+001 6.537673e+001 -4.0} {1.603203e+002 6.537673e+001 -4.0} {-1.0e+001 1.50e+002 
-4.0} {1.603203e+002 1.50e+002 -4.0} {-1.0e+001 6.537673e+001 8.0e+001} {1.603203e+002 6.537673e+001 
8.0e+001} {-1.0e+001 1.50e+002 8.0e+001} {1.603203e+002 1.50e+002 8.0e+001} }
foreach c ${corners} {
  set X [lindex $c 0]
  set Y [lindex $c 1]
  set Z [lindex $c 2]
  set ret [vconvert $X $Y $Z window]
  set p [lindex [split $ret ":"] 1]
  lappend x [lindex $p 0] 
  lappend y [lindex $p 1]
}
set x [join $x ","]
set y [join $y ","]
set xmin [expr min($x)]
set ymin [expr min($y)]
set xmax [expr max($x)]
set ymax [expr max($y)]

vselect $xmin $ymin $xmax $ymax

vnbselected



1. Run draw.bat
2. Execute DR-1569.tcl script
TagsNo tags attached.
Test case number
Attached Files? file icon DR-1569.tcl (2,056 bytes) 2021-02-26 10:00
png file icon DR-1569-result.png (11,010 bytes) 2021-02-26 10:00

- Relationships
related to 0031149newnds Visualization - using clipping planes for FitAll of V3d_View 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-02-26 10:00 snn New Issue
2021-02-26 10:00 snn Assigned To => kgv
2021-02-26 10:00 snn File Added: DR-1569.tcl
2021-02-26 10:00 snn File Added: DR-1569-result.png
2021-02-26 10:20 kgv Summary Incorrect selection by box => Visualization - incorrect selection by box
2021-02-26 10:28 kgv Steps to Reproduce Updated View Revisions
2021-02-26 10:29 kgv Product Version => 7.5.0
2021-02-26 10:29 kgv Summary Visualization - incorrect selection by box => Visualization - incorrect rectangular selection with clipping planes defining a box
2021-03-04 07:23 kgv Relationship added related to 0031149
2021-08-24 14:19 kgv Target Version 7.6.0* => 7.7.0


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker