Skip to content

Commit 93a693e

Browse files
committed
chore: remove unnecessary calls in GeometryHighlight
1 parent 9fb9dd1 commit 93a693e

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎src/ansys/visor/viewer/vtk/widgets/geometry_highlight.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@
4141
FACE_LINE_WIDTH_CSS: float = 3.0
4242
"""A face outline's line width in CSS pixels."""
4343

44-
# Negative offsets pull the highlight towards the camera, so it does not fight
45-
# the part surface it lies on.
46-
COINCIDENT_POLYGON_OFFSET: tuple[float, float] = (-2.0, -2.0)
47-
COINCIDENT_LINE_OFFSET: tuple[float, float] = (-2.0, -2.0)
48-
COINCIDENT_POINT_OFFSET: float = -2.0
49-
5044

5145
class GeometryHighlight:
5246
"""A non-pickable actor drawing one geometry pick: a dot, a line, or a filled outline."""
@@ -69,9 +63,6 @@ def __init__(self, pixel_scale: float) -> None:
6963
mapper.ScalarVisibilityOn()
7064
mapper.SetScalarModeToUseCellData()
7165
mapper.SetColorModeToDirectScalars()
72-
mapper.SetRelativeCoincidentTopologyPolygonOffsetParameters(*COINCIDENT_POLYGON_OFFSET)
73-
mapper.SetRelativeCoincidentTopologyLineOffsetParameters(*COINCIDENT_LINE_OFFSET)
74-
mapper.SetRelativeCoincidentTopologyPointOffsetParameter(COINCIDENT_POINT_OFFSET)
7566

7667
self._actor = vtkActor()
7768
self._actor.SetMapper(mapper)

0 commit comments

Comments
 (0)