Could lastool convert .txt to .obj?

424 views
Skip to first unread message

Yitong Jiang

unread,
Feb 17, 2015, 9:35:26 AM2/17/15
to last...@googlegroups.com
Hello,

Could .txt file be converted to .obj using lastool?

Thank you!

Yitong

Martin Isenburg

unread,
Feb 17, 2015, 10:38:18 AM2/17/15
to LAStools - efficient command line tools for LIDAR processing

Hello,

The las2tin tool can produce TINs in the venerable OBJ mesh format. Try

las2tin -i slow.txt -o slower.obj

Martin @rapidlasso

Yitong Jiang

unread,
Feb 19, 2015, 6:41:38 PM2/19/15
to last...@googlegroups.com
Hi Martin,

Is there a way to convert point cloud file to .obj without making it TIN?

Thank you!

Yitong

On Wed, Feb 18, 2015 at 11:58 AM, Yitong Jiang <yito...@gmail.com> wrote:
Hi Martin,

I did las2tin, however, when I try to view the obj file, there is a lot of warnings. Please see the attachment. Do you know what might be the possible cause?

Yitong

Yitong Jiang

unread,
Feb 19, 2015, 6:44:49 PM2/19/15
to last...@googlegroups.com
Hi Martin,

I did las2tin, however, when I try to view the obj file, there is a lot of warnings. Please see the attachment. Do you know what might be the possible cause?

Yitong
On Tue, Feb 17, 2015 at 10:37 AM, Martin Isenburg <martin....@gmail.com> wrote:
obj error.png

Martin Isenburg

unread,
Feb 19, 2015, 7:56:09 PM2/19/15
to LAStools - efficient command line tools for LIDAR processing

Hello,

It worked correctly (so it seems to me) but you cannot load and view the resulting mesh in OBJ format with lasview ... the lasview tool can only display points (and do some neat tricks on them).

Martin

Martin

Martin Isenburg

unread,
Feb 20, 2015, 7:57:49 PM2/20/15
to LAStools - efficient command line tools for LIDAR processing
Hello Yitong,

it is my understanding that the OBJ format [1] is mainly used for meshes and TINs that are optionally textured or have normals. Ten years back we wrote a paper why such indexed formats are not well suited for storing the massive meshes we see today and suggested the use of "streaming formats" [2] instead.

However, you can generate an OBJ file containing only vertices as follows:

D:\LAStools\bin>las2txt -i ..\data\fusa.laz -parse Exyz -extra v -o fusa.obj
D:\LAStools\bin>more fusa.obj
v 277999.97 6122342.20 64.35
v 277999.97 6122342.53 64.30
v 277999.52 6122339.74 63.09
v 277999.55 6122340.05 62.88
v 277999.53 6122340.41 63.00
v 277999.53 6122340.75 63.04
v 277999.55 6122341.07 62.86
v 277999.48 6122341.81 63.46
[...]

or - to avoid creating a file on disk - like this

D:\LAStools\bin>las2txt -i ..\data\fusa.laz -parse Exyz -extra v -stdout | more
v 277999.97 6122342.20 64.35
v 277999.97 6122342.53 64.30
v 277999.52 6122339.74 63.09
v 277999.55 6122340.05 62.88
v 277999.53 6122340.41 63.00
v 277999.53 6122340.75 63.04
v 277999.55 6122341.07 62.86
v 277999.48 6122341.81 63.46
v 277999.85 6122342.39 60.07
v 277999.64 6122343.30 61.93
[...]


Regards,

Martin @rapidlasso

[1] http://en.wikipedia.org/wiki/Wavefront_.obj_file
[2] http://www.cs.unc.edu/~isenburg/sm/
Reply all
Reply to author
Forward
0 new messages