Rupesh - 2019-07-12

Hello,
I have set of points(x,y,z) from which I have created a mesh usng following code, from that I have get the triangular mesh. Now I want to know the which points were used to create traingles(faces). Is there any command which can give me that data from mesh object.

Code:

from plyfile import PlyData,PlyElement
import numpy as np 
from mayavi import mlab
from tvtk.api import tvtk

plydata = PlyData.read('/home/local/ALGOANALYTICS/rchandgude/rupesh_work/NTT_dewrapping/sample_data/Envelope/Env.ply')
points = plydata.elements[0].data

x,y,z = [],[],[]                                                                                                                                                                                    

for i in points: 
    x.append(i[0]) 
    y.append(i[1]) 
    z.append(i[2]) 

s = [0.1]*len(x)

pts = mlab.points3d(x, y, z,s)
mesh = mlab.pipeline.delaunay2d(pts)
surf = mlab.pipeline.surface(mesh)
mlab.show()

Output:
I have attached png file output of snapshot.