• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Tutorial] Create a (TIN) from Surveyed Pts - using SU only

Scheduled Pinned Locked Moved SketchUp Tutorials
sketchup
32 Posts 15 Posters 26.6k 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.
  • H Offline
    Howard leslie
    last edited by Howard leslie 10 Jan 2008, 09:48

    See attached
    ...
    A simple method to create a Surface (TIN) from Svy Symbols / Points using SU only.
    (Typically imported from a CAD file)
    This method works well for relatively few points
    ...
    Scripts reqd:
    points_cloud_triangulation.rb
    delauney2.rb
    Work together - get latest versions
    Download from here:
    http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm
    Thank you Didier.
    ...
    Centrepoint.rb
    Download from here:
    http://www.smustard.com/scripts/
    Thank you Todd.
    ...
    Produced in response to following request:
    http://www.sketchucation.com/forums/scf/viewtopic.php?f=15&t=4240
    ...
    Note:
    X,Y,Z coordinates of surveyed points from text files / spreadsheets can also be imported into SU using different methods / scripts - this is especially useful if you have large numbers of points.
    ...
    Howard L'


    SvySymbol_2_Surface_V2.skp

    1 Reply Last reply Reply Quote 0
    • M Offline
      Mr S
      last edited by 10 Jan 2008, 10:24

      Thanks,

      Much appreciated.

      Regards
      Mr S

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gaieus
        last edited by 10 Jan 2008, 10:43

        Ah yes, I was too late to reply in the other thread... 😄

        Howard, really kind of you (as usual, I could say...)

        Gai...

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gaieus
          last edited by 11 Jan 2008, 11:53

          Have you got delauney2.rb also installed into your plugins folder? (It is required with this script).
          If not, see this post:
          http://www.sketchucation.com/forums/scf/viewtopic.php?f=57&t=4134
          😄

          Gai...

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gaieus
            last edited by 11 Jan 2008, 12:29

            I cannot help you now from the office since I have a new install of SU without practically any rubies. I1ll see what I can do at home - or why not start a thread in the ruby discussion and Didier would surely drop in?

            Gai...

            1 Reply Last reply Reply Quote 0
            • T Offline
              todd burch
              last edited by 11 Jan 2008, 12:49

              Edit the point_cloud script to remove the ./ from in front of the delauney.rb name.

              Todd

              1 Reply Last reply Reply Quote 0
              • A Offline
                azuby
                last edited by 11 Jan 2008, 15:36

                Open a simple Editor (not Word! It is NOT simple 😉 ). You can find one in Start > Programs > "Zubehör" (sorry, don't know how it is named in English) > Editor. Open the file "points_cloud_triangulation.rb", search for "./delauney2.rb" and remove "./" Save the file. You're done.

                azuby

                *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                Bad English? PM me, correct me. :smile:**

                1 Reply Last reply Reply Quote 0
                • T Offline
                  todd burch
                  last edited by 11 Jan 2008, 16:08

                  I would suggest using Notepad.

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gaieus
                    last edited by 12 Jan 2008, 09:04

                    Yes, most probably.

                    Now create a bunch of construction points, select them and run the script.

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gaieus
                      last edited by 12 Jan 2008, 11:45

                      How big is that file?

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tinanne
                        last edited by 12 Jan 2008, 14:22

                        This is great information. I could have really used this last month when I was pulling my hair out tracing contour lines and raising each individual line AND THEN trying to mesh them together!

                        This is great!

                        Executive Director : American Society of Architectural Illustrators
                        AIP 30 Competition opens soon. ASAI.org

                        Architectural Rendering

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          Gaieus
                          last edited by 12 Jan 2008, 14:34

                          James,

                          I have sent you an email, please, confirm the delivery...

                          Gai...

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            Gaieus
                            last edited by 12 Jan 2008, 14:58

                            @unknownuser said:

                            My problem was that the cad file didn't show up when imported 😒.

                            Yes because all the Layers were turned off and nothing was on Layer0 😆
                            I could hardly find those crosses anyway.

                            But now you are really in big problem because moving those points to the proper height will be very tedious. There are some 1800 of the (or 1300?) altogether. And you'll need to re-run the script too.

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              andymaw
                              last edited by 16 Jan 2008, 12:26

                              Have you had any joy? I'm in exactly the same boat. A number of spot heights (not quite 1300 though!) all in 2d, trying to create an accurate terrain in sketchup

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                Gaieus
                                last edited by 16 Jan 2008, 14:57

                                Can you not get the xyz coordinates as just a data file? Those guys must have worked with something as well!

                                Gai...

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Anssi
                                  last edited by 17 Jan 2008, 18:52

                                  Depending on the type of the information in the DWG, it might not be very difficult to write an AutoLisp routine that would scan a DWG file for points or text entities, and replace them with some small geometric entity (a line, or cross etc.)at the correct height, that could be imported into SU and sandboxed into a TIN.

                                  Anssi

                                  securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jmqrsq
                                    last edited by 18 Jan 2008, 18:45

                                    @unknownuser said:

                                    Scripts reqd:
                                    points_cloud_triangulation.rb
                                    delauney2.rb
                                    Work together - get latest versions
                                    Download from here:
                                    http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm
                                    Thank you Didier.

                                    I have tried to download the delaunay2.rb script but the links do not work anywhere. can someone send it to me? i can provide an email addy. thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Anssi
                                      last edited by 18 Jan 2008, 19:04

                                      @unknownuser said:

                                      So ur saying Anssi that a 2D drawing with points, which is what I have, could be changed into a 3D drawing. That would save alot of work. Can that be done? The Z value would have to be added to each point though, and there are 1300! 😒

                                      It depends on how the 3D information is displayed in the file. For instance, I have seen many site surveys with the height information as simple text objects strewn around the map, or the height is in an attribute of a block. In both these cases it is possible to grab the 2D coordinates of the object, and use the text contents for the Z information, and draw something there that is importable to SU. A sort of "unflatten" operation. Of course the requirement is that the information is there in some consistent form.

                                      Anssi

                                      securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gaieus
                                        last edited by 19 Jan 2008, 07:28

                                        @jmqrsq said:

                                        I have tried to download the delaunay2.rb script but the links do not work anywhere. can someone send it to me? i can provide an email addy. thanks!

                                        There is a confusion (probably due to a typo somewhere) because this script sometimes is referred as "delaunay.rb" while other times as "delauney.rb".

                                        Here is a post where lapx aslo asked for the delauney.rb (which I believe the proper name is) and I posted a copy of it.
                                        Try that, hope it works.

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • E Offline
                                          eugenesr
                                          last edited by 20 Jan 2008, 02:50

                                          Here is the file location of the script:
                                          http://www.crai.archi.fr/RubyLibraryDepot/Ruby/delaunay.rb
                                          http://www.crai.archi.fr/RubyLibraryDepot/Ruby/delaunay.rb

                                          and here is the Ruby Script Index page http://www.crai.archi.fr/RubyLibraryDepot/Ruby/

                                          Eugene

                                          /Fire Fighter! Funny job for an artist, no?/
                                          HP laptop running XP

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

                                          Advertisement