mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026195: Visualization - optimize selection algorithms
- initial transformation of triangulation is now applied to selecting frustum; - switched from NCollection_Vec3 to gp collections to avoid conversions and usage of macros; - calculation of frustum was refactored to reduce its build time; - double pixel tolerances for selection were replaced by integer ones; - switched to splitting along the main axis only in SelectMgr BVH selection primitive sets.
This commit is contained in:
@@ -91,11 +91,11 @@ StdSelect_ViewerSelector3d::StdSelect_ViewerSelector3d() {}
|
||||
// Function: SetPixelTolerance
|
||||
// Purpose :
|
||||
//=======================================================================
|
||||
void StdSelect_ViewerSelector3d::SetPixelTolerance (const Standard_Real theTolerance)
|
||||
void StdSelect_ViewerSelector3d::SetPixelTolerance (const Standard_Integer theTolerance)
|
||||
{
|
||||
if (myTolerances.Tolerance() != theTolerance)
|
||||
{
|
||||
if (theTolerance < 0.0)
|
||||
if (theTolerance < 0)
|
||||
myTolerances.ResetDefaults();
|
||||
else
|
||||
myTolerances.SetCustomTolerance (theTolerance);
|
||||
|
Reference in New Issue
Block a user