Well, not very much to add to the question. Seems to be a standard format for DEM lidar scans. THe lidar import doesn't seem to recognize it, so I wonder how it's done.
Cheers
Tom
How to get .asc Lidar data into Houdini?
2341 3 0- Tom Mangold
- Member
- 94 posts
- Joined: Nov. 2017
- Offline
- Tom Mangold
- Member
- 94 posts
- Joined: Nov. 2017
- Offline
node = hou.pwd()
geo = node.geometry()
# Add code to modify contents of geo.
# Use drop down menu to select examples.
import hou
data =
cellSize = 25
path = “P:/mountain/PNOA_MDT25_ETRS89_HU30_0182_LID.asc”
f = open(path, ‘r’)
line = f.readlines()
f.close
x = 0
z = 0
for each in line:
split = each.split(“ ”)
for each in split:
pt = geo.createPoint()
pt.setPosition(hou.Vector3(x*cellSize, float(each), z*cellSize))
x += 1
x = 0
z += 1
Wrote my own importer for the python node. Hope it helps somebody else. The .asc format is pretty simple.
There seems to be a solution with numpy, but it didn't work for me.
Cheers!
P.S.: The formating unfortunately doesn't display. : ( But the indents are still there when editing the post. : /
geo = node.geometry()
# Add code to modify contents of geo.
# Use drop down menu to select examples.
import hou
data =
cellSize = 25
path = “P:/mountain/PNOA_MDT25_ETRS89_HU30_0182_LID.asc”
f = open(path, ‘r’)
line = f.readlines()
f.close
x = 0
z = 0
for each in line:
split = each.split(“ ”)
for each in split:
pt = geo.createPoint()
pt.setPosition(hou.Vector3(x*cellSize, float(each), z*cellSize))
x += 1
x = 0
z += 1
Wrote my own importer for the python node. Hope it helps somebody else. The .asc format is pretty simple.
There seems to be a solution with numpy, but it didn't work for me.
Cheers!
P.S.: The formating unfortunately doesn't display. : ( But the indents are still there when editing the post. : /
Edited by Tom Mangold - March 30, 2020 06:32:36
- sekow
- Member
- 238 posts
- Joined: Nov. 2013
- Offline
- Tom Mangold
- Member
- 94 posts
- Joined: Nov. 2017
- Offline
-
- Quick Links