Hi Ben,
 it almost looks like the surface undergoes some processing on the points while
the normals array is left untouched, so there is a discrepancy between the 
number
of points and the number of normals.
Does your processing pipeline include your own code or are you solely relying
on vmtk scripts? In the latter case, please provide me with the pipe and I'll 
take a
look.
What you can do as a workaround is to call vmtksurfacenormals (or use the
vtkPolyDataNormals filter in VTK code) *prior to* writing the surface to disk.
This should fix it at least until you don't discover the root cause.
Best,

Luca


On Jan 26, 2013, at 1:51 AM, Berkowitz, Benjamin M wrote:

> Hi, I've had two or three surface models where I'm getting an error after 
> processing that says "vtkXMLPolyDataReader (0x7fc4cf6071d0): Cannot read cell 
> data array "Normals" from PointData in piece 0.  The data array in the 
> element may be too short."  I've gone back to the thresholded VOI and 
> resegmented using vmtkmarchingcubes, remeshed, and performed my processing 
> operations again, and I still got an error.  Has anyone else ever encountered 
> this?  It doesn't make sense to me considering the normals are associated 
> with the mesh, not the image.
> 
> Thanks,
> Ben
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to