1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0031650: Visualization - invalid picking of object with local transformation and per-object clipping plane

SelectMgr_SelectingVolumeManager::SetViewClipping() now updates clipping range
using picking ray in world coordinates, as clipping planes are always defined in world space.
This commit is contained in:
kgv
2020-07-04 14:37:05 +03:00
committed by bugmaster
parent 3e9c1d1e5a
commit 72e9e86732
5 changed files with 41 additions and 11 deletions

View File

@@ -172,10 +172,12 @@ public:
//! Valid for point selection only!
//! Computes depth range for clipping planes.
//! @param theViewPlanes global view planes
//! @param theObjPlanes object planes
//! @param theViewPlanes [in] global view planes
//! @param theObjPlanes [in] object planes
//! @param theWorldSelMgr [in] selection volume in world space for computing clipping plane ranges
Standard_EXPORT void SetViewClipping (const Handle(Graphic3d_SequenceOfHClipPlane)& theViewPlanes,
const Handle(Graphic3d_SequenceOfHClipPlane)& theObjPlanes);
const Handle(Graphic3d_SequenceOfHClipPlane)& theObjPlanes,
const SelectMgr_SelectingVolumeManager* theWorldSelMgr);
//! Copy clipping planes from another volume manager.
Standard_EXPORT void SetViewClipping (const SelectMgr_SelectingVolumeManager& theOther);