sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    How to use this type of data

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    32 Posts 5 Posters 3.1k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sepo
      last edited by

      Tig

      Which scripts would be for triangulating mesh from the points. I have just discovered that LiDAR data can come as points (.dxf).

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        If the DXF file contains CAD Points they'll import in Pro as Cpoints [aka Guide-points].
        Then use a tool like my 'Triangulate Points' tool... http://forums.sketchucation.com/viewtopic.php?p=301274#p301274 to make a mesh from those preselected cpoints...

        If you have the cpoints in a plain TXT file of XYZ values or as CSV/TSV etc, then Didier Bur has a tool to import and then mesh those in one go...
        Search the Plugins Index for such tools...

        TIG

        1 Reply Last reply Reply Quote 0
        • S Offline
          sepo
          last edited by

          Yes the file imports in SU as bunch of cpoints....I will try your triangulate plugin. Thanks again.

          1 Reply Last reply Reply Quote 0
          • S Offline
            sepo
            last edited by

            Well... I installed your plugin and it starts triangulating but after small amount of time SU goes into non responsive mode. I do not know if there is issue of number of points that SU can handle. I tried it on couple of different comps on SU 8. (64 bit Windows 7 ; dual 6 core, 32 Gb Ram , Nvidia Quadro 4000 GPU)

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              Unless a there are problems reported in the Ruby Console it doesn't necessarily mean it's broken, because Sketchup goes non-responsive doesn't mean it's stopped.
              Let it run for a while and have a coffee and some cake.
              When you come back you can always kill the process if it's not finished.
              How many points are there?
              With thousands of points it could take many many minutes to work out the mesh.
              As every point has to be checked against every other to speed it up you could select approx 25% of the points [with a slight overlap] and make 4 meshes in 4 steps- it will be considerably faster than 1/4... On completion you then tidy them back up.
              Another issue is that the points might be far far away from the origin and cause Sketchup/OpenGL issues ? If so select all of the cpoints imported and Move then to "[0,0,0]", and retry...

              TIG

              1 Reply Last reply Reply Quote 0
              • S Offline
                sepo
                last edited by

                Here is how it looks like.


                test render small.jpg

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  πŸ‘Š Imported points data using delauney methods will 'melt' vertical objects as it needs to triangulate facets... some of which won't be what you'll expect.
                  If you can filter out the buildings in CAD and then export the 'site' mesh points that gives better results... πŸ˜•

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sepo
                    last edited by

                    Is there other method of triangulating which would be better for buildings.... as I am after buildings really?

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sepo
                      last edited by

                      I managed to do it but using SU8 on the Mac side. SU7 has no such problem on Vista. Kind of interesting.
                      It took nearly 3 hours and SU did not go non-responsive in both instances. Coffee was good and cake very moist.
                      The mesh turn out in not very usable state as buildings look like they are melting....maybe good for some Sci-Fi environment.....this Lidar data is kind of disappointing.
                      The file had 40406 points ... It created 80000 triangles.

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        Not that I know of - the problem is working out which points make a facet.
                        IF the points are in a file and they are always arranged in sets so that they define a triangular face - like in many OBJ files - then it's much easier to replicate those facets in a SKP...
                        Unfortunately, the DXF data gets muddled once it's imported.
                        Are there any other file formats like csv/tsv/txt you can get the points data in?
                        These could be read into a SKP much more readily that a DXF... πŸ˜•

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sepo
                          last edited by

                          I see....I need to check if there are any other file types available.

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sepo
                            last edited by

                            Hmmm... It does not appear to be available. I was wondering if maybe this is all driven for Autodesk Map

                            1 Reply Last reply Reply Quote 0
                            • N Offline
                              notareal
                              last edited by

                              You could try meshlab http://www.meshlab.org/ http://meshlabstuff.blogspot.com/

                              Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sepo
                                last edited by

                                Thanks Notareal but as far as I know Meshlab does not import .dxf/dwg.

                                1 Reply Last reply Reply Quote 0
                                • Chris FullmerC Offline
                                  Chris Fullmer
                                  last edited by

                                  What does it export? If it will take any other sort of standard file type - csv, obj, anything?, maybe we can write an exporter for it.

                                  Lately you've been tan, suspicious for the winter.
                                  All my Plugins I've written

                                  1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    notareal
                                    last edited by

                                    @sepo said:

                                    Thanks Notareal but as far as I know Meshlab does not import .dxf/dwg.

                                    You don't get the LiDAR data in any other format? That unfortunate as meshlab is indeed a very good program to handle point clouds.
                                    Meshlab
                                    import:PLY, STL, OFF, OBJ, 3DS, COLLADA, PTX, V3D, PTS, APTS, XYZ, GTS, TRI, ASC, X3D, X3DV, VRML, ALN
                                    export:PLY, STL, OFF, OBJ, 3DS, COLLADA, VRML, DXF, GTS, U3D, IDTF, X3D
                                    Point Clouds support. Now 3D files that are composed only by points are well supported in PLY and OBJ format.

                                    Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                                    1 Reply Last reply Reply Quote 0
                                    • Chris FullmerC Offline
                                      Chris Fullmer
                                      last edited by

                                      Collada is essentialy an xml file - just plain text. It would be relatively easy to export a collada file with the point could data, if it was known what collada elements they need. SketchUp might even be able to do it natively with their collada exporter.

                                      Lately you've been tan, suspicious for the winter.
                                      All my Plugins I've written

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sepo
                                        last edited by

                                        I supose I could export .dxf to collada and try it that way....

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sepo
                                          last edited by

                                          @chris fullmer said:

                                          What does it export? If it will take any other sort of standard file type - csv, obj, anything?, maybe we can write an exporter for it.

                                          Chris
                                          This is website I wanted to get Lidar data from .... http://www.stanfords.co.uk/Business-Mapping/BM/Products/LiDAR_BM-LIDAR.htm

                                          1 Reply Last reply Reply Quote 0
                                          • TIGT Offline
                                            TIG Moderator
                                            last edited by

                                            Any text format file [even DXF] can be parsed and the points extracted in order.
                                            If we know that that say every three of them make a triangular facet we can use that to add geometry.
                                            It'd be a pain in the proverbial to parse a DXF file [it can be done! e.g. I extract 'text' in my dxf-text-importer tool] but other types like OBJ, CSV etc can be readily parsed and used... [DAE doesn't seem to support raw 'points', just facets]
                                            πŸ˜•

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement