sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Drape Cpoints

    Scheduled Pinned Locked Moved Plugins
    46 Posts 23 Posters 46.4k Views 23 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      @ben ritter said:

      Earthmover,
      For some reason, by looking at your images, I can't figure out what this script actually does or what happens in each step (e.g. bedspread example).
      Can you explain? Thanks.

      You select some faces/groups/components etc [the bed]. You give an XY grid spacing in a dialog and it makes a horizontal grid of Cpoints that's initially put just above the selection: the regular grid extends to the XY bounds of the selection. These Cpoints are then dropped down till they hit something in the selection OR, if not, then down to the minimum bounds of the selection. These Cpoints are grouped. This is all done so quickly you won't see it till the grid appears - there is a counter that shows its progress making the Cpoints and draping [dropping] them - there's also some 'behind the scenes' temporary grouping, erasing and exploding etc but you don't really need to worry about that ! Existing ruby tools can then work on these Cpoints to make a triangulated mesh face.

      I surmise what was done with the 'bed' was to make the draped Cpoints, a faced mesh was made with 'Triangulate Points' and then some vertices forming the bottom edge were manually moved randomly to form the 'folds' of the bedspread. Perhaps a few top face vertices were moved a little to give some 'dints'. The sheet part was probably selected and moved up a little to form a change of plane for the different material. It was then all smoothed and the materials applied...

      Its general use is if you have a triangulated site mesh made from survey data-points it'll likely be irregular - it's often preferable to make it into a regular XY grid (like those made by the Sandbox Tools). This tool lets you quickly drape a regular XY grid of Cpoints over the form and then reform them into a regular faced mesh using another tool, the original form is left unchanged...

      TIG

      1 Reply Last reply Reply Quote 0
      • J Offline
        jamma-pcb
        last edited by

        ANy chance you could add gravity physics to this plugin.

        The idea is to hover a face over multiple components and any space inbetween curve based on the gravity amount. Like draping a quilt over many pillows. The edges it would follow on Z and any space inbetween to curve out on multiple edges.

        ANy chance of such a any tool

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

          Sounds pretty complicated ! ๐Ÿ˜ฎ
          Don't you want something inside SketchyPhysics like a 'chain of hinged links' that you anchor at its two ends and it then 'sags' appropriately ?
          Each 'chain' would be made representing a 'rib' of a 'mesh' or 'net'...
          You'd then swap the links for simple edges and explode stuff and you have the basis of the surface ???
          My brain hurts already... ๐Ÿ‘Š
          Thomthom is making a Vertex Editor and that might help ?
          Remus has also done some work on Catenary Curves...
          These things combined might do what you want BUT it'd be at the end of along list for me... others might pick up the gauntlet ? ๐Ÿ˜„

          TIG

          1 Reply Last reply Reply Quote 0
          • EarthMoverE Offline
            EarthMover
            last edited by

            Sounds like he's looking for a real physics based cloth simulation plugin for sketchup. That seems as though it would be better integrated into sketchy physics as it has the framework for gravity simulation. I would love to see it, but I imagine it's still a far way off unless SU 8 implements a better engine under the hood.

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

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

              great plugin. thankyou. here is the .zip file that contains this and the other two plugins needed to create a mesh. maybe you could add it to your original post. would be less confusing for some. ๐Ÿ˜ณ


              DRAPE_TRIANGULATE_DELU_Plugins.zip

              โ€œ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
              • olisheaO Offline
                olishea
                last edited by

                TIG..I've got a problem.

                The construction points appear, but they are not draped over the mesh (see screengrab). It just creates a regular, flat grid of c points under my mesh.

                Am I doing something wrong?

                http://i654.photobucket.com/albums/uu269/olishea/Picture26.png

                oli

                1 Reply Last reply Reply Quote 0
                • olisheaO Offline
                  olishea
                  last edited by

                  Never mind, I've got it to work now. You have to drape points over a group....I was triple clicking the mesh and then trying to use the plugin. duh!

                  I am using this to simplify a dirty 3D topographical survey and it work beautifully! such a good idea. I was just about to start manually draping construction points then I thought, "hang on a minute.....there MUST be a plugin for this"

                  so thank you ever so much for taking the time to make and share this wonderful ruby! It will save me lots and lots of time and stress so hats off to TIG! bravo!

                  oli

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    @olishea said:

                    Never mind, I've got it to work now. You have to drape points over a group....I was triple clicking the mesh and then trying to use the plugin. duh!

                    I am using this to simplify a dirty 3D topographical survey and it work beautifully! such a good idea. I was just about to start manually draping construction points then I thought, "hang on a minute.....there MUST be a plugin for this"

                    so thank you ever so much for taking the time to make and share this wonderful ruby! It will save me lots and lots of time and stress so hats off to TIG! bravo!

                    If I remember correctly, the Archiland plugin has a tool that recreates a terrain in a regular pattern: http://forums.sketchucation.com/viewtopic.php?f=323&t=13760#p102771

                    Thomas Thomassen โ€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • olisheaO Offline
                      olishea
                      last edited by

                      ah thomthom thank you!! i didnt know that plugin existed. you can really simplify a mesh with it, nice one!! and cheers to cadfather too.

                      here is a screenshot of my mesh tests.

                      Think i will be using the triangulated construction points at 5000mm centres....detailed enough for my needs. I love the archiland "simplify contours" tool as well, its a great idea.

                      http://i654.photobucket.com/albums/uu269/olishea/Picture28-1.png

                      oli

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

                        @earthmover said:

                        Another use for the script.....5 minute bedspread. (Bed model from warehouse)

                        adam,

                        did you just move the points using the regular move tool or did you use another plugin to make the bedspread?

                        edson mahfuz, architect| porto alegre โ€ข brasil
                        http://www.mahfuz.arq.br

                        1 Reply Last reply Reply Quote 0
                        • EarthMoverE Offline
                          EarthMover
                          last edited by

                          Yes, Edson I just moved the Cpoints manually before running the triangulate plugin to give the appearance of ruffled edges. I also used JPP to give thickness to simulate the fold over atop the pillows.

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

                          1 Reply Last reply Reply Quote 0
                          • Y Offline
                            yukonhoo
                            last edited by

                            @tig said:

                            The script 'points_cloud_triangulation.rb' [which shows in the Plugins menu as 'Triangulate Points'] is here...
                            http://www.crai.archi.fr/RubyLibraryDepot/Ruby/points_cloud_triangulation.rb
                            that also requires 'delauney2.rb' - which you can get here...
                            http://forums.sketchucation.com/viewtopic.php?p=117071#p117071
                            ๐Ÿค“

                            Thanks!!

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

                              @yukonhoo said:

                              @tig said:

                              The script 'points_cloud_triangulation.rb' [which shows in the Plugins menu as 'Triangulate Points'] is here...
                              http://www.crai.archi.fr/RubyLibraryDepot/Ruby/points_cloud_triangulation.rb
                              that also requires 'delauney2.rb' - which you can get here...
                              http://forums.sketchucation.com/viewtopic.php?p=117071#p117071
                              ๐Ÿค“

                              Thanks!!

                              I have recently updated a version of the 'cloud' tool and a related delauney3 - do a search on the Plugins forum... ๐Ÿค“

                              TIG

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

                                Hi,

                                Note that I recently changed the old typo in the main script 'require ./delauney2.rb' to 'require 'delaunay2.rb'
                                The required file has been renamed 'delaunay2.rb'
                                Regards,

                                DB

                                1 Reply Last reply Reply Quote 0
                                • tibetT Offline
                                  tibet
                                  last edited by

                                  @earthmover said:

                                  Another use for the script.....5 minute bedspread. (Bed model from warehouse)

                                  hi,
                                  could you please make step by step tut for creating your wonderful "5-minute bedspread" for those, whoยดre in the process of learning, just a bit far behind you (youtube is fine too)

                                  thanks !

                                  SU 2015 Pro on Win10 x64

                                  1 Reply Last reply Reply Quote 0
                                  • Rich O BrienR Offline
                                    Rich O Brien Moderator
                                    last edited by

                                    Excellent Adam ๐Ÿ‘

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

                                    1 Reply Last reply Reply Quote 0
                                    • pilouP Offline
                                      pilou
                                      last edited by

                                      Nice tut! โ˜€

                                      Frenchy Pilou
                                      Is beautiful that please without concept!
                                      My Little site :)

                                      1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        nomeradona
                                        last edited by

                                        Wow Adam that is a cool tutorial.

                                        visit my blog: http://www.nomeradona.blogspot.com

                                        1 Reply Last reply Reply Quote 0
                                        • EarthMoverE Offline
                                          EarthMover
                                          last edited by

                                          Thanks guys..glad it was helpful. Here's a few tests of the method on different shapes. It's not as good as a physics based cloth simulation, but the results are fairly convincing. For table cloths, you just need to make sure you have a ground shape object that is slightly larger than the table and in the same group, so that the Cpoints will drape down and onto the ground. The same method can be used to make water in a stream bed or snow on a rooftop.


                                          Drape shapes.jpg

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

                                          1 Reply Last reply Reply Quote 0
                                          • tibetT Offline
                                            tibet
                                            last edited by

                                            hi earthmover,
                                            thanks for your valuable time and desire to share your knowledge among sketchup fans/learners.
                                            itยดs pretty cool, well done!
                                            cheers!

                                            SU 2015 Pro on Win10 x64

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

                                            Advertisement