-
- Downloads
A new, faster method for vtkPolyData::ComputeBounds()
Added new threaded methods in vtkPolyData and vtkBoundingBox for computing GetBounds(). Added a comparison test for the methods vtkPolyData::GetBounds(), vtkPoints::GetBounds(), and vtkBoundingBox::ComputeBounds(). The speed improvements on large meshes is approximately 10x. Also, the new vtkCellArray API, and the vtkArrayDispatch framework is used. Note, as before, this new vtkPolyData::GetBounds() only considers points used by cells to determine the bounding box. Performance considerations required tuning the vtkCellArray and vtkCellArrayIterator to share memory when possible (i.e., avoid copying). Also cleaned up documentation and API for these classes. A test was added to ensure that iterator is functioning properly (e.g., is faster, sharing storage buffer as appropriate). Finally discovered an error in vtkParametricKuen which was generating NaN on some systems, which messed up the GetBounds() computation.
Showing
- Common/DataModel/Testing/Python/CMakeLists.txt 2 additions, 0 deletionsCommon/DataModel/Testing/Python/CMakeLists.txt
- Common/DataModel/Testing/Python/TestGetBounds.py 115 additions, 0 deletionsCommon/DataModel/Testing/Python/TestGetBounds.py
- Common/DataModel/Testing/Python/TestGetBounds2.py 74 additions, 0 deletionsCommon/DataModel/Testing/Python/TestGetBounds2.py
- Common/DataModel/vtkBoundingBox.cxx 144 additions, 0 deletionsCommon/DataModel/vtkBoundingBox.cxx
- Common/DataModel/vtkBoundingBox.h 14 additions, 2 deletionsCommon/DataModel/vtkBoundingBox.h
- Common/DataModel/vtkCellTypes.h 8 additions, 0 deletionsCommon/DataModel/vtkCellTypes.h
- Common/DataModel/vtkPolyData.cxx 71 additions, 38 deletionsCommon/DataModel/vtkPolyData.cxx
- Common/DataModel/vtkPolyData.h 3 additions, 1 deletionCommon/DataModel/vtkPolyData.h
- Filters/Core/vtkFeatureEdges.cxx 31 additions, 5 deletionsFilters/Core/vtkFeatureEdges.cxx
- Filters/Core/vtkFeatureEdges.h 42 additions, 26 deletionsFilters/Core/vtkFeatureEdges.h
Loading
Please register or sign in to comment