Announcement

Collapse
No announcement yet.

Geodata in .xyz format

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Geodata in .xyz format

    Anybody out there who have any experience converting simple ASCII pointclouds to a 3D format (dxf, 3ds etc.) - what I've got is a textfile in this format:

    352000,178500,18.889
    352000,178499,18.880
    352000,178498,18.919
    352000,178497,18.909
    352000,178496,18.898
    352000,178495,18.960
    352000,178494,18.956
    ...and on it goes for 250000 lines

    Presume its X, Y, Z in meters...

    Been trying a bunch of different converters.. but starting to think that a maxscript could do it - nothing on script spot, though.

    Anyone?
    Jonas Andersen
    Cadpeople | Visual Communication
    www.cadpeople.com

  • #2
    Reading the points with MaxScript is not a problem; getting a polygonal geometry out of them is a lot more complicated though.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Oh... I see...

      BUT... if you know the size of the matrix - couldn't you create a plane through max-script with a corresponding no. of vertices and then apply the z values through some sort of array...

      (not an expert on maxscript - as you might notice)
      Jonas Andersen
      Cadpeople | Visual Communication
      www.cadpeople.com

      Comment


      • #4
        funny im struggling with the same this very moment.

        what you need is to make a triangulated irregular network (TIN)

        http://www.codeproject.com/cpp/kazumi.asp
        http://pisha.phm.vcu.edu/~jca/gh2o/tin/tinlib.html

        this is where im at at the moment. i dont have the data other than from Mtext objects in acad wich i cant import into max and convert to pointclouds with maxscript...arghh !!

        im not really sure what i would use the TIN to for though. either it could be used as is or with meshsmooth or even as a basis for a displacement map.

        Comment


        • #5
          Had a quick go at the Triangle Net app... but it ran out of memory - have a feeling my data isn't quite what the app expects.

          My data is more like a matrix than a scattered pointcloud - but I guess it still needs triangulation in order to output any sort of mesh

          the Tinlib app looks promising - haven't got around to compiling the app, though.

          I'll keep you posted if I have any luck.

          Dennis... what's your data like - can you post a sample?
          Jonas Andersen
          Cadpeople | Visual Communication
          www.cadpeople.com

          Comment


          • #6
            my 'data' is spot levels in cad



            unfortunatly without the z coordinate plotted. i thought i could make an maxscript wich read the nearest text to the spot level and generated the z coordinate with that. unfortunatly max wont import MTEXT objects from acad and i know nada about scripting in acad, so my only choice is to by hand plot the elevation of all the points (there are _many_ ).

            the tinlib is working well. i couldnt get the other app to work either, but the webpage had good explanation about the process. you dont need to to compile it though. if you download tinlib_w.zip its already compiled with a GUI think its called tingui.exe where you can load a .txt file in this format:

            Code:
            num_points=67
            x y z
            x y z
            . . .
            it will generate the tri's and you have the choice to save the tri's as a textfile. from there you then need to make a maxscript wich will transform the data to a mesh ( not to complicated )

            Comment


            • #7
              Have you tried to import the point cloud in Rhino? Rhino can make a patch surface through a point cloud, and also there are additional plugins if I remember well to handle point cloud data and coverting them to surfaces.

              ah wait, here is one:
              http://www.fpsols.com/point_cloud_rh.html

              And I think this one is standalone:
              http://www.fpsols.com/point_cloud.html
              You can contact StudioGijs for 3D visualization and 3D modeling related services and on-site training.

              Comment


              • #8
                I wouldn't call this a point cloud. To me a point cloud is a mass of clustered points, such as would result from a laser scan.

                What you have is terrain data. What you need to make is a TIN. Many packages available to do this. Plus, a simple TIN will use far fewer polys than a mesh from a point cloud.
                sigpic
                J. Scott Smith Visual Designs


                https://jscottsmith.com/
                http://www.linkedin.com/in/jscottsmith
                http://www.facebook.com/jssvisualdesigns

                Comment


                • #9
                  Yeah... been trying some apps to convert into TIN - so far no luck. They either don't understand my format, crashes while recalculating my 250000 point landscape or doesn't have much export options... but i'll keep looking, TIN definately seems to be the way forward.

                  Unfortunately we don't have Rhino, but as far as i can understand, Rhino is also struggling with that much data.

                  We've put a request in with the company supplying us with the data, to see if they do TIN.

                  Found out that the .xyz file is based on LIDAR data, ring any bells? - quite a few references on the web, but nothing that really explains how the points has been measured.
                  Jonas Andersen
                  Cadpeople | Visual Communication
                  www.cadpeople.com

                  Comment


                  • #10
                    Sure. LIDAR is an acronym for LIght Detection And Ranging.
                    It's an airplane-based laser that sweeps the earth and records distances. Like a giant fish-finder.

                    The main difference between data returned by LIDAR and other sources (like DEMs, aerial topos from photogrammetry, etc.) is that LIDAR data reflects elevation of the first thing it hits. That could include tops of buildings, tree tops, etc. May not be a problem for you - just something to be aware of.

                    As far as how to read it, are the points all arranged in a grid? If so. you may be able to read them as a DEM and skip the TIN generation.
                    sigpic
                    J. Scott Smith Visual Designs


                    https://jscottsmith.com/
                    http://www.linkedin.com/in/jscottsmith
                    http://www.facebook.com/jssvisualdesigns

                    Comment


                    • #11
                      I don ´t know if this plugin works for your data but it´s worth a try.
                      http://www.habware.at/max6/Terrain26.zip

                      quote from maxplugins
                      ""A utility which reads ASCII xyz elevation data and builds an editable mesh from it""

                      cheers

                      Comment


                      • #12
                        BINGO!

                        Thanks a lot... that terrain plugin was spot on what I needed...



                        Jonas Andersen
                        Cadpeople | Visual Communication
                        www.cadpeople.com

                        Comment

                        Working...
                        X