• Login
sketchucation logo sketchucation
  • Login
โ„น๏ธ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Proto] Generating Terrain from a Cloud of Points

Scheduled Pinned Locked Moved Plugins
46 Posts 21 Posters 4.0k Views
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.
  • C Offline
    cotty
    last edited by 5 Dec 2014, 16:40

    ๐ŸŽ‰ ๐Ÿ‘

    my SketchUp gallery

    1 Reply Last reply Reply Quote 0
    • J Offline
      jiminy-billy-bob
      last edited by 5 Dec 2014, 17:37

      I really recommend doing stuff in C++. Ruby was already pretty fast, but I've seen improvements up to 100 times faster. It's really worth it.

      25% off Skatter for SketchUcation Premium Members

      1 Reply Last reply Reply Quote 0
      • F Offline
        fredo6
        last edited by 5 Dec 2014, 19:25

        @jiminy-billy-bob said:

        I really recommend doing stuff in C++. Ruby was already pretty fast, but I've seen improvements up to 100 times faster. It's really worth it.

        Sure, that's a possibility to explore. With compilation it might be much faster, because the methods are pure calculation within a loop.

        But even before I take care of performance, I must first evaluate if the algorithms are relevant for real terrains, which is the reason for my post at this stage.

        Fredo

        1 Reply Last reply Reply Quote 0
        • A Offline
          Anton_S
          last edited by 5 Dec 2014, 20:09

          Will be a useful plugin for drawing terrains!

          Thank you, Fredo!

          1 Reply Last reply Reply Quote 0
          • K Offline
            Krisidious
            last edited by 5 Dec 2014, 20:43

            would it not be simpler to make point clouds out of polyline topos and then compare the two?

            By: Kristoff Rand
            Home DesignerUnique House Plans

            1 Reply Last reply Reply Quote 0
            • F Offline
              fredo6
              last edited by 5 Dec 2014, 21:05

              @krisidious said:

              would it not be simpler to make point clouds out of polyline topos and then compare the two?

              Good idea and actually I did it and obtain similar shapes, but a little rounder with the triangulator.

              The probleme however is that using iso contour cloud points is already a strong guide to the skeleton of the terrain and therefore does not validate that with scarce points here and there you would obtain a similar skeleton.

              Toposhaper is based on a linear interpolation whereas Triangulator is based on a directional polynomial interpolation, in order to avoid that each point of the cloud becomes an isolated hill or basin.

              Anyway, I am not trying to demonstrate that an algorithm can find the good solution because this is anyway wrong mathematically. There are always many solutions.

              Instead, I am just trying to check if the plugin would be useful to users and landscapers on real cases.

              Fredo

              1 Reply Last reply Reply Quote 0
              • F Offline
                fredo6
                last edited by 6 Dec 2014, 12:04

                @krisidious said:

                here's some files from when I worked at a survey company. some of them are probably point clouds. I'll have to research to find out which. maybe you'll know by looking.

                I would need something in SKP. I have no Tools to pre-process and I don't even know what are the files.

                Fred

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdmitch
                  last edited by 6 Dec 2014, 14:21

                  @fredo6 said:

                  @krisidious said:

                  here's some files from when I worked at a survey company. some of them are probably point clouds. I'll have to research to find out which. maybe you'll know by looking.

                  I would need something in SKP. I have no Tools to pre-process and I don't even know what are the files.

                  Fred

                  Attached is a skp file with both mass points and break lines that you can hopefully use for testing. I have hundreds of such models if you want or need more.


                  Alaska_NW-DTM 129.skp

                  Nothing is worthless, it can always be used as a bad example.

                  http://sdmitch.blogspot.com/

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fredo6
                    last edited by 6 Dec 2014, 21:31

                    Sam,

                    Thanks very much, very useful.

                    Actually, I have tweaked the algorithm and got the tarrain below. So I think I may finally find heuristics to speed up the interpolation.

                    sdmitch Alaska.png

                    There are 1986 cloud points.

                    The terrain is generated with 3069 triangles. The calculation took 18.5 seconds on my machine.

                    It seems to be a quite large area and quite flat except a few hill and an overall gentle slope. I had to scale in Z a little bit however to make the relief more apparent.

                    sdmitch_ Alaska_NW-DTM 129 _ trg.skp

                    Indeed, if you are more samples, this is welcome

                    Fredo

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdmitch
                      last edited by 7 Dec 2014, 03:05

                      Fredo,

                      These models have much more relief. They are bigger with many more points than you would normally use probably. But none of the projects I worked on were small.

                      Sam


                      MyDot03DTM.skp


                      Dem Contours.skp

                      Nothing is worthless, it can always be used as a bad example.

                      http://sdmitch.blogspot.com/

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        Box
                        last edited by 7 Dec 2014, 03:47

                        Fredo if you want, this is a text file of a pair of Scissor handles that I recently managed to import into SU using the above mentioned Points Cloud as a CSV file of over 250,000 points.
                        It was very slow but worked and I was able to view the scissors in 3D as guide points. I didn't bother with triangulating the faces as it had actually taken several hours to import just the points.
                        It is without doubt overkill in the terrain context but it is the type of file people will be wanting, if not expecting, to be able to click, copy and 3d print in the very near future. Feel free to ignore it as it was something I found on the web while looking to solve terrain and point cloud imports.


                        Scissors_handle_points.zip

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          roland joseph
                          last edited by 7 Dec 2014, 11:56

                          I think it will depend on it's capability for detail. I don't find getting the raw terrain down is very difficult. It is all the detail that has to be built into it...i.e. garden beds, curbs, sidewalks, ditches, medians, grass edge transitions,...etc. For every minute I spend creating the ground, I spend ten on the detail.

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            fredo6
                            last edited by 7 Dec 2014, 12:00

                            Sam,

                            Thanks for the new models. There are a little big for the plugin, but I made some trials on a subset and it seems to be OK.

                            Below with 101 source points, generating roughly 3900 triangles to render the cliffs in 23 seconds.

                            Fredo

                            Triangulateur - small set by sdmitch.gif

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fredo6
                              last edited by 7 Dec 2014, 12:07

                              @unknownuser said:

                              I think it will depend on it's capability for detail. I don't find getting the raw terrain down is very difficult. It is all the detail that has to be built into it...i.e. garden beds, curbs, sidewalks, ditches, medians, grass edge transitions,...etc. For every minute I spend creating the ground, I spend ten on the detail.

                              My feeling is that it is better to generate first the natural terrain and then superimpose the artificial 'details', like limits, fences, roads, building.

                              Of course, these details may deserve some dedicated techniques (in particular roads and fences), but Sketchup has already a number of tools to handle many cases, with the Sandbox and with Projection and PushPull plugins.

                              I don't think it's easy (and fast enough anyway) to have interpolation generate the terrain and all details in one shot.

                              Fredo

                              1 Reply Last reply Reply Quote 0
                              • R Offline
                                roland joseph
                                last edited by 7 Dec 2014, 12:19

                                "to have interpolation generate the terrain and all details" I agree that would be a trick. I use your wonderful tools-on-surface (and a couple other rubies) to build terrain. I can't guess how many square miles. I do believe your tools are the best. I am saying for me at least generating a terrain with cloud point is not very exciting. It would be selfish to say I would rather a talent like you work on other things. ๐Ÿ˜„

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  fredo6
                                  last edited by 7 Dec 2014, 14:18

                                  @box said:

                                  Fredo if you want, this is a text file of a pair of Scissor handles that I recently managed to import into SU using the above mentioned Points Cloud as a CSV file of over 250,000 points.
                                  It was very slow but worked and I was able to view the scissors in 3D as guide points. I didn't bother with triangulating the faces as it had actually taken several hours to import just the points.
                                  It is without doubt overkill in the terrain context but it is the type of file people will be wanting, if not expecting, to be able to click, copy and 3d print in the very near future. Feel free to ignore it as it was something I found on the web while looking to solve terrain and point cloud imports.

                                  LIDAR and other techniques generating dense cloud of points require very different techniques.

                                  • First this is usually true 3D (not 2.5D like terrain).
                                  • Second, there is no real need of interpolation, but triangulation with the nearest neighbours.

                                  I imagine there exists dedicated applications written for this purpose, in C++ or so to be extremely scalable. Obviously, that won't be the case for Sketchup and Ruby!

                                  Fredo

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    fredo6
                                    last edited by 9 Dec 2014, 12:34

                                    @roland joseph said:

                                    I am saying for me at least generating a terrain with cloud point is not very exciting. It would be selfish to say I would rather a talent like you work on other things. ๐Ÿ˜„

                                    I think that generation of terrain is an essential feature for Sketchup, not to say that making organic shapes from control points can be useful too.
                                    Actually, this is not something simple to develop in Ruby, because of the lack of efficient algorithms and the variety of topological situation. So nothing straightforward in this plugin project.

                                    Fredo

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      roland joseph
                                      last edited by 9 Dec 2014, 17:56

                                      You are saying this one has you absorbed. If your motivation is the challenge then for sure I understand. Just one last curious question. Is this a personal effort or has it been brought on by pressure from others?

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pbacot
                                        last edited by 9 Dec 2014, 19:22

                                        Nice work Fredo! I think the generation of terrain is very important. I would offer some examples but I am not too connected on this end of things. Usually I am working from contours provided by others who have already developed them from points. I wouldn't know what the original data is like. You've made great contribution to this functionality in SketchUp that was pretty backwards just a short time ago, falling behind programs like Bonzai even. With ThomThom's, Tig's and ValiArchitect's tools, as well, things have changed radically for this sort of work. Thanks, Peter

                                        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                        1 Reply Last reply Reply Quote 0
                                        • JClementsJ Offline
                                          JClements
                                          last edited by 9 Dec 2014, 19:29

                                          Fredo,

                                          A fellow who works for my previous employer, Brown and Caldwell Environmental Engineers, suggested downloading 2006 LIDAR data for the state of Ohio here:

                                          http://gis3.oit.ohio.gov/geodatadownload/osip.aspx

                                          Hopefully, they aren't too big of datasets.

                                          John | Illustrator | Beaverton, Oregon

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

                                          Advertisement