Import a cloud of 3D points

Hello everyone,

Since starting with Blender, I import a file in Meshlab * XYZ with a cloud of 3D points with the following coordinates.:
1615955.10 9258044.69 27.27
1615953.43 9258043.41 27.52
1615955.04 9258043.58 27.30
1615954.36 9258041.32 27.49
1615953.67 9258038.39 27.50
1615952.87 9258034.44 27.64
1615951.90 9258033.50 27.66
1615950.78 9258032.17 27.68
1615951.89 9258042.08 27.45
1615950.00 9258040.65 27.59
1615948.64 9258039.41 27.55
1615946.54 9258037.15 27.59
1615944.37 9258034.70 27.64
1615942.01 9258032.55 27.63
1615945.10 9258033.49 27.52
1615941.89 9258031.28 27.58
1615944.49 9258031.37 27.59
1615942.52 9258029.94 27.62
1615976.12 9258030.23 28.17
1615976.48 9258027.40 28.28
1615976.13 9258023.22 28.68
I exported *. OBJ.
Then I tried to import this file. * OBJ in Blender (2.66.1) but it is not working!

Do you have an idea?

In advance thank you.

Cordially.

hi, I don’t think those numbers make much sense, removed 5 digits from x and y columns and tried a minimal script to import…
see if this helps, run script from console or a text editor window


verts = [(55.10 , 44.69 , 27.27) , 
(53.43 , 43.41 , 27.52) , (55.04 , 43.58 , 27.30) , 
(54.36 , 41.32 , 27.49) , (53.67 , 38.39 , 27.50) , 
(52.87 , 34.44 , 27.64) , (51.90 , 33.50 , 27.66) , 
(50.78 , 32.17 , 27.68) , (51.89 , 42.08 , 27.45) , 
(50.00 , 40.65 , 27.59) , (48.64 , 39.41 , 27.55) , 
(46.54 , 37.15 , 27.59) , (44.37 , 34.70 , 27.64) , 
(42.01 , 32.55 , 27.63) , (45.10 , 33.49 , 27.52) , 
(41.89 , 31.28 , 27.58) , (44.49 , 31.37 , 27.59) , 
(42.52 , 29.94 , 27.62) , (76.12 , 30.23 , 28.17) , 
(76.48 , 27.40 , 28.28) , (76.13 , 23.22 , 28.68)]

import bpy
mes = bpy.data.meshes.new('Mesh')
mes.from_pydata(verts, [], [])
obj = bpy.data.objects.new('Cloud', mes)
bpy.context.scene.objects.link(obj)

I’m not sure if .obj supports point data, I belive it will only export polygons.

When I was doing something similar, I exported as .wrl from meshlab. Imported into blender no problem.