View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027017 | Community | OCCT:VIS | public | 2015-12-20 13:25 | 2019-05-06 15:38 |
Reporter | baraujo | Assigned To | bugmaster | ||
Priority | normal | Severity | major | ||
Status | closed | Resolution | unable to reproduce | ||
Platform | Windows | OS | Windows | ||
Product Version | 6.9.1 | ||||
Summary | 0027017: VTK picker returns wrong face | ||||
Description | I 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. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
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 |
|
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 |