<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Bill,</div>Thanks for your reply. The wiki link I provided contains my entire, small dataset, <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">f_7x4x4_height.vtk, </span>which does indeed consist of integral data (just 0s,1s,2s,3s). And the DMC filter does generate the desired geometry. It's just that when I then try to color it according to another (integral) field, it's as if the mapper disregards the color array.<div><br></div><div>If there's something I can do to make this easier to test, e.g. provide a C++ example instead of Python, I can do that.</div><div><br></div><div><br></div><div>I also tried to blindly use VTK's example DMC pgm on my simple dataset, but had errors (not surprisingly):</div><div><div>$ /Users/heiland/dev/vtk-build/vtk-8-2-11/bin/GenerateModelsFromLabels ~/dev/vtk-stuff/f_7x4x4.vtk 0 3</div><div>Incomplete file record definition</div><div>NDims required and not defined.</div><div>MetaObject: Read: MET_Read Failed</div><div>MetaImage: M_Read: Error parsing file</div><div>MetaImage: Read: Cannot parse file</div><div>ERROR: In /Users/heiland/Documents/workspace/VTK/IO/vtkMetaImageReader.cxx, line 84</div><div>vtkMetaImageReader (0x7f8f29002000): MetaImage cannot parse file.</div><div><br></div><div>Incomplete file record definition</div><div>NDims required and not defined.</div><div>MetaObject: Read: MET_Read Failed</div><div>MetaImage: M_Read: Error parsing file</div><div>MetaImage: Read: Cannot parse file</div><div>ERROR: In /Users/heiland/Documents/workspace/VTK/IO/vtkMetaImageReader.cxx, line 224</div><div>vtkMetaImageReader (0x7f8f29002000): MetaImage cannot read data from file.</div><div><br></div><div>ERROR: In /Users/heiland/Documents/workspace/VTK/Graphics/vtkDiscreteMarchingCubes.cxx, line 292</div><div>vtkDiscreteMarchingCubes (0x7f8f28501bf0): Cannot contour data of dimension != 3</div><div><br></div><div>ERROR: In /Users/heiland/Documents/workspace/VTK/Graphics/vtkWindowedSincPolyDataFilter.cxx, line 112</div><div>vtkWindowedSincPolyDataFilter (0x7f8f285024f0): No data to smooth!</div><div><br></div></div><div><br></div><div>thanks, Randy<br><br><div><div><div><br></div><div><div>On Nov 10, 2011, at 6:02 PM, Bill Lorensen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Randy,<br><br>I have not looked at your data yet. But in general, MarchingCubes<br>processes continuous data while DiscreteMarchingCubes processes<br>integral data, typically created by a segmentation algorithm. T\he two<br>algorithms are not normally used on the same datasets. What is the<br>character of your data?<br><br>Bill<br><br>On Tue, Nov 8, 2011 at 7:05 AM, Randy Heiland <<a href="mailto:heiland@indiana.edu">heiland@indiana.edu</a>> wrote:<br><blockquote type="cite">Since I never got a response on the users list, I'll try the dev list.<br></blockquote><blockquote type="cite">thanks, Randy<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Begin forwarded message:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">From: Randy Heiland <<a href="mailto:heiland@indiana.edu">heiland@indiana.edu</a>><br></blockquote><blockquote type="cite">Subject: [vtkusers] coloring vtkDiscreteMarchingCubes<br></blockquote><blockquote type="cite">Date: November 3, 2011 11:43:12 AM EDT<br></blockquote><blockquote type="cite">To: <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm puzzled by the following: if I extract a surface from a 3D dataset<br></blockquote><blockquote type="cite">using vtkContourFilter, I can color it according to a different scalar<br></blockquote><blockquote type="cite">field; however, if I use vtkDiscreteMarchingCubes, my same pipeline doesn't<br></blockquote><blockquote type="cite">color it.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I've put a simple dataset and Python script here (near the bottom):<br></blockquote><blockquote type="cite"> <a href="http://old.compucell3d.org/mediawiki1.7/index.php/Vtk_contours_3D">http://old.compucell3d.org/mediawiki1.7/index.php/Vtk_contours_3D</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and built VTK from git a couple months ago:<br></blockquote><blockquote type="cite">In [3]: vtk.vtkVersion.GetVTKVersion()<br></blockquote><blockquote type="cite">Out[3]: '5.9.0'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thanks, Randy<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Powered by <a href="http://www.kitware.com">www.kitware.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Visit other Kitware open-source projects at<br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br></div></blockquote></div><br></div></div></div></body></html>