• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Terrain from contours - improve on native 'from contours'?

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
99 Posts 18 Posters 19.5k 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.
  • B Offline
    brookefox
    last edited by 2 May 2012, 01:27

    Fredo, I wish I had something more helpful to say than 'looks great', but that maybe is a good thing. Perhaps the other fellows will stop back by, they seem to have much more experience than I have. As far as interest in and good use for such a plugin, I would say most definitely.

    @unknownuser said:

    Are the topmost contours supposed to be rounded in their inside or just left as a plateau?

    To me they are no different from any of the others. Your results to me look fantastic.

    You mention the rectilinear closure of the contours, which was done manually by me to make level faces and which I gather is actually unnecessary and even counter-productive.

    ~ Brooke

    1 Reply Last reply Reply Quote 0
    • B Offline
      brookefox
      last edited by 2 May 2012, 01:29

      11 + 7 seconds for the slow and fancy one.

      Too simple... Complexify, make inscrutable options so the ignorant can pester you for answers. You know I'll be back.

      ~ Brooke

      1 Reply Last reply Reply Quote 0
      • E Offline
        EarthMover
        last edited by 25 Jun 2012, 17:22

        @unknownuser said:

        @brookefox and EarthMover,

        Thanks for the feedback. I'll see if I can release something beta in the coming days.

        Fredo

        Hey Fredo,

        Any chance on seeing this beta plugin in the future? Could really use it on a few projects I'm working on. If not, no worries, I know you are busy.

        Thanks.

        3D Artist at Clearstory 3D Imaging
        Guide Tool at Winning With Sketchup
        Content Creator at Skapeup

        1 Reply Last reply Reply Quote 0
        • P Offline
          pbacot
          last edited by 25 Jun 2012, 18:31

          @brookefox said:

          @unknownuser said:

          Are the topmost contours supposed to be rounded in their inside or just left as a plateau?

          To me they are no different from any of the others. Your results to me look fantastic.

          That's a valid question. I suppose the plugin has to assume and make some sort of rounding-off based on the lower contours. It's easier for the user to flatten after if needed. Alternately user can add a small contour or point to indicate the peak.

          This looks great, I was just wanting something like this yesterday. I try other skinning plugins on contours but they don't do so well and for all the trouble I end up back with Sandbox. Wonderful coding!

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

          1 Reply Last reply Reply Quote 0
          • F Offline
            fredo6
            last edited by 26 Jun 2012, 12:36

            @pbacot said:

            This looks great, I was just wanting something like this yesterday. I try other skinning plugins on contours but they don't do so well and for all the trouble I end up back with Sandbox. Wonderful coding!

            Could you post or PM me your model.

            The main reason why I don't release it quicker is because I have not worked too much on the validation of input contours and handling of corrections.
            And of course, I have not really tested on real-life models (actually only the one posted by brookefox).

            Fredo

            1 Reply Last reply Reply Quote 0
            • P Offline
              pbacot
              last edited by 26 Jun 2012, 14:18

              I'd be glad to PM it to you! Will do today. Thanks, Peter

              MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

              1 Reply Last reply Reply Quote 0
              • F Offline
                fredo6
                last edited by 30 Jun 2012, 21:47

                @pbacot,

                By the way, I observe that the native 'From Contours' plugin does a rather good job on your example of terrain.

                pbacot terrain.gif

                Because TopoShaper uses a more accurate algorithm (to cope with cases of more abrupt changes of relief and also saddles), the analysis of the contours is more tricky and I'll need some time to write a decent code to handle it.

                Fredo

                PS: and again, I'm pretty sure Trimble will adress the generation of terrain from contour in a next release of Sketchup

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pbacot
                  last edited by 30 Jun 2012, 22:17

                  Yes sir,

                  That existing terrain is not too problematic for Sandbox, but I assume a more regular clean mesh, as I think you are after, would serve better for subsequent "regrading". Thank you.

                  It seems the skinning plugins don't work where ridges twist about as in this case, and SB seems to work that out OK.

                  Peter

                  MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Panga
                    last edited by 2 Jul 2012, 09:40

                    Fredo,

                    I'll Join Earthmover and others to say that what you tried to do with this plugin attempt is my biggest dream in SU !! As a landscape architect, you can't imagine how much time I spent to clean the terrain mesh because of SU native triangulation prevent using the mesh for may things...so...I'll be very gratefull if you can give us even an alpha version of it !! ๐Ÿ˜ ๐Ÿ˜

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pbacot
                      last edited by 8 Jul 2012, 18:02

                      For ideas on terrain mesh results:
                      http://www.formz.com/products/bonzai3d/bonzai3dFeatures.php?init=27

                      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        fredo6
                        last edited by 8 Jul 2012, 18:45

                        @pbacot said:

                        For ideas on terrain mesh results:
                        http://www.formz.com/products/bonzai3d/bonzai3dFeatures.php?init=27

                        Thanks. That's more or less what was my intention.

                        This is why I need to write some extension in C to have enough speed for the preview mode.

                        But I am a little bit reluctant to engage in this because I am pretty sure that Trimble will provide a bridge to a Terrain from Contour program in a next release of Sketchup (I guess this is what field engineers need)

                        I need to think about if I can make a simple beta release quickly. The version I have currently works on close contours only.

                        Fredo

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tald311
                          last edited by 9 Jul 2012, 02:45

                          would LOVE this tool. Very needed. amazing as usual Fredo.

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pbacot
                            last edited by 25 Nov 2012, 20:38

                            With Vali Architects new Instant Terrain plugin.

                            Contours at height. Sandbox "from contours". VA InstantTerrain.

                            This doesn't really address the OP issue, but it's a way to apply a regular mesh to the terrain. And simplify--if you use a larger spacing.

                            Screen shot 2012-11-25 at 12.27.59 PM.png
                            Screen shot 2012-11-25 at 12.30.00 PM.pngScreen shot 2012-11-25 at 12.31.39 PM.png

                            I know, the contours have parts missing--just the most convenient example to grab at the moment.

                            Some berms added with ArtisanScreen shot 2012-11-25 at 12.44.07 PM.png

                            MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              pbacot
                              last edited by 26 Nov 2012, 10:48

                              Using Brookefox model, two things:

                              1. The contours do not have enough points for Sandbox. I added 2-3 times as many vertices per curve in some of the countour model.
                              2. A picture of the Sandbox result and some of the model run through Instant Terrain at fine setting. [EDIT: I ran Instant Terrain for whole model at 75' spacing--last image.] Screen shot 2012-11-26 at 2.14.20 AM.pngScreen shot 2012-11-26 at 2.25.38 AM.pngScreen shot 2012-11-26 at 12.31.07 PM.png

                              MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                fredo6
                                last edited by 25 Dec 2012, 13:38

                                I resumed some work on Toposhaper, in particular around the identification of contour zone and interpolation.

                                Here is the current state on Brookefox' model, with various resolutions on a quadrangular mesh
                                Toposhaper - Test 24 Dec 12.zip

                                Brookefox contours - Toposhaper 24 Dec 12.png

                                It still takes many seconds
                                Toposhaper Test 24 Dec 12.gif

                                Toposhaper Test 24 Dec 12 - 2.gif

                                One issue I came across is about zones bordered by a single contour, either loop contour, or open to the outside. In the current version, I try to figure out a kind a simulated relief based on the surrounding elevations.

                                Fredo

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pbacot
                                  last edited by 25 Dec 2012, 18:55

                                  This looks fantastic! I would think it should take more than a few seconds. Did you modify the Brookefox contours beforehand?

                                  Happy Holidays, Fredo! Thanks for sharing your gift. Peter

                                  MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    fredo6
                                    last edited by 25 Dec 2012, 20:10

                                    Peter,

                                    I took the contours as they are shown on the video, which I think is the original model from Brookefox.

                                    If you have some contours model, please send them to me so that I can test the script in various situations.

                                    Fredo

                                    PS: The main issue I see in the utilisation of Toposhaper is that it generates a lot of faces. The good thing with quandrangular meshes is that they can be easily textured, since based on quads. I may have however to find a way to densify and undensify the mesh in function of the resolution really required by the relief.

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      pbacot
                                      last edited by 31 Dec 2012, 05:54

                                      Here's a house site set of contours anyone can experiment with

                                      On another layer there is TIN provided by the civil, if useful for comparison

                                      I welded the contours with Curvizard. I hope that's helpful.

                                      Peter


                                      Topo test.skp

                                      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        fredo6
                                        last edited by 1 Jan 2013, 14:33

                                        Here is another contour set, also from pbacot:

                                        Fredo

                                        Toposhaper 31 .png

                                        Toposhaper 31 concave hull.gif

                                        TopoShaper 3.skp

                                        and the previous ones with the current state of the script

                                        Toposhaper 32.png

                                        Toposhaper 33.png

                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          fredo6
                                          last edited by 1 Jan 2013, 16:44

                                          @pbacot said:

                                          Here's a house site set of contours anyone can experiment with

                                          On another layer there is TIN provided by the civil, if useful for comparison

                                          I welded the contours with Curvizard. I hope that's helpful.

                                          Peter

                                          Peter,

                                          Thanks very much for this model, which is very helpful for me to progress on the script.

                                          Toposhaper samples the contours on a grid, and therefore it is not necessary to have extra-smoothed contours. On the contrary, when there is less segments in contours, the calculation is much faster.

                                          In the attached SKP file, you'll have the resulting terrains

                                          • for your original model, with high-definition contours
                                          • for the same model after simplification of contours by Curvizard simplify (17 degerees).
                                            You can see that the generated terrains are almost identical. The simplified model takes 3 seconds (see video) whereas the original one takes over 30 seconds.

                                          Toposhaper pbacot 01 Jan 13.png

                                          Toposhaper pbacot 01 Jan 13.gif

                                          TopoShaper pbacot model - 01 Jan 13.skp

                                          Fredo

                                          PS: There is still some work on the algorithms, for calculation of concave hull and extrapolating on the borders, and also some work to package a decent GUI.

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

                                          Advertisement