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

    [Plugin] Cloud.rb for SU6

    Scheduled Pinned Locked Moved Plugins
    54 Posts 18 Posters 47.4k Views 18 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.
    • Didier BurD Offline
      Didier Bur
      last edited by

      Hi Mateo,
      I'm going to Croatia next week. Where are you living ?

      DB

      1 Reply Last reply Reply Quote 0
      • EdsonE Offline
        Edson
        last edited by

        @gaieus said:

        And does it?

        well, i do not have any input file to test it with right now. could you send me on

        edson mahfuz, architect| porto alegre • brasil
        http://www.mahfuz.arq.br

        1 Reply Last reply Reply Quote 0
        • E Offline
          ELYSIUM
          last edited by

          Hi all

          Didier, thanks for this script! 😄

          I have tried to make a cloud of the Roman forum using the data from this site:

          http://dlib.etc.ucla.edu/projects/Forum/geospatial

          But the end result is not in the right scale.
          I cant understant what i'm doing wrong, can anyone help me?

          here is the SKP. file with my result:

          Many thanks.


          Forum_Topo.skp

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            Edson,

            Go to the Ruby Library Depot site (of Didier) and there you'll find a test (*.dat) file for the script.


            Pedro,

            The data provided on the website is probably in centimetres and your model is in feet.
            Change the template/Units in your file where you're importing the data file, import it (and later you may change the units back).

            I hope this works - please, let us know!

            Gai...

            1 Reply Last reply Reply Quote 0
            • E Offline
              ELYSIUM
              last edited by

              Tks Gaieus!!

              That was the problem, i set the units to meters and it is perfect.
              That was a real beginner mistake! lol
              The first thing i do in a new model is change the units. How could i forgot it this time! tks.

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                Well, Pedro, everyone makes mistakes - especially when they are sooo obvious!
                😄

                Gai...

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Ben Ritter
                  last edited by

                  Does anyone know why my result is the wrong scale and inverted/mirrored?

                  Ben

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    Ben,

                    You might be using another template file ("units-wise") than the input is. That was "ELISYUM"'s problem, too (see above).

                    I don't know about mirroring. Maybe the order of the date-input? (It should be x,y,z - in this order).

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      not registered yet
                      last edited by

                      @didier bur said:

                      Here is the update of cloud.rb for SU6 (won't work with SU5 😉
                      (French version available at the Ruby Library Depot)
                      Enjoy,

                      How does it work? 😄

                      poster-Invader ZIM

                      1 Reply Last reply Reply Quote 0
                      • Didier BurD Offline
                        Didier Bur
                        last edited by

                        RTFM 😄

                        DB

                        1 Reply Last reply Reply Quote 0
                        • GaieusG Offline
                          Gaieus
                          last edited by

                          @didier bur said:

                          RTFM 😆

                          May I suspect what this means, Didier?
                          😄

                          Gai...

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

                            @gaieus said:

                            May I suspect what this means, Didier?
                            😄

                            I found a source to Read the Manual at: http://www.crai.archi.fr/RubyLibraryDepot/Ruby/Cloud.pdf

                            And I've got a question.
                            What data sources do you use for this? Are there terrain maps on the web in this format?

                            1 Reply Last reply Reply Quote 0
                            • GaieusG Offline
                              Gaieus
                              last edited by

                              @schreiberbike said:

                              I found a source to Read the Manual at: http://www.crai.archi.fr/RubyLibraryDepot/Ruby/Cloud.pdf

                              Yeah, it's right next to the script - as Didier noted above.

                              As for the input - use simple text files with the x,y,z coordinates of every single point entered into a line each.

                              The source of this data file... well, wherever you can get it. I enter my own measurements or use a survey station and get the data as a text file or anything.

                              This script is mainly for you to use your own data than for importing because by importing you can usually have your mesh already.

                              Gai...

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                Fletch
                                last edited by

                                Didier, thank you for ALL your ruby scripts at your site... found a couple new ones I hadn't seen before.

                                you have a tiny glitch...
                                http://www.crai.archi.fr/RubyLibraryDepot/Ruby/Roof-v2-1.zip is missing the '.zip' in the link, so that it's a broken link. I just added the ".zip" to my address line, and it d/ls just fine.

                                thanks again for your site.
                                The pushpull multiple faces with 2 selected points is going to be my new favorite tool! It's just what I came here looking for! 😄

                                Fletch
                                Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                                1 Reply Last reply Reply Quote 0
                                • Didier BurD Offline
                                  Didier Bur
                                  last edited by

                                  Thanks Fletch,
                                  Normally Rick Wilson's freebies links are redirecting you to Smustard as he requested. So the link is buggy twice. 😒 Will fix that asap.
                                  Regards,

                                  DB

                                  1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    linea
                                    last edited by

                                    Didier. Just downloaded cloud.rb. I had not come across this script until now. I haven't worked with point clouds before but this could be brilliant for my work.

                                    Thanks

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Monotonx
                                      last edited by

                                      I have a Problem with a large point cloud:

                                      I'm able to import the Points (round about 80.000) with your script but if I tell the script to triangulate the points my Pc hangs up (It's just to much point at once)

                                      Is there a posibility or another script to mesh only a few points at once to prevent sketchup from hanging up?

                                      I hope anyone can help me 😞

                                      greetings

                                      Markus

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        Monotonx
                                        last edited by

                                        I tried to attach the text file with the model - but it was too large.

                                        so i divided the koordinates into three separate files and also attached a zipped file with the point cloud as sketchup-file


                                        first part of Koordinates


                                        second part of Koordinates


                                        third part of Koordinates


                                        fourth part of Koordinates


                                        all points as zipped sketchup file

                                        1 Reply Last reply Reply Quote 0
                                        • TaffGochT Offline
                                          TaffGoch
                                          last edited by

                                          Monotonx,

                                          Before "Cloud" there was...

                                          At the Ruby Library Depot (http://www.crai.archi.fr/RubyLibraryDepot/Ruby/en_geo_page.htm) there is a plugin named, "points_cloud_triangulation" that you need to download, and drop into your SketchUp "plugins" folder.
                                          http://www.crai.archi.fr/RubyLibraryDepot/Ruby/points_cloud_triangulation.rb

                                          You can use "cloud" to import the guidepoints, but skip the triangulation. Then, select only a portion of the the guidepoints, and triangulate with "points_cloud_triangulation." This plugin will permit you to complete the task in selected sections.

                                          This ruby requires another rubyscript to function, "delauney2.rb" (but the link is broken.) Playing around, I found that it's misspelled. The correct download link is:
                                          http://www.crai.archi.fr/RubyLibraryDepot/Ruby/delauney2.rb
                                          (Also drop in the "plugins" folder.)

                                          When you next start SketchUp, a new menu item will appear in the "Plugins" menu list -- "Triangulate points"

                                          To use it, select a set of guidepoints then run "Triangulate points". I should caution you not to select too many points. I selected ~8,000 guidepoints, and it took over 15 minutes to parse through them. It was, however, successful at producing the edges and triangular faces, although some outer edge cleanup is required.

                                          Might that serve your purpose?

                                          Regards,
                                          Taff

                                          "Information is not knowledge." -- Albert Einstein

                                          1 Reply Last reply Reply Quote 0
                                          • GaieusG Offline
                                            Gaieus
                                            last edited by

                                            Hi Markus,

                                            You may have actually solved your problem already: dividing the text file into portions may also work.

                                            However note that a mesh with 80,000 points (and the respective amount of edges and faces) will always kill your machine even after you succesfully create it.

                                            Gai...

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

                                            Advertisement