Skip to content

Commit 37ae50c

Browse files
committed
set_edges_width sets the main actor LineWidth (only edges and wireframe use it on these meshes)
1 parent 52fced5 commit 37ae50c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/opengeodeweb_viewer/object/object_methods.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def set_edges_width(self, data_id: str, width: float) -> None:
134134
if self.get_viewer_data(data_id).viewer_elements_type == "edges":
135135
pipeline.actor.GetProperty().SetLineWidth(width)
136136
return
137-
pipeline.actor.GetProperty().SetEdgeWidth(width)
137+
# VTK draws polygon edges with the line width, the edge width property is not rendered
138+
pipeline.actor.GetProperty().SetLineWidth(width)
138139
if pipeline.edges_actor is not None:
139140
pipeline.edges_actor.GetProperty().SetLineWidth(width)
140141

@@ -228,7 +229,7 @@ def ensure_edges_actor(self, pipeline: VtkPipeline) -> vtkActor:
228229
main_property = pipeline.actor.GetProperty()
229230
edges_property = actor.GetProperty()
230231
edges_property.SetRepresentationToWireframe()
231-
edges_property.SetLineWidth(main_property.GetEdgeWidth())
232+
edges_property.SetLineWidth(main_property.GetLineWidth())
232233
edges_property.SetColor(*main_property.GetEdgeColor())
233234
pipeline.edges_visibility = bool(main_property.GetEdgeVisibility())
234235
actor.SetVisibility(pipeline.actor.GetVisibility() and pipeline.edges_visibility)

0 commit comments

Comments
 (0)