<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:????
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<div><br></div><div>Thanks for the prompt response.</div><div><br></div><div>However, the point is that the shown volume is not from single input. The spheres inside the cylinder are generated dynamically, and included in the vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. Therefore, simply using cutter or plane is unable to fulfill the slicing. </div><div><br></div><div>One thing I can imagine is that if I can get the data from the renderer, I can then apply cutter or plane to slice it. But I do not know how to get the data. </div><div><br></div><div>Cheers,</div><div><br></div><div>Chiang<br><br><div><hr id="stopSpelling">Date: Fri, 12 Feb 2016 14:31:22 -0200<br>Subject: Re: [vtkusers] slice a volume<br>From: eduardo.ecamargo@gmail.com<br>To: wangq1979@outlook.com<br><br><div dir="ltr">Did you try to use vtkCutter class? <a href="http://www.vtk.org/Wiki/VTK/Examples/Java/Miscellaneous/vtkCutter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Java/Miscellaneous/vtkCutter</a></div><div class="ecxgmail_extra"><br clear="all"><div><div class="ecxgmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px;">Atenciosamente,<br><br>Eduardo Camargo, M.Sc.<br><br></div><div dir="ltr" style="font-size:12.8000001907349px;">Analista de Sistemas<br>Instituto Nacional de Ciência e Tecnologia em<br>Medicina Assistida por Computação Científica<br>INCT-MACC  <a href="http://macc.lncc.br/" target="_blank">http://macc.lncc.br</a><br>Laboratório Nacional de Computação Científica<br>LNCC - <a href="http://www.lncc.br/" target="_blank">http://www.lncc.br</a><br><font color="#666666"></font></div><div dir="ltr" style="font-size:12.8000001907349px;"><span style="font-size:12.8px;">Skype: camargo_rh</span><br></div><div dir="ltr" style="font-size:12.8000001907349px;"><br></div><div dir="ltr" style="font-size:12.8000001907349px;"><span style="color:rgb(153,153,153);font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif;font-size:14px;font-style:italic;line-height:19.5px;background-color:rgb(239,239,240);">"Work hard toward your goals, no matter what obstacles get in your way. Even if you think you can’t do it, just be disciplined, put your mind to it, and then do your best." -  Jean Chiar - SETI Institute</span><span style="color:rgb(153,153,153);font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif;font-size:14px;font-style:italic;line-height:19.5px;background-color:rgb(239,239,240);"> </span></div><span style="font-size:12.8000001907349px;color:rgb(51,51,51);font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif;line-height:19.5px;background-color:rgb(239,239,240);"></span></div></div></div></div></div></div>
<br><div class="ecxgmail_quote">On 12 February 2016 at 14:27, WangQ <span dir="ltr"><<a href="mailto:wangq1979@outlook.com" target="_blank">wangq1979@outlook.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Hello Aashish,<div><br></div><div>I have a 3-d image like below. What I want is to cross-sectionally slice the image. I have checked the reslice class, but it needs vtkImageData as input. </div><div><br></div><div>Cheers,</div><div><br></div><div>Chiang</div><div><br></div><div><div style="display:inline-block;">    <span> </span>    <div style="display:inline-block;"><img src="cid:inlineImage0" height="370" width="622"></div>    <span> </span></div><br><br><div><hr>Date: Wed, 10 Feb 2016 11:54:06 -0500<br>Subject: Re: [vtkusers] slice a volume<br>From: <a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a><br>To: <a href="mailto:wangq1979@outlook.com" target="_blank">wangq1979@outlook.com</a><br>CC: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br><br><div dir="ltr">Have you looked into this mapper: <a href="http://www.vtk.org/doc/nightly/html/classvtkImageResliceMapper.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageResliceMapper.html</a><div><br></div><div>Not sure about vtkSphereSource relation to volume. Can you elaborate more?</div><div><br></div><div>Thanks</div><div><br></div></div><div><br><div>On Sat, Feb 6, 2016 at 7:53 PM, WangQ <span dir="ltr"><<a href="mailto:wangq1979@outlook.com" target="_blank">wangq1979@outlook.com</a>></span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><span style="color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;line-height:21.3px;background-color:rgb(255,255,255);">Hello vtkusers,</span><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);">I have a volume, in which there are lots of spheres by vtkSphereSource at arbitrary position, and possible a few isosurfaces. I want to slice the volume at any position along one axis, and save the slices. I tried several ways to achieve it, but since every object has its own mapper and actor. I do not know how to do it.</div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);">Really appreciate for any help!</div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);">Cheers,</div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68,68,68);font-family:'Microsoft YaHei UI','Microsoft YaHei',??,Calibri,sans-serif;font-size:15px;background-color:rgb(255,255,255);">Chiang</div>                                      </div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="ecxHOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</font></span></div></div></div>                                    </div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>                                           </div></body>
</html>