<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Dear Dan,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I’m sorry, but I was too hasty in declaring that my problem was fixed – removing my AddScalars filter did not help after all, and neither
did replacing it with vtkPolyDataNormals. I have now stripped down the code to its simplest configuration. The resulting scene has isosurfaces which are mispositioned and broken in a manner consistent with the images being read with the wrong dimensions.
Furthermore, if the readers are not manually updated, the program crashes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">There is also an error message:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">ERROR: In C:\VTK\VTK-6.2.0\Common\ExecutionModel\vtkStreamingDemandDrivenPipeline.cxx, line 857<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">vtkCompositeDataPipeline (0132A818): The update extent specified in the information for output port 0 on algorithm vtkMetaImageReader(01321E58)
is 0 67 0 72 0 9, which is outside the whole extent 0 69 0 58 0 10.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">The results are ok if only one image is fed to appendPD. If I update the dmcubes[i] manually, the results are also ok.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">It looks as if the base of the pipeline only remembers one set of extents, which it then demands incorrectly from all the inputs.
Have I missed anything important in the code below?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// Set filenames</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><i><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">std</span></i><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><i><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">string</span></i><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dirname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white;mso-fareast-language:EN-US">CHICVIS</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white;mso-fareast-language:EN-US">"/ForthLungCropped20150703"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><i><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">std</span></i><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><i><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">string</span></i><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">fname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[3];<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">fname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[0]
= </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dirname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
+ </span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white;mso-fareast-language:EN-US">"/2505ct/Tumor1Big/lesion2505-1mm.mhd"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">fname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[1]
= </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dirname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
+ </span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white;mso-fareast-language:EN-US">"/3108ct/Tumor1Big/lesion3108-1mm.mhd"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">fname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[2]
= </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dirname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
+ </span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white;mso-fareast-language:EN-US">"/170957ct/Tumor1Big/lesion1709-1mm.mhd"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// Create array of image readers</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkMetaImageReader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
**</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">reader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">reader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
(</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkMetaImageReader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
*[3]);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">for</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">int</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= 0; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
< 3; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">++)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">reader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkMetaImageReader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">New</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">for</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">int</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= 0; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
< 3; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">++){<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">reader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetFileName</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">fname</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">].</span><i><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">c_str</span></i><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">());<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">reader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">Update</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// -----------------------</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// Create the VTK pipeline</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">//</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// image0 image1 image2</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// dmcubes0 dmcubes1 dmcubes2</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// \ | /</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// vtkAppendPolyData</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// mapper/actor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// renderer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// -----------------------</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkDiscreteMarchingCubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
**</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">new</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
(</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkDiscreteMarchingCubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
*[3]);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">for</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">int</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= 0; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
< 3; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">++){<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkDiscreteMarchingCubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">New</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetInputConnection</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">reader</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">GetOutputPort</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">());<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetNumberOfContours</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(1);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetComputeGradients</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(0);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetComputeScalars</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(0);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetComputeNormals</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(1);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetValue</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
255);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkAppendPolyData</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
*</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">appendPD</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkAppendPolyData</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">New</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">for</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">int</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= 0; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
< 3; </span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">++)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">appendPD</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">AddInputConnection</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">dmcubes</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">[</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">i</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">]-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">GetOutputPort</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">());<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkPolyDataMapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
*</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">mapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkPolyDataMapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">New</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">mapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkPolyDataMapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">New</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">mapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetInputConnection</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">appendPD</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">GetOutputPort</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">());<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkActor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
*</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">actor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
= </span><span style="font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white;mso-fareast-language:EN-US">vtkActor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">New</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">actor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">SetMapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">mapper</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">Renderer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">AddActor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">actor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// -------------------------------</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// Reset the camera and initialize</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white;mso-fareast-language:EN-US">// -------------------------------</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">Renderer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">ResetCamera</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">RWI</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">Initialize</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span style="font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white;mso-fareast-language:EN-US">RWI</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">-></span><span style="font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white;mso-fareast-language:EN-US">Start</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thank you<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Nigel McFarlane<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">University of Bedfordshire UK<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Dan Lipsa [mailto:dan.lipsa@kitware.com]
<br>
<b>Sent:</b> 06 August 2015 22:21<br>
<b>To:</b> Nigel Mcfarlane <Nigel.Mcfarlane@beds.ac.uk>; vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] vtkAppendPolydata - wrong extents on multiple inputs<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">> This request is propagated upstream and stops if a filter has its inputs older than its output. <o:p></o:p></p>
<div>
<p class="MsoNormal">I meant downstream. It has to check all filters as their properties might change which will affect the final result.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Aug 6, 2015 at 5:12 PM Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com">dan.lipsa@kitware.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Nigel,<o:p></o:p></p>
</div>
<p class="MsoNormal">The pipeline executive compares the modification time (<span style="font-size:10.0pt">vtkObject::GetMTime()</span>) for the output of a filter against each of its inputs. If any of the inputs is newer, the filter is updated. It may be that
your filter does not update the time of its output properly. This request is propagated upstream and stops if a filter has its inputs older than its output. I would setup a breakpoint and look at the first update for your filters.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Aug 6, 2015 at 9:20 AM Nigel Mcfarlane <<a href="mailto:Nigel.Mcfarlane@beds.ac.uk" target="_blank">Nigel.Mcfarlane@beds.ac.uk</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Dear vtkusers,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am creating a visual pipe in vtk 6.2.0 and I am having problems connecting vtkAppendPolyData to multiple inputs which start from images of different dimensions. The visual pipe
converts a set of input images into isosurfaces, adds scalars for colour and transparency, then merges them into one polydata mesh so they can be depth sorted before rendering. Its structure looks like this:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">//</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// image1 image2 image3</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// | | |</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// DMCubes1 DMCubes2 DMCubes3</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// | | |</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// AddScalars1 AddScalars2 AddScalars3</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// \ | /</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// \ | /</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// \ | /</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// vtkAppendPolyData</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// |</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// vtkDepthSortPolyData</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// |</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// Mapper/Actor</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// |</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">// Renderer</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:green;background:white">//</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The images are produced by vtkMetaImageReader, the “DMCubes” filters are vtkDiscreteMarchingCubes, and the”AddScalars” filters are my own code.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The problem is that this produces an image in which the dimensions/extents of two of the images have clearly been set incorrectly. I don’t know much about the way the vtk pipeline
works, but I suppose that an information request for the extents of the images travels up and back down the pipeline, so the extents get set to that of the last input, and then applied to all the inputs. The problem disappears if the input branches are first
independently updated by calling a manual Update() on each of the AddScalars filters, but it returns if one of the DMCubes filters is modified, which triggers another general update cycle.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Is there any way to set up this pipeline so that it does not require a manual update when the image inputs are modified?
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Nigel McFarlane<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">University of Bedfordshire<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><o:p></o:p></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</body>
</html>