Archived issue #0029934
Visualization - handle properly orthogonal clipping plane within SelectMgr_RectangularFrustum::computeClippingRange()
Description
SelectMgr_RectangularFrustum::computeClippingRange() just ignores clipping plane orthogonal to the camera direction, however the plane may clip everything.
This is possible only within orthogonal projection (within perspective projection ray may be orthogonal only when picking exactly into clipping plane).
This is possible only within orthogonal projection (within perspective projection ray may be orthogonal only when picking exactly into clipping plane).
Steps to reproduce
pload MODELING VISUALIZATION
restore [locate_data_file occ/bottle.brep] b
vclear
vinit View1
vdisplay -dispMode 1 -highMode 1 b
vzbufftrihedron
vfront
vfit
vclipplane p -equation 1 0 0 -20 -set
vmoveto 150 200
vstate -entities
vselect 150 200
if { [vreadpixel 150 200 rgb name] != "BLACK" } { puts "Error" }
if { [vreadpixel 350 200 rgb name] != "GOLDENROD1" } { puts "Error" }
Public activity
4 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Fri Jul 6 19:04:49 2018 +0300
0029934: Visualization - handle properly orthogonal clipping plane within SelectMgr_RectangularFrustum::computeClippingRange()
SelectMgr_RectangularFrustum now considers the direction of clipping plane orthogonal to picking ray.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Fri Jul 6 19:04:49 2018 +0300
0029934: Visualization - handle properly orthogonal clipping plane within SelectMgr_RectangularFrustum::computeClippingRange()
SelectMgr_RectangularFrustum now considers the direction of clipping plane orthogonal to picking ray.
OCCT branch : [archived branch] [revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian70-64:
OCCT
Total CPU difference: 17212.959999999723 / 17169.739999999776 [+0.25%]
Products
Total CPU difference: 7509.790000000045 / 7501.920000000043 [+0.10%]
Windows-64-VC10:
OCCT
Total CPU difference: 16856.750455398604 / 16852.39802749857 [+0.03%]
Products
Total CPU difference: 8259.27014369986 / 8212.11104139987 [+0.57%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian70-64:
OCCT
Total CPU difference: 17212.959999999723 / 17169.739999999776 [+0.25%]
Products
Total CPU difference: 7509.790000000045 / 7501.920000000043 [+0.10%]
Windows-64-VC10:
OCCT
Total CPU difference: 16856.750455398604 / 16852.39802749857 [+0.03%]
Products
Total CPU difference: 8259.27014369986 / 8212.11104139987 [+0.57%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records