MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014453 | VTK | (No Category) | public | 2013-12-10 07:43 | 2013-12-20 15:57 |
Reporter | Jorge | ||||
Assigned To | Berk Geveci | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | 6.0.0 | ||||
Target Version | Fixed in Version | 6.1.0 | |||
Project | Kitware | ||||
Type | incorrect functionality | ||||
Summary | 0014453: error with TerminalSpeed parameter in vtkStreamTracer | ||||
Description | I have an StructuredPoints data-set with a vector field on points. In order to generate streamlines on it I use vtkStreamTracer. The range of the velocity goes from 0 to 150. I have found that if I set the TerminalSpeed to a number greater than 1 (for instance 1.5) then no streamline is generated even if the velocity at the starting point is above 90. Tracing the code at vtkStreamTracer.cxx I reach the point where the problem seems to be: // It is not enough to use the starting point for stagnation calculation // Use delX/stepSize to calculate speed and check if it is below // stagnation threshold double disp[3]; for (i=0; i<3; i++) { disp[i] = point2[i] - point1[i]; } if ( (stepSize.Interval == 0) || (vtkMath::Norm(disp) / fabs(stepSize.Interval) <= this->TerminalSpeed) ) { retVal = STAGNATION; break; } The problem I have seen is that stepSize.Interval is in LENGTH_UNIT and it is almost similar to vtkMath::Norm(disp). I have changed the test to: //////////////JOSP////////////////// double timeTaken = stepTaken / speed; //////////////JOSP////////////////// if ( (stepSize.Interval == 0) || (vtkMath::Norm(disp) / timeTaken <= this->TerminalSpeed) ) { retVal = STAGNATION; break; } accumTime += timeTaken; The previous change "seems" to fix the problem. I'm not sure if this change could have other implication but in our application it works as expected. I would like to contribute with a fix if this is really a bug. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | TerminalSpeedEqualTo0.1.png (32,236) 2013-12-10 07:54 https://www.vtk.org/Bug/file/9568/TerminalSpeedEqualTo0.1.png TerminalSpeedEqualTo10.png (24,289) 2013-12-10 07:56 https://www.vtk.org/Bug/file/9569/TerminalSpeedEqualTo10.png TerminalSpeedEqualTo10_Gerrit.png (28,354) 2013-12-18 03:52 https://www.vtk.org/Bug/file/9573/TerminalSpeedEqualTo10_Gerrit.png dataset_velocity_2.rar (4,830,996) 2013-12-18 04:35 https://www.vtk.org/Bug/file/9574/dataset_velocity_2.rar | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-12-10 07:43 | Jorge | New Issue | |||
2013-12-10 07:54 | Jorge | File Added: TerminalSpeedEqualTo0.1.png | |||
2013-12-10 07:56 | Jorge | File Added: TerminalSpeedEqualTo10.png | |||
2013-12-10 07:58 | Jorge | Note Added: 0031918 | |||
2013-12-10 07:58 | Jorge | Note Edited: 0031918 | bug_revision_view_page.php?bugnote_id=31918#r684 | ||
2013-12-16 18:17 | Dave DeMarle | Note Added: 0031965 | |||
2013-12-16 18:17 | Dave DeMarle | Status | backlog => gerrit review | ||
2013-12-16 18:17 | Dave DeMarle | Fixed in Version | => 6.1.0 | ||
2013-12-17 20:45 | Berk Geveci | Note Added: 0031995 | |||
2013-12-18 03:52 | Jorge | File Added: TerminalSpeedEqualTo10_Gerrit.png | |||
2013-12-18 04:20 | Jorge | Note Added: 0032016 | |||
2013-12-18 04:35 | Jorge | File Added: dataset_velocity_2.rar | |||
2013-12-18 04:36 | Jorge | Note Added: 0032017 | |||
2013-12-20 15:56 | Berk Geveci | Note Added: 0032044 | |||
2013-12-20 15:57 | Berk Geveci | Status | gerrit review => closed | ||
2013-12-20 15:57 | Berk Geveci | Assigned To | => Berk Geveci | ||
2013-12-20 15:57 | Berk Geveci | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|