| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0011550 | VTK | (No Category) | public | 2010-12-01 13:11 | 2012-12-12 12:18 | ||||
| Reporter | David Doria | ||||||||
| Assigned To | David Gobbi | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | 5.10.0 | |||||||
| Summary | 0011550: vtkImageData::FindCell ignores tolerance | ||||||||
| Description | vtkImageData::FindCell ignores the tolerance parameter. Because of this, there is no way to ensure that FindCell will return a cell when given a point that lies on the boundary of the data set. | ||||||||
| Steps To Reproduce | The following code returns -1 when it should return cell 0. #include <vtkSmartPointer.h> #include <vtkImageData.h> int main(int, char *[]) { int dims[3] = {1,2,3}; double spacing[3] = {1.0, 1.0, 1.0}; vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); image->SetDimensions(dims); image->SetSpacing(spacing); double p[3] = {1.0,1.0,1.0}; int subId; double pcoords[3] = {0,0,0}; double weights[8]; int index = image->FindCell(p, NULL, 0, 10.0, subId, pcoords, weights); std::cout << "index: " << index << std::endl; return EXIT_SUCCESS; } | ||||||||
| Tags | No tags attached. | ||||||||
| Project | |||||||||
| Type | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0023947) David Gobbi (developer) 2010-12-13 23:27 |
Tolerance checks added on Dec 13, 2010, commit 01c23323e43d616eec971b2417bda5c0c3e7bcd7 |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-12-01 13:11 | David Doria | New Issue | |
| 2010-12-01 13:17 | David Gobbi | Assigned To | => David Gobbi |
| 2010-12-01 13:17 | David Gobbi | Status | backlog => tabled |
| 2010-12-13 23:27 | David Gobbi | Note Added: 0023947 | |
| 2010-12-13 23:27 | David Gobbi | Status | tabled => @80@ |
| 2010-12-13 23:27 | David Gobbi | Resolution | open => fixed |
| 2012-12-12 12:18 | David Gobbi | Status | customer review => closed |
| 2012-12-12 12:18 | David Gobbi | Fixed in Version | => 5.10.0 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |