[vtkusers] Extract color from mesh

marco piccima at gmail.com
Wed Dec 17 16:52:36 EST 2014


Some updates:
Since the texture is on the mtl file I don't have texture on the loaded 
file :(
What options I can explore to export the texture and map on the mesh?

Marco

On 12/17/2014 02:41 PM, marco wrote:
> Hello,
> I'm using intersectWithLine method to obtain the intersection point of 
> a ray with a mesh. I'm using the point coordinate and the cellId for 
> further analysis.
> Since I have the labels as a RGB color I need to get the color 
> information from that point.
> I found different examples how to read the array names but there is 
> something strange with the files that I'm using, I get:
>
>      ./FindAllArrayNames 120_F_W1_M0.obj
>     Normals: 0
>     Number of PointData arrays: 1
>     Number of CellData arrays: 0
>     Type table/key:
>     3 unsigned char
>     7 unsigned int
>     10 float
>     11 double
>     Array 0:
>
> But I can visualize in meshlab the colored mesh!
>
> Marco
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141217/7c991413/attachment.html>


More information about the vtkusers mailing list