Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rough Point Cloud Survey with Phone Lidar 1

Status
Not open for further replies.

Celt83

Structural
Sep 4, 2007
2,070
My use case for this is really rough survey stuff so putting it in the Structural forums.

I recently got a much needed cell phone upgrade and found myself with a phone that has a lidar sensor along with the cameras.
The sensor is terrible for fine detail but for big dimensions like wall to wall distance it gets passable results and gives me a way to do some cheap 3D scans on the quick for context when back in the office.

It took a bit to find a process to make usable output for Revit but found two paths:
First off here is what the raw exported obj file looks like, it's pretty muddy (fine detail is lost but big stuff like the width of my oven and height of my countertop are ok)
Capture_hycxzp.png


Path 1:
Use MeshLab to export a dxf file, this DXF is the 3D Mesh (you may want to do some mesh simplifications prior to exporting)
Link to Meshlab: Link
In Revit under the Massing and Site tab model an in place Mass and import the DXF to the Mass
(it needs to be brought into a Mass otherwise floor cut planes and sections won't clip the mesh)

Mesh DXF in Revit:
Capture_sixw89.png


Section thru counter/floor (actual tape measure 2'- 10 3/4"):
Capture_eryc19.png



Path 2:
Using the following python code pull out the vertices from the OBJ file and write an .XYZ point cloud file:
Python:
"""
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

'this script file must be in the same path as the obj file'
f = open("export.obj", "r")

lines_raw = f.readlines()

f.close()

points = []

for line in lines_raw:
    
    if line[0] == "v":
        points.append(line[2:])
    else:
        pass

'writes out an xyz file to the same file path as the script'
file = open('export.xyz','w')

for pt in points:
    file.write(pt)

file.close()

Using the Free Trial Version of Autodesk Recap (ability to save project .rcp appears to persist after trial ends) import the .xyz file and index with Recap to a .rcp file (for the app I use to export up is y not z)
Link to Autodesk Recap: Link

In Revit import a point cloud and pick the RCP file.

Point Cloud in Revit:
Capture_x6crhr.png

Oven Dimension in Revit (actual 2'- 5 13/16", so again super rough but useful for context)
Capture_zw5mhf.png



So not nearly as accurate as those multi thousand dollar scanners but to get a rough scan for context and rough location of obstruction could be pretty useful.

Phone: iPhone 12 Pro (Looks like the Max and the newest iPad pro also have the lidar sensors)
Phone App: 3D Scanner App (free and can export to OBJ files as well as others) Link

My Personal Open Source Structural Applications:

Open Source Structural GitHub Group:
 
Replies continue below

Recommended for you

This is really interesting. Any idea what the lidar range is?

I have started to do more projects using point clouds. In my area I can get a scan for my projects at a cost around $2,000 to $3,000, so its hard to justify any expense for my own laser scanner. Something like you show on a small project would be useful.

I am in mining and power plants so lots of very busy spaces with piping, electrical etc. running every which way. Site measuring is difficult.
 
The app I linked to has a couple sliders available but not much explanation so I've been in a learn by doing mode.

In highres mode:
scan distance slider goes up to 5.0 m , also has an infinite setting but was getting lots of holes and dodgy region unions with that setting.

resolution slider goes from apple (5 mm) to house(20 mm) - I used 10 mm for the scan in my post which yielded about 270,000 points.

there is a confidence setting as well which I've yet to determine how this influences the mesh

I imagine as more developers take interest in the Lidar sensor we might get some apps with more refined settings but I don't expect the overall scan quality to get to much better.

My Personal Open Source Structural Applications:

Open Source Structural GitHub Group:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor