<div dir="ltr">Hello Sebastian,longbowzhang and Simon,<div><div><div>I am sorry I couldn't participate in the discussion as I was away for couple of days. Thank you all for your valuable time and pointers.</div><div><br></div><div>@Sebastian: Osirix viewer (on Mac) is also having this feature (Scissors) to clip on volume rendering.</div><div><br></div><div>@longbowzhang: My mistake, may be I couldn't put the context properly. What I mean is Clip on volume in the context of Volume Rendering only. Based on your pointers </div><div>1.Can I use vtkboxwidget to draw a bounding box on the volume?  I didn't get the pipeline exactly..if you have an example code that would be helpful..</div><div><br></div><div>@Simon: I am not using Qt here. I used vtkcontourWidget to draw a curve on the volume as shown below and got the vtkpoints along the curve. Using these points I have created a vtkimpliciteselectionloop and tried to feed this to setclipfunction of VtkClipDataset  which gives unstructured grid output and thought of converting it to structured grid using vtkprobefilter but  with no luck..:)</div><div><br></div><div><img src="cid:ii_153cb51b11ed3a51" alt="Inline image 1" width="143" height="161" style="margin-right: 0px;"><br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 2:37 AM, longbowzhang <span dir="ltr"><<a href="mailto:longbowzhangchina@gmail.com" target="_blank">longbowzhangchina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Simon,<br>
<br>
Because the author asked "how to clip a volume w/ 2D hand drawn curve"<br>
rather than "on a Volume Rendering" context, I proposed to use<br>
vtkImageTracerWidget on selected slices. This is probably the easiest way.<br>
<br>
Like you said, if to clip a volume in the context of "volume rendering",<br>
besides the way you propose, I would propose another alternative.<br>
<br>
1 Draw the bounding box (NOT outline) of the volume, but represent this<br>
6-face-bounding-box in terms of Wireframe (via<br>
vtkActor->GetProperty()->SetRepresentationToWireframe());<br>
2 Place the vtkImagePlaneWidget on the bounding box (as shown in the<br>
attached image);<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5737450/traceOnBB.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5737450/traceOnBB.png</a>><br>
<br>
3 Derive the stencil, which will be used as a mask for clipping in the<br>
context of volume rendering.<br>
<br>
I think this would work. What's your opinion?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Clip-Volume-using-freehand-2D-Curve-ROI-tp5737430p5737450.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Clip-Volume-using-freehand-2D-Curve-ROI-tp5737430p5737450.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b style="font-family:tahoma,sans-serif">With Kind Regards:</b><br style="font-family:tahoma,sans-serif"><span style="font-family:tahoma,sans-serif">Mallikarjuna K,</span></div><div dir="ltr"><font face="tahoma, sans-serif">07795531103/09908238861.<br></font><span style="font-family:tahoma,sans-serif"></span><div><br></div></div></div></div></div></div></div>
</div>