This is indeed a bug in vtkPLYReader. Attached is a patch that fixes the issue.
diff --git a/IO/PLY/vtkPLYReader.cxx b/IO/PLY/vtkPLYReader.cxx
index 437d87a..9cfe657 100644
--- a/IO/PLY/vtkPLYReader.cxx
+++ b/IO/PLY/vtkPLYReader.cxx
@@ -289,8 +289,8 @@ int vtkPLYReader::RequestData(
if ( intensityAvailable )
{
vtkPLY::ply_get_property (ply, elemName, &faceProps[1]);
- RGBCells->SetNumberOfComponents(1);
- RGBCells->SetNumberOfTuples(numPolys);
+ intensity->SetNumberOfComponents(1);
+ intensity->SetNumberOfTuples(numPolys);
}
if ( RGBCellsAvailable )
{
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview