View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016030VTK(No Category)public2016-03-16 05:272016-08-12 09:55
ReporterMarc Mörig 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0016030: vtkBoxRepresentation always highlights first selected face
DescriptionvtkBoxWidget2 / vtkBoxRepresentation

When I select and move a face, this face gets highlighted. When I move a different face later on, always the first selected face gets highlighted.

This fixed face can be reset by disabling/re-enabling the widget, so I suspect some internal pipeline doesn't get updated properly. However, the following change in vtkBoxRepresentation::HighlightFace(int cellId) fixes the issue for me


diff --git a/Interaction/Widgets/vtkBoxRepresentation.cxx b/Interaction/Widgets/vtkBoxRepresentation.
index e2fc1ee..f6c583c 100644
--- a/Interaction/Widgets/vtkBoxRepresentation.cxx
+++ b/Interaction/Widgets/vtkBoxRepresentation.cxx
@@ -1282,8 +1282,8 @@ void vtkBoxRepresentation::HighlightFace(int cellId)
     vtkIdType *pts;
     vtkCellArray *cells = this->HexFacePolyData->GetPolys();
     this->HexPolyData->GetCellPoints(cellId, npts, pts);
- this->HexFacePolyData->Modified();
     cells->ReplaceCell(0,npts,pts);
+ cells->Modified();
     this->CurrentHexFace = cellId;
     this->HexFace->SetProperty(this->SelectedFaceProperty);
     if ( !this->CurrentHandle )

TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0037459)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-03-16 05:27 Marc Mörig New Issue
2016-08-12 09:55 Kitware Robot Note Added: 0037459
2016-08-12 09:55 Kitware Robot Status backlog => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team