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

    [REQ] drop and drape

    Scheduled Pinned Locked Moved Plugins
    16 Posts 5 Posters 3.6k Views 5 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.
    • Rich O BrienR Offline
      Rich O Brien Moderator
      last edited by

      Nice to see someone appreciates me around here ❓

      Download the free D'oh Book for SketchUp πŸ“–

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @solo said:

        I have that script with the delauney and triangulate in my plugins folder, however I cannot to the life of me find the triangulate option anywhere in SU, it's supposed to be in the plugins drop down but nada, I installed it 5 times in case I messed up somehow, but still nothing appears in SU 8.

        Plugins >> Triangulate points...
        What version did you install ?

        TIG

        1 Reply Last reply Reply Quote 0
        • soloS Offline
          solo
          last edited by

          I have both triangulate.rb and points_cloud_triangulation.rb.

          http://www.solos-art.com

          If you see a toilet in your dreams do not use it.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            @solo said:

            I have both triangulate.rb and points_cloud_triangulation.rb.

            And delauney2.rb ?
            What happens if you type triangulate_points into the Ruby Console ?
            I have these files in ../Plugins AND I get the Plugins menu item 'Triangulate points' πŸ€“
            You haven't suffered some weird Vista type compatibility files folder problems ?? πŸ˜•

            TIG

            1 Reply Last reply Reply Quote 0
            • soloS Offline
              solo
              last edited by

              I typed it in, it asked me if I wanted to put it on a new layer, I clicked yes and it did nothing.

              Ruby consol showed a 0.

              πŸ˜•

              Yes I have delauney2.rb in plugins folder.

              http://www.solos-art.com

              If you see a toilet in your dreams do not use it.

              1 Reply Last reply Reply Quote 0
              • soloS Offline
                solo
                last edited by

                Then I closed SU, opened it again, made new setup, exploded points and got this:

                triangulate_points
                Error; #<ArgumentError; C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate'; wrong number of arguments (1 for 0)>
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate_points'
                (eval);948
                
                

                No thing happened however, still points and no mesh.

                If I choose not to put on layer I get this:

                triangulate_points
                Error; #<ArgumentError; C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate'; wrong number of arguments (1 for 0)>
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate_points'
                (eval);107
                
                

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • X Offline
                  xrok1
                  last edited by

                  try this???
                  http://forums.sketchucation.com/viewtopic.php?f=323&t=24676

                  β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                  http://www.Twilightrender.com try it!

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    Solo

                    Please remove your points_cloud_triangulation.rb and install my version from here http://forums.sketchucation.com/viewtopic.php?p=301274#p301274 - extract the two .rb files into Plugins... note it needs my version 'delauney3.rb' included in the zip.

                    I suspect from your error message that the 'unencapsulated' method 'trangulate' in delauney2 is getting compromised by another method of the same name loading from another script... My versions contains the methods inside a 'class'.

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • soloS Offline
                      solo
                      last edited by

                      Thanks TIG, it works now.

                      http://www.solos-art.com

                      If you see a toilet in your dreams do not use it.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by

                        Could not this be done more directly using an actual PolygonMesh instead of using cpoints? I mean, you could generate a flat mesh of some density, then iterate the points and adjust each points's Z coordinate (using .set_point) to the "ground" using raycast?

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by

                          @jim said:

                          Could not this be done more directly using an actual PolygonMesh instead of using cpoints? I mean, you could generate a flat mesh of some density, then iterate the points and adjust each points's Z coordinate (using .set_point) to the "ground" using raycast?
                          You certainly could - the drape_cpoints then triangulate method was written some while ago in response to a request [it does allow you to adjust some of the cpoints before making the mesh so in some respects it's perhaps easier that trying to move a mesh's vertices later on?]... BUT a method like you suggested that auto-drapes a flat [grouped] mesh over some 3d solid forms below using a raytest and a 'vertex-move' method would be quite doable [so over to you...]

                          TIG

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

                          Advertisement