<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Andrew,<br>
Is it an image or volume? If it is a volume, you must use vtkBoxWidget
to cut it to planar volumes...If it is an image, you must use
vtkImageClip...<br>
<br>
<br>
vtkBoxWidget bw=new vtkBoxWidget();<br>
public void boxSetUp() {<br>
    bw.SetInput(mapper.GetInput());<br>
    bw.PlaceWidget();<br>
    bw.InsideOutOn();<br>
    renderer.AddObserver("InteractionEvent", this, "boxInteraction");<br>
}<br>
 public void boxInteraction() {<br>
       vtkPlanes planes = new vtkPlanes();<br>
       bw.GetPlanes(planes);<br>
       mapper.SetClippingPlanes(planes);<br>
    }<br>
-------------------------------------------------------<br>
vtkImageClip clip=new vtkImageClip();<br>
clip.SetOutputWholeExtent(newextent[0], newextent[1], newextent[2],
newextent[3], newextent[4], newextent[5]);<br>
imageActor.SetInput(clip.GetOutput());<br>
<br>
<br>
Best Regards,<br>
Sercan...<br>
<br>
<br>
08.02.2010 13:24, Андрей Глухов yazm&#305;&#351;:
<blockquote
 cite="mid:5c44efa91002080324g5b13605le02d4cb10fe1a92@mail.gmail.com"
 type="cite">Hello.<br>
  <br>
  <span id="result_box" class="long_text"><span
 title="Я создаю изображение из DICOM файлов.">I create an 3D - image
from the DICOM files. </span><span
 title="Как можно отсечь например четверть из этого изображения или рассечь вертикальной плоскостью?">How
can I cut off like a quarter of the image, or to cut the vertical
plane? </span><span
 title="Я пробовал использовать vtkCutter, но ничего не получилось.">I
tried to use vtkCutter, but nothing happened. </span><span
 title="Создается плоскость, а не контур.">Create a plane, rather than
contour.</span></span> <span id="result_box" class="long_text"><span
 title="Для создания изображения я использую фильтр vtkMarchingCubes">To
create the image I use a filter vtkMarchingCubes.</span></span><br
 clear="all">
  <br>
-- <br>
С Уважением,<br>
Андрей.<br>
Best regards, Andrew<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
<br>
</body>
</html>