MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0003225 | VTK | (No Category) | public | 2006-05-12 15:28 | 2016-08-12 09:54 |
| Reporter | Edson Tadeu M. Manoel | ||||
| Assigned To | Will Schroeder | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0003225: vtkWedge EvaluatePosition and faces | ||||
| Description | There is a bug in vtkWedge::EvaluatePosition, it can tell a point is inside when in reality it is outside. E.g, try to create a vtkWedge with the following points: (8,0,0), (16,0,0), (16,8,0), (8,0,8), (16,0,8), (16,8,8) And try to EvaluatePosition for point (17,6,4). It will return 1, telling it is inside. A solution is to change the following code: if ( pcoords[0] >= -0.001 && pcoords[0] <= 1.001 && pcoords[1] >= -0.001 && pcoords[1] <= 1.001 && pcoords[2] >= -0.001 && pcoords[2] <= 1.001 ) To: if ( pcoords[0] >= -0.001 && pcoords[1] >= -0.001 && (pcoords[0] + pcoords[1]) <= 1.001 && pcoords[2] >= -0.001 && pcoords[2] <= 1.001 ) There is another bug in its faces array (and with GetFace and GetFaceArray): The faces normals are pointing inside, instead of outside (as of all other 3D cells). Instead of: static int faces[5][4] = { {0,1,2,-1}, {3,5,4,-1}, {0,3,4,1}, {1,4,5,2}, {2,5,3,0} }; It should be: static int faces[5][4] = { {0,2,1,-1}, {3,4,5,-1}, {0,1,4,3}, {1,2,5,4}, {2,0,3,5} }; | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-02-06 10:21 | Jeff Baumes | Assigned To | Mathieu Malaterre => Will Schroeder | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036867 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| Notes | |||||
|
|
|||||
|
|
||||