View Issue Details

IDProjectCategoryView StatusLast Update
0027017CommunityOCCT:VISpublic2019-05-06 15:38
Reporterbaraujo Assigned Tobugmaster  
PrioritynormalSeveritymajor 
Status closedResolutionunable to reproduce 
PlatformWindowsOSWindows 
Product Version6.9.1 
Summary0027017: VTK picker returns wrong face
DescriptionI am using occ vtk VIS services as so:

            IVtkOCC_Shape::Handle aShapeImpl = m_geometryShapes[anIt.Value()];

            IVtk_ShapeIdList anIdSubList = m_picker->GetPickedSubShapesIds(anIt.Value(), false);

            vtkSmartPointer<IVtkTools_ShapeDataSource> aDataSource = vtkSmartPointer<IVtkTools_ShapeDataSource>::New();
            aDataSource->SetShape(aShapeImpl);

            // Create a new sub-polydata filter for sub-shapes filtering
            vtkSmartPointer<IVtkTools_SubPolyDataFilter> subShapesFilter = IVtkTools_SubPolyDataFilter::New();
            // Set a shape source as an input of the subpolydata filter
            subShapesFilter->SetInputConnection(aDataSource->GetOutputPort());

            // Set ids to the filter to pass only picked sub-shapes
            subShapesFilter->SetData(anIdSubList);
            subShapesFilter->Modified();

            // Output the result into a mapper
            vtkSmartPointer<vtkPolyDataMapper> aMapper = vtkPolyDataMapper::New();
            aMapper->ImmediateModeRenderingOn();
            aMapper->SetResolveCoincidentTopologyPolygonOffsetParameters(1, 2);
            aMapper->AddInputConnection(subShapesFilter->GetOutputPort());

If I use GetPickedSubShapesIds(anIt.Value(), false) it returns the top face although mouse coordinates are on the cylindrical surface. I thought it might be a problem with coordinate x, y but it is working correctly on the edges which seems to indicate the x,y are correct. I have also tried changing setTolerance but seems that there is no effect.

I suspect setTolerance isn't working correctly.
TagsNo tags attached.
Test case number

Attached Files

  • occ_vtk_picker.png (55,311 bytes)

Activities

baraujo

2015-12-20 13:25

reporter  

occ_vtk_picker.png (55,311 bytes)

kgv

2019-03-03 01:19

developer   ~0082553

The referred geometry for reproducing the issue is not provided.

kgv

2019-04-30 14:54

developer   ~0084075

Dear bugmaster,

please close the issue as not reproducible.

Issue History

Date Modified Username Field Change
2015-12-20 13:25 baraujo New Issue
2015-12-20 13:25 baraujo Assigned To => san
2015-12-20 13:25 baraujo File Added: occ_vtk_picker.png
2015-12-20 14:37 abv Summary POSSIBLE BUG IN VTK PICKER? => VTK picker returns wrong face
2019-03-03 01:19 kgv Note Added: 0082553
2019-03-03 01:19 kgv Assigned To san => baraujo
2019-03-03 01:19 kgv Status new => feedback
2019-03-03 01:20 kgv Resolution open => unable to reproduce
2019-04-30 14:54 kgv Note Added: 0084075
2019-04-30 14:54 kgv Assigned To baraujo => bugmaster
2019-05-06 15:38 bugmaster Status feedback => closed