View Issue Details

IDProjectCategoryView StatusLast Update
0032175Open CASCADEOCCT:Visualizationpublic2022-06-08 11:07
Reportersnn Assigned Tokgv  
Status newResolutionopen 
Product Version7.5.0 
Target Version7.7.0 
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

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

explode S So

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

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


1. Run draw.bat
2. Execute DR-1569.tcl script
TagsNo tags attached.
Test case number

Attached Files

  • DR-1569.tcl (2,056 bytes)
  • DR-1569-result.png (11,010 bytes)


related to 0031149 newnds Open CASCADE Visualization - using clipping planes for FitAll of V3d_View 
related to 0032872 feedbackbugmaster Community SelectMgr_ViewerSelector view clipping planes 



2021-02-26 10:00


DR-1569.tcl (2,056 bytes)


2021-02-26 10:00


DR-1569-result.png (11,010 bytes)

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
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
2022-06-08 11:07 kgv Relationship added related to 0032872