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

    [Plugin] Super Drape

    Scheduled Pinned Locked Moved Plugins
    192 Posts 54 Posters 349.7k Views 54 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.
    • charly2008C Offline
      charly2008
      last edited by

      Thanks for the tip. Your plugin has a great potential as always.


      2011-10-05_170820.jpg

      He who makes no mistakes, makes nothing

      1 Reply Last reply Reply Quote 0
      • MALAISEM Offline
        MALAISE
        last edited by

        Simply, thanks 😄

        MALAISE

        La Connaissance n'a de valeur que partagée

        1 Reply Last reply Reply Quote 0
        • W Offline
          wolfy
          last edited by

          VERY COOL! Thanks TIG this will come in extremely handy. ☀

          1 Reply Last reply Reply Quote 0
          • numbthumbN Offline
            numbthumb
            last edited by

            Where would we be without all this stuff... thanks!

            Comfortably numb...

            1 Reply Last reply Reply Quote 0
            • Dave RD Offline
              Dave R
              last edited by

              Thanks TIG.

              So the splats occurred because those two quad faces barely qualified as quads? It sounds like SU let Fredo's skinning tool make quad faces but wouldn't let your tool work. Sounds like a double standard to me. 😄

              I'll give it a try as soon as I can and let you know how it goes.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • charly2008C Offline
                charly2008
                last edited by

                As always with new tools, I need to experiment with.


                2011-10-05_173422.jpg


                2011-10-05_174624.jpg


                2011-10-05_182406.jpg


                2011-10-05_191215.jpg

                He who makes no mistakes, makes nothing

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

                  Charly

                  Glad you're enjoying it 😄

                  One of the issues [but not all] about your original problem was that you applied the material to the draped group and not the faces with in it...
                  I plan to spot this in the next version and ask what you want to do...
                  Also your sphere had a convoluted transformation - removed after the explode+regroup... I looking at ways of trapping/sorting this too... 😒

                  TIG

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

                    Here's v1.2 http://forums.sketchucation.com/viewtopic.php?p=358314#p358314 ☀

                    Following Charly's feedback it now spots if you have a material applied to the draped group and that there are some faces inside the group without a material [they will appear to have the group's material, even when they are actually in the default-material] - you can then choose Yes|No to use that group.material for any draped faces that would otherwise have the default-material.
                    The intersecting is even more robust.
                    All underlying faces inside the same group should now be unaffected by the draping [i.e. any faces below the draped-on topmost faces].
                    Draped faces that partially overlap the edges of the draped-on group's faces are now neatly trimmed to them.
                    Groups with convoluted transformations [rotated in 3d, scaled etc] should no longer cause issues with the draping.

                    Feedback please...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wyatt
                      last edited by

                      TIG, this version doesn't work for me. It calculates forever.

                      Error: #<NoMethodError: undefined method entities' for nil:NilClass> C:/PROGRA~2/Google/GOOGLE~1/Plugins/TIG-Superdrape.rb:152:in drape'
                      C:/PROGRA~2/Google/GOOGLE~1/Plugins/TIG-Superdrape.rb:114:in `onLButtonDown'

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

                        I suspect you have SketchyPhysics or DrivingDimensions [or something similar] installed that cause a problem with copying groups [the use of the standard-method 'group.copy' was added in this version] - I had forgotten that these 'rogue-tools' still need fixing by their authors... 😲 😒
                        I am making some other minor tweaks anyway... so I will try and get rid of the 'group.copy' code to avoid the issue at the same time...
                        Watch this space... 😄

                        TIG

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

                          Here's v1.3 http://forums.sketchucation.com/viewtopic.php?p=358314#p358314 ☀
                          The new group.copy code introduced in v1.2 is now recast to avoid clashes with rogue-scripts that might mess it up.
                          Multi-level/overlapping faces in the draped-group are now allowed [previously only one level was draped].
                          😄

                          The earlier v1.2 changes were...
                          Following Charly's feedback it now spots if you have a material applied to the draped group and that there are some faces inside the group without a material [they will appear to have the group's material, even when they are actually in the default-material] - you can then choose Yes|No to use that group.material for any draped faces that would otherwise have the default-material.
                          The intersecting is even more robust.
                          All underlying faces inside the same group should now be unaffected by the draping [i.e. any faces below the draped-on topmost faces].
                          Draped faces that partially overlap the edges of the draped-on group's faces are now neatly trimmed to them.
                          Groups with convoluted transformations [rotated in 3d, scaled etc] should no longer cause issues with the draping.

                          Feedback please...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            wyatt
                            last edited by

                            I do have Sketchy Physics, and 1.3 works now. Thank you.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              AcesHigh
                              last edited by

                              Thanks a lot TIG, since it was me who asked for this tool.

                              You know, there is another use for this tool that I thought just now. Since you now can drape materials onto the mesh, it makes it REALLY EASY to select the faces with the new material! No more pain selecting all the faces that you just draped!

                              1 Reply Last reply Reply Quote 0
                              • pep75P Offline
                                pep75
                                last edited by

                                ☀ 👍 !!!

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  AcesHigh
                                  last edited by

                                  TIG, interested in adding functionalities for making a Super Ultra Drape??? 💚 💚

                                  basically:

                                  1 - when drapeing, you simply projects the line of a surface over a 3d mesh. The ending result COMPLETELY follows the curvature of the mesh, just adding those lines over the mesh.

                                  2 - when stamping, you add a completely flat shape to a mesh. The mesh adapts to the stamp and becomes flat.

                                  What if you want a compromise? Like for example, to project a road over a mesh? Lets say you have a road, and the road is 20cm below the curbs/sidewalk level.

                                  Why not project that 3d road over the mesh, and the mesh ALREADY has the road areas becoming 20cm lower than the curb/sidewalks areas?

                                  What if you want the road to climb a small hill (that exists on the mesh) but you dont want the road to be as steep as the mesh? You already have the road steepness. Normal drape would be useless. It would just project the road lines over the existing (very steep) mesh. Drape would make the road flat. Ideal solution would be to project the road onto the mesh, but KEEP the road Y axis curvature, making the mesh adapt (like when stamping) to the road.

                                  So, TIG, do you think something like that would be possible? Thanks very much!

                                  1 Reply Last reply Reply Quote 0
                                  • Bob JamesB Offline
                                    Bob James
                                    last edited by

                                    @AcesHigh

                                    Why not just use InstantRoad.rbs?

                                    i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      AcesHigh
                                      last edited by

                                      1 - instant roads is paid.

                                      2 - these extra functionalities for drape can be used for other things besides roads

                                      3 - in my specific case, Instant Roads is of no use. I must drape a DWG road project over a mesh. Instant Roads is too limited.

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        wyatt
                                        last edited by

                                        AcesHigh,
                                        Joint push pull can be used to lower the mesh a given distance to account for curbs.

                                        @unknownuser said:

                                        What if you want the road to climb a small hill (that exists on the mesh) but you dont want the road to be as steep as the mesh? You already have the road steepness.

                                        How do you already have the road steepness? Do you have a road profile or 3D polyline from CAD that you're working from?

                                        I guess I don't understand how you envision this working. How would the plugin know that you want a certain segment of the road to follow the existing grade, and a different segment to be cut into a hill at a flatter grade? What about the road in a fill section? CAD programs solve this by utilizing a combination of horizontal alignment and profile data, typically based on stationing. Do you want to create something similar?

                                        Don't get me wrong, I think what you're asking for is great. I use SU for this type of work too. I'm just trying to figure out what form you see it taking.

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          AcesHigh
                                          last edited by

                                          @unknownuser said:

                                          AcesHigh,
                                          Joint push pull can be used to lower the mesh a given distance to account for curbs.

                                          yes, and I have used it. However, its much harder to select a heavily triangulated area of the mesh to "joint push pull", than it would be to select the same area in a flat drawing, push pull it lower, and drape it, already lowered, into the mesh below.

                                          @unknownuser said:

                                          How do you already have the road steepness?

                                          lets say you already drew it. With polylines.

                                          @unknownuser said:

                                          I guess I don't understand how you envision this working. How would the plugin know that you want a certain segment of the road to follow the existing grade, and a different segment to be cut into a hill at a flatter grade?

                                          no segment will follow the existing grade. Imagine a STAMP but following the different heights of the profile, instead of stamping flat.

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

                                            @aceshigh said:

                                            1 - instant roads is paid.

                                            And you want TIG to make a version for free..?

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

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

                                            Advertisement