<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Sam,<br>
if your surface is not too large, it shouldn't hinder the
performance much. <br>
I cut a polydata with ~20k vertices interactively, by sliding the
cut plane and there are no issues (on a lower-end NVIDIA GPU). <br>
<br>
To answer your question: there is another way -- you could use
clipping range of the camera and let the camera frustum cut your
surface, but I would advise against this hack. Just stick with the
vtkCutter. It uses a point locator (sort of a hash-table) to speed
up the lookup and really shouldn't give you much of performance
penalty.<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 06/16/2014 10:43 AM, Sam Raby wrote:<br>
</div>
<blockquote
cite="mid:CAM5z2s2DMaKRJ5e7ri3rDeg=rdByJp46pqpDw=MDQCe3NVev9g@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks for the feedback.
<div>Consider a scenario that you have a slider-bar which scroll
through DICOM files and then this "clipping" has to happen for
each slice repeatedly. I am afraid that this would not allow
the slider-bar to smoothly move, but maybe there no faster way
presently.</div>
<div><br>
</div>
<div>Is there a way to hide only a part of an actor, and not the
entire actor (instead of cutting it)?</div>
<div> </div>
<div>-Sam</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Jun 16, 2014 at 12:21 PM, Miro
Drahos <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mdrahos@robodoc.com" target="_blank">mdrahos@robodoc.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">If what
you want is to cut your sphere and visualize the
intersection of the sphere (a circle) with the viewer plane,
use vtkCutter.<br>
The sphere polydata is the input, the reslice plane is the
cutFunction.<br>
HTH,<br>
Miro
<div class="HOEnZb">
<div class="h5"><br>
<br>
<br>
On 06/13/2014 02:34 PM, Sam Raby wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have a simple actor as simple as sphere and would
like to show it in a certain depth in vtkImageViewer2.<br>
<br>
vtkImageViewer2 displays all the actors which are
above the image, but is there a way to force
vtkImageViewer2 to show only that part of sphere actor
that is in the same depth as the image?<br>
<br>
I saw a post [1] stating that the following may do the
job, but I could not make it work:<br>
<br>
interactorStyle->AutoAdjustCameraClippingRangeOff().<br>
<br>
thanks,<br>
-sam<br>
<br>
[1] <a moz-do-not-send="true"
href="http://www.vtk.org/pipermail/vtkusers/2008-August/047565.html"
target="_blank">http://www.vtk.org/pipermail/vtkusers/2008-August/047565.html</a><br>
</blockquote>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>