<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \,serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:windowtext;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.PrformatHTMLCar
{mso-style-name:"Pr\00E9format\00E9 HTML Car";
mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML";
font-family:"Courier New";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=FR link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Thank you Andrea, </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I will try to use vtkBooleanOperationPolyDataFilter for the clipping. </p><p class=MsoNormal>The problem is that I have the same artifacts appearing when I try to copy/paste the texture coordinates from a model to another (see jpg attached). </p><p class=MsoNormal>To do that I get the texture coordinates of the source model (GetTCoords). Then for each point of the other model, I give it the texture coordinates of the closest point in the source model. The result is pretty good but for these « cracks ». </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Do you have any idea about that? </p><p class=MsoNormal>Thanks in advance,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruno</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>De : </b><a href="mailto:aborsic@ne-scientific.com">Andrea Borsic</a><br><b>Envoyé le :</b>mardi 7 juin 2016 12:55<br><b>À : </b><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><b>Objet :</b>Re: [vtkusers] Texture problems with vtkClipPolyData</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p>Hi Bruno,<o:p></o:p></p><p>This has probably to do with how the vtkClipPolyData handles the texture coordinates of the dataset you are clipping.</p><p>As an alternative, you can try clipping your dataset with vtkBooleanOperationPolyDataFilter (more info <a href="http://www.vtkjournal.org/browse/publication/797">http://www.vtkjournal.org/browse/publication/797</a>) (I guess you will need to use a triangulated box and not a plane for clipping in this case)</p><p>Perhaps you might have better luck !</p><p>Best,</p><p>Andrea</p><p><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>On 07-Jun-16 12:18 PM, Bruno Grégoire wrote:<br><br><o:p></o:p></span></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hello everyone! </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span></p><p class=MsoNormal><span lang=EN-US>I’m using vtkClipPolyData to cut a poly data into two parts. Everything works like a charm but the textures. </span></p><p class=MsoNormal><span lang=EN-US>As you can see on the picture attached, there are some problems/artifacts appearing on the model after the clipping. After some research, I still have no idea where it comes from. Furthermore, these problems also occur when I’m trying to copy/paste the texture coordinates from a model to another. <br><br>If you have any idea, please tell me.</span></p><p class=MsoNormal><span lang=EN-US>Thank you in advance for your help!</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman ,serif",serif'> </span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman ,serif",serif'>Bruno G</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman ,serif",serif'> </span></p><p class=MsoNormal><span style='font-family:"Times New Roman",serif'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________</pre><pre>Powered by <a href="http://www.kitware.com">www.kitware.com</a></pre><pre><o:p> </o:p></pre><pre>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></pre><pre><o:p> </o:p></pre><pre>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></pre><pre><o:p> </o:p></pre><pre>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a></pre><pre><o:p> </o:p></pre><pre>Follow this link to subscribe/unsubscribe:</pre><pre><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></pre></blockquote><p class=MsoNormal><span style='font-family:"Times New Roman",serif'><br><br><o:p></o:p></span></p><pre>-- </pre><pre>++++++++++++++++++++++++++++++++++++</pre><pre>Andrea Borsic Ph.D.</pre><pre>CEO & Founder NE Scientific LLC</pre><pre>Tel: +1 603 676 7450</pre><pre>Web: <a href="http://www.ne-scientific.com">www.ne-scientific.com</a></pre><pre>Twitter: <a href="https://twitter.com/ne_scientific">https://twitter.com/ne_scientific</a></pre><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p></div></body></html>