Exporting coordinates of vertices to CSV I have a .3ds file which I import into Blender. 


Now what I'm trying to do is to export the coordinates of vertices into a .ply file. When I export these vertices into a .ply file they are not correct. It seems that it only exports the coordinates of the single face which you can see in the picture. How can I export those vertices correctly?

EDIT
The .csv structure:

1;2;3\n

4;5;6\n

...
Each column is separated by a semicolon and each row by a new line.
You can generate your CSV directly from blender using the script below.
It will generate a semi-colon separated list of coordinates for each vertex in the active mesh.

It requires you to select and set the mesh you want to export as the active object.

import bpy

outputFile = 'C:/someFolder/mesh.csv'

verts = [ bpy.context.object.matrix_world * v.co for v in bpy.context.object.data.vertices ]

csvLines = [ ";".join([ str(v) for v in co ]) + "\n" for co in verts ]

f = open( outputFile, 'w' )
f.writelines( csvLines )
f.close()


Here's how the CSV data looks like when exporting the coordiantes of a default icosphere (2 subdivisions, 42 verts):



0.0;0.0;-1.0
0.7236073017120361;-0.5257253050804138;-0.44721952080726624
-0.276388019323349;-0.8506492376327515;-0.4472198486328125
-0.8944262266159058;0.0;-0.44721561670303345
-0.276388019323349;0.8506492376327515;-0.4472198486328125
0.7236073017120361;0.5257253050804138;-0.44721952080726624
0.276388019323349;-0.8506492376327515;0.4472198486328125
-0.7236073017120361;-0.5257253050804138;0.44721952080726624
-0.7236073017120361;0.5257253050804138;0.44721952080726624
0.276388019323349;0.8506492376327515;0.4472198486328125
0.8944262266159058;0.0;0.44721561670303345
0.0;0.0;1.0
-0.16245555877685547;-0.49999526143074036;-0.8506544232368469
0.42532268166542053;-0.30901139974594116;-0.8506541848182678
0.26286882162094116;-0.8090116381645203;-0.5257376432418823
0.8506478667259216;0.0;-0.5257359147071838
0.42532268166542053;0.30901139974594116;-0.8506541848182678
-0.525729775428772;0.0;-0.8506516814231873
-0.6881893873214722;-0.49999693036079407;-0.5257362127304077
-0.16245555877685547;0.49999526143074036;-0.8506544232368469
-0.6881893873214722;0.49999693036079407;-0.5257362127304077
0.26286882162094116;0.8090116381645203;-0.5257376432418823
0.9510578513145447;-0.30901262164115906;0.0
0.9510578513145447;0.30901262164115906;0.0
0.0;-0.9999999403953552;0.0
0.5877856016159058;-0.8090167045593262;0.0
-0.9510578513145447;-0.30901262164115906;0.0
-0.5877856016159058;-0.8090167045593262;0.0
-0.5877856016159058;0.8090167045593262;0.0
-0.9510578513145447;0.30901262164115906;0.0
0.5877856016159058;0.8090167045593262;0.0
0.0;0.9999999403953552;0.0
0.6881893873214722;-0.49999693036079407;0.5257362127304077
-0.26286882162094116;-0.8090116381645203;0.5257376432418823
-0.8506478667259216;0.0;0.5257359147071838
-0.26286882162094116;0.8090116381645203;0.5257376432418823
0.6881893873214722;0.49999693036079407;0.5257362127304077
0.16245555877685547;-0.49999526143074036;0.8506543636322021
0.525729775428772;0.0;0.8506516814231873
-0.42532268166542053;-0.30901139974594116;0.8506541848182678
-0.42532268166542053;0.30901139974594116;0.8506541848182678
0.16245555877685547;0.49999526143074036;0.8506543636322021