<br><font size=2 face="sans-serif">Hi Sebastian,</font>
<br>
<br><font size=2 face="sans-serif">VTK is not a CAD tool, so you may not
find exactly what you need.</font>
<br>
<br><font size=2 face="sans-serif">The clip operation is made cell by cell.</font>
<br><font size=2 face="sans-serif">If you have a box as input, then you
have 6 cells which are the 6 faces of your cube. </font>
<br><font size=2 face="sans-serif">I think what you are looking for is
an hexaedron, which is one volumic cubic cell.</font>
<br>
<br><font size=2 face="sans-serif">After that, during the clip operation,
the cell(s) are clipped by the 0-level set of the field you set as input,
the values being linearly interpolated between the vertices inside the
cell.</font>
<br><font size=2 face="sans-serif">The distance field to a cube is higly
non-linear, so there is no chance that you will get what you are looking
for.</font>
<br>
<br><font size=2 face="sans-serif">Now you have two solutions : </font>
<br><font size=2 face="sans-serif">1/ dividing your input in smaller cells
so that the non-linear nature of your clip function is not too far from
the linearly interpolated one.</font>
<br><font size=2 face="sans-serif">2/ implementing a non-linear clipping
operation inside the cells.</font>
<br>
<br><font size=2 face="sans-serif">While the second solution would be a
great addition to VTK, it is also very difficult to implement...</font>
<br>
<br><font size=2 face="sans-serif">Best,</font>
<br><font size=2 face="sans-serif">Stephane<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>sebastian.gatzka@stud.tu-darmstadt.de</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : vtkusers-bounces@vtk.org</font>
<p><font size=1 face="sans-serif">08/04/2010 11:26</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">vtkusers@vtk.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[vtkusers] Boolean Operation on two
(cube) objects</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Hello World.<br>
<br>
I have finally manged to clip one cube with another.<br>
The result is not what I have expected.<br>
The intersecting cube clips one edge-point of the first cube and with it
all the attached faces.<br>
Look at the attached image to see how this looks like.<br>
<br>
What I really wanted to realize was that the intersection is cut out and
not to delete the whole sides.<br>
It's hard to explain but a boolean operation like "substract"
may descibe it the best - like the picture<b> boolean.png</b> in the attachement!<br>
<br>
See you. Sebastian</font><tt><font size=2>_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.vtk.org/mailman/listinfo/vtkusers<br>
</font></tt>
<br><pre>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
</pre>