<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Scott and lars,<BR>
&nbsp;<BR>
Since you&nbsp;are working on the similar thing, I would be interested to know how satisfactory is the performance (how long does it take to cut in a typical RT case of 20 or so ROIs).&nbsp; create a surface from the contours and use vtkCutter to get the cross-section is certainly a more "accurate" way than the rudimentary method of connecting the points, but in myexperience, the cutting of a typical RT case takes over a second.&nbsp; I can't use that in real time.<BR><BR>
Also I found that using vtkPolyMapper2D in conjuction of vtkActor2D makes a better contour display (no artificial shifing of the contour, etc.).&nbsp; Make sure to set the transformation of the mapper to world coordinate system:<BR>
&nbsp;<BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkCoordinate* coordinate = vtkCoordinate::New();<BR>
coordinate-&gt;SetCoordinateSystemToWorld();<BR>
vtkPolyDataMapper2D* mapper = vtkPolyDataMapper2D::New();<BR>
mapper-&gt;SetColorModeToDefault();<BR>
mapper-&gt;SetTransformCoordinate(coordinate);<BR></FONT></FONT>
&nbsp;<BR>
Regards,<BR>Xiaofeng<BR><BR><BR>&nbsp;<BR>&gt; Date: Tue, 4 May 2010 16:36:14 +0200<BR>&gt; From: lars-friedrich@gmx.net<BR>&gt; Subject: Re: [vtkusers] Create an approximate cross-section of a RT ROI<BR>&gt; To: Scott.Johnson@neuwave.com; vtkusers@vtk.org; xf10036@hotmail.com<BR>&gt; <BR>&gt; Scott,<BR>&gt; <BR>&gt; I had a similar problem with 'free planes' at the beginning, but I usually define the cut plane 'a bit' (0.001 mm or so) in front of the image slice (towards view position).<BR>&gt; <BR>&gt; regards,<BR>&gt; <BR>&gt; lars<BR>&gt; <BR>&gt; -------- Original-Nachricht --------<BR>&gt; &gt; Datum: Tue, 4 May 2010 09:12:33 -0500<BR>&gt; &gt; Von: "Scott Johnson" &lt;Scott.Johnson@neuwave.com&gt;<BR>&gt; &gt; An: "Xiaofeng Z" &lt;xf10036@hotmail.com&gt;, "VTK" &lt;vtkusers@vtk.org&gt;<BR>&gt; &gt; Betreff: Re: [vtkusers] Create an approximate cross-section of a RT ROI<BR>&gt; <BR>&gt; &gt; Hello Xiaofeng,<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; I've been working on something similar, but am not quite there yet. I<BR>&gt; &gt; can get you started.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; The general idea is that you will need to create a polygonal shape from<BR>&gt; &gt; the contours in the RT structure set, then create a vtkPlane which<BR>&gt; &gt; represents the plane you wish to cut. You can then create a pipeline<BR>&gt; &gt; which looks something like:<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; vtkCutter -&gt; vtkPolyDataMapper -&gt; vtkActor<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Set the properties of the actor to have EdgeVisibilityOn and an<BR>&gt; &gt; EdgeColor or the cut shape will not be visible. The actor will show a<BR>&gt; &gt; cross section of the ROI intersected with the plane.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; The issue I'm having is properly displaying the vtkActor with the<BR>&gt; &gt; images. I've extended beyond axial sagittal and coronal and I seem to<BR>&gt; &gt; be missing something in the coordinate conversions.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Good luck.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; -- Scott<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; From: vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] On<BR>&gt; &gt; Behalf Of Xiaofeng Z<BR>&gt; &gt; Sent: Monday, May 03, 2010 7:12 PM<BR>&gt; &gt; To: VTK<BR>&gt; &gt; Subject: [vtkusers] Create an approximate cross-section of a RT ROI<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Hi vtkUsers,<BR>&gt; &gt; <BR>&gt; &gt; I have a set of contours in axial orientation representing a ROI. I<BR>&gt; &gt; need to sketch the ROI in coronal and sagittal plane, by connection the<BR>&gt; &gt; points made from the intersection of the contours and the cutting plane.<BR>&gt; &gt; Is there a function to do that in vtk or in ITK?<BR>&gt; &gt; <BR>&gt; &gt; I know the result is not "precise" in a sense that the contours make<BR>&gt; &gt; this way is not always consistent between themselves. But it seemed to<BR>&gt; &gt; be the only viable way to sketch a ROI in a multi-planar rendering in<BR>&gt; &gt; real time.<BR>&gt; &gt; <BR>&gt; &gt; Many thanks!<BR>&gt; &gt; Xiaofeng<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; ________________________________<BR>&gt; &gt; <BR>&gt; &gt; The New Busy is not the old busy. Search, chat and e-mail from your<BR>&gt; &gt; inbox. Get started.<BR>&gt; &gt; &lt;http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL<BR>&gt; &gt; :ON:WL:en-US:WM_HMP:042010_3&gt; <BR>&gt; &gt; <BR>&gt; <BR>&gt; -- <BR>&gt; GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<BR>&gt; Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01<BR>                                               <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1' target='_new'>Learn more.</a></body>
</html>