Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0027017Community[OCCT] OCCT:VISpublic2015-12-20 13:252019-05-06 15:38
Assigned Tobugmaster 
StatusclosedResolutionunable to reproduce 
PlatformWindowsOSWindowsOS VersionWindows 10
Product Version[OCCT] 6.9.1 
Target VersionFixed in Version 
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();

            // 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

            // Set ids to the filter to pass only picked sub-shapes

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

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 Filespng file icon occ_vtk_picker.png (55,311 bytes) 2015-12-20 13:25

- Relationships

-  Notes
kgv (developer)
2019-03-03 01:19

The referred geometry for reproducing the issue is not provided.
kgv (developer)
2019-04-30 14:54

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

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker