[vtkusers] Texture problems with vtkClipPolyData

Bruno Grégoire s225251 at studenti.polito.it
Wed Jun 8 04:45:32 EDT 2016


Thank you Andrea, 

I will try to use vtkBooleanOperationPolyDataFilter for the clipping. 
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). 
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 ».   

Do you have any idea about that? 
Thanks in advance,

Bruno

De : Andrea Borsic
Envoyé le :mardi 7 juin 2016 12:55
À : vtkusers at vtk.org
Objet :Re: [vtkusers] Texture problems with vtkClipPolyData

Hi Bruno,
This has probably to do with how the vtkClipPolyData handles the texture coordinates of the dataset you are clipping.
As an alternative, you can try clipping your dataset with vtkBooleanOperationPolyDataFilter (more info http://www.vtkjournal.org/browse/publication/797) (I guess you will need to use a triangulated box and not a plane for clipping in this case)
Perhaps you might have better luck !
Best,
Andrea

On 07-Jun-16 12:18 PM, Bruno Grégoire wrote:

Hello everyone! 
 
I’m using vtkClipPolyData to cut a poly data into two parts. Everything works like a charm but the textures. 
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. 

If you have any idea, please tell me.
Thank you in advance for your help!
 
Bruno G
 



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers


-- 
++++++++++++++++++++++++++++++++++++
Andrea Borsic Ph.D.
CEO & Founder NE Scientific LLC
Tel: +1 603 676 7450
Web: www.ne-scientific.com
Twitter: https://twitter.com/ne_scientific

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160608/aabc79cb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextureProblem2.JPG
Type: image/jpeg
Size: 33086 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160608/aabc79cb/attachment.jpe>


More information about the vtkusers mailing list