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

[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.
  • S Offline
    solo
    last edited by 14 Jan 2011, 21:43

    Just wondering if it's possible to make a ruby that can drop and drape a plane, Like a cloth simulation.

    I can almost get what I need using small blocks and smart drop as these illustrations show.

    Here I made a plane using 50x50 individually grouped blocks (RED) with a base surface (BLUE) and a drape shape (Yellow).

    drop1.jpg

    Using Smartdrop I dropped the blocks to achieve this drape shape.

    drop2.jpg

    Okay, what I'd like it to be able to do this without the blocks but rather a plane, which I'd probably use the 'from scratch tool' in sandbox to create, I would need the mesh to stay attached and form over the shape/s they drop on.

    Am I making sense?

    http://www.solos-art.com

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

    1 Reply Last reply Reply Quote 0
    • S Offline
      solo
      last edited by 14 Jan 2011, 21:46

      Here is a drop with multiple different surfaces.


      drop3.jpg

      http://www.solos-art.com

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

      1 Reply Last reply Reply Quote 0
      • R Offline
        Rich O Brien Moderator
        last edited by 14 Jan 2011, 21:58

        Drape CPoints - http://forums.sketchucation.com/viewtopic.php?t=21379

        Point Cloud Triangulation - http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=292

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 14 Jan 2011, 22:27

          @unknownuser said:

          Drape CPoints - http://forums.sketchucation.com/viewtopic.php?t=21379
          Point Cloud Triangulation - http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=292

          Thanks - beat me to it...
          This tool makes cpoints on the surface then you make the mesh from those... πŸ˜„

          TIG

          1 Reply Last reply Reply Quote 0
          • S Offline
            solo
            last edited by 14 Jan 2011, 22:48

            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 incase I messed up somehow, but still nothing appears in SU 8.

            http://www.solos-art.com

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

            1 Reply Last reply Reply Quote 0
            • R Offline
              Rich O Brien Moderator
              last edited by 14 Jan 2011, 22:49

              Nice to see someone appreciates me around here ❓

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

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 14 Jan 2011, 23:06

                @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
                • S Offline
                  solo
                  last edited by 14 Jan 2011, 23:11

                  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
                  • T Offline
                    TIG Moderator
                    last edited by 14 Jan 2011, 23:41

                    @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
                    • S Offline
                      solo
                      last edited by 15 Jan 2011, 02:07

                      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
                      • S Offline
                        solo
                        last edited by 15 Jan 2011, 02:15

                        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 15 Jan 2011, 04:53

                          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
                          • T Offline
                            TIG Moderator
                            last edited by 15 Jan 2011, 15:23

                            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
                            • S Offline
                              solo
                              last edited by 15 Jan 2011, 16:09

                              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 31 Jul 2011, 03:43

                                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
                                • T Offline
                                  TIG Moderator
                                  last edited by 31 Jul 2011, 10:49

                                  @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