]> OCCT Git - occt-copy.git/commit
0031425: Visualization - free Edge has selection sensitivity inconsistent to presentation
authorkgv <kgv@opencascade.com>
Wed, 11 Mar 2020 14:06:49 +0000 (17:06 +0300)
committerjfa <jfa@opencascade.com>
Thu, 30 Apr 2020 13:15:57 +0000 (16:15 +0300)
commit613213f3b7197c2443b24fd9ced78cbb5a27825d
tree60756c4f8c3d3a05e8fbbd467de96c50e11ac78c
parente44cf1e4da2d3ca64f4bfd196966e82b68a4bbef
0031425: Visualization - free Edge has selection sensitivity inconsistent to presentation

BRepTools::Triangulation() has been extended with a new parameter for checking Poly_Polygon3D presense within free Edges.
StdPrs_WFShape::Add() now performs auto-triangulation in the same way as StdPrs_ShadedShape::Add().
StdSelect_BRepSelectionTool::GetEdgeSensitive() now creates Select3D_SensitiveSegment instead of Select3D_SensitiveCurve for tessellated segment.
Select3D_SensitiveSegment default sensitivity factor has been changed to 3 pixels to match Select3D_SensitiveCurve.

Test case bug23625_1, added workaround for out-of-range crash in HLRBRep_PolyAlgo on re-triangulated shape.
14 files changed:
samples/tcl/snowflake.tcl
src/BRepTools/BRepTools.cxx
src/BRepTools/BRepTools.hxx
src/Select3D/Select3D_SensitiveSegment.cxx
src/StdPrs/StdPrs_ShadedShape.cxx
src/StdPrs/StdPrs_ToolTriangulatedShape.cxx
src/StdPrs/StdPrs_WFShape.cxx
src/StdSelect/StdSelect_BRepSelectionTool.cxx
tests/bugs/vis/bug25098
tests/bugs/vis/bug31425 [new file with mode: 0644]
tests/hlr/begin
tests/hlr/poly_hlr/bug23625_1
tests/hlr/poly_hlr/bug23625_2
tests/hlr/poly_hlr/bug25813_3