<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [vtkusers] Clipping vtkPolyData with vtkBox</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>Hi Samo, vtkusers,<BR>
<BR>
I did this using a slightly long-winded approach. In one program<BR>
I would render the object to be clipped along with a plane located<BR>
at the origin and pointing up the x axis. I would then drag the object<BR>
to be cut to the plane and place it in whatever orientation I wanted and<BR>
then store the transformation to a file. I wrote another script to generate<BR>
the clipped surface but it could be done in one.<BR>
<BR>
Or you might be able to draw a box on screen and transform it to the orientation<BR>
and position you want and then use that transform on the clipping box. If you use<BR>
actor mode, normally the "a" key with the default interactive renderer you can<BR>
move things about.<BR>
<BR>
hth,<BR>
<BR>
Henrik<BR>
<BR>
-----Original Message-----<BR>
From: vtkusers-bounces+henrik.westerberg=crg.es@vtk.org on behalf of samo<BR>
Sent: Thu 5/24/2007 2:02 PM<BR>
To: vtkusers@vtk.org<BR>
Subject: [vtkusers] Clipping vtkPolyData with vtkBox<BR>
<BR>
<BR>
<BR>
Hello folks<BR>
<BR>
I clip PolyData with the vtkBox class. My problem is, that the clipping data<BR>
is not orthogonal to the main axis, but the box is clipping along these<BR>
axes. How can I change the orientation of the box, such that the box is<BR>
clipping parallel to my PolyData and not to the main axis of my coordinate<BR>
system? I tried<BR>
<BR>
vtkBox* box = vtkBox::New();<BR>
box->SetTransform(PolyDataActor->GetUserTransform());<BR>
<BR>
but that did not work. Has anybody an idea how I can change the orientation<BR>
of my box?<BR>
<BR>
Thanks!<BR>
--<BR>
View this message in context: <A HREF="http://www.nabble.com/Clipping-vtkPolyData-with-vtkBox-tf3809662.html#a10782368">http://www.nabble.com/Clipping-vtkPolyData-with-vtkBox-tf3809662.html#a10782368</A><BR>
Sent from the VTK - Users mailing list archive at Nabble.com.<BR>
<BR>
_______________________________________________<BR>
This is the private VTK discussion list.<BR>
Please keep messages on-topic. Check the FAQ at: <A HREF="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
Follow this link to subscribe/unsubscribe:<BR>
<A HREF="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>