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

    [Plugin] QuadsFrom2Tris v1.3 20110312

    Scheduled Pinned Locked Moved Plugins
    13 Posts 2 Posters 10.4k Views 2 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

      TIG (c) 2011
      All Rights Reserved.
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
      WARRANTIES,INCLUDING,WITHOUT LIMITATION,THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      Plugin:
      QuadsFrom2Tris.rb >> Plugins folder
      Usage:
      Plugins menu >> "Quads From 2 Triangles..."
      Result:
      Processes 2 preselected connected triangles into 5 quads, with a central
      hub-diamond placed just above/below the common-edge depending on
      convex/concave surfaces.
      If the 2 triangles are coplanar they are combined into 1 quad.
      The Triangle's Materials and Layers are preserved.
      or use in other code as
      QuadsFrom2Tris.new() or quadsfrom2tris()
      Without arguments it needs 2 preselected triangular faces, or use as
      QuadsFrom2Tris.new([tri1, tr2]) or quadsfrom2tris([tri1, tr2])
      where tr1 and tr2 are the two connected triangular faces.
      Donations:
      By Paypal.com to info @ revitrev.org PayPalButton Version:
      1.0 20110310 First issue.
      1.1 20110310 Reversed faces glitch etc fixed.
      1.2 20110311 Off of 'hub' optimized.
      1.3 20110312 Occasional glitch with some configurations addressed.
      QuadsFrom2Tris.PNG


      QuadsFrom2Tris.rb

      TIG

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

        πŸ‘

        Amazing no one ever thought of this before?

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

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

          @unknownuser said:

          Amazing no one ever thought of this before?

          I was nudged into it by some PM nagging πŸ˜‰

          TIG

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

            Wish GRANTed! Lucky member who it was?

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

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

              @unknownuser said:

              Wish GRANTed! Lucky member who it was?

              I don't exactly remember the member... but I think he sounds wealthy πŸ˜‰

              TIG

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

                I've just finished testing it... and in some circumstances I've found that it can reverse some faces and mess up concave surfaces... I'm already working on an update πŸ˜’

                TIG

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

                  Here's v1.1
                  The reversed faces glitch etc have been fixed.
                  http://forums.sketchucation.com/viewtopic.php?p=315130#p315130

                  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=315130#p315130
                    The offset of the 'hub' has been [re]optimized...

                    TIG

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

                      TIG,

                      I first ran it on the opposite side to this and it worked perfect. Did the other side and this is the result...

                      http://www.dropmocks.com/iSRnM

                      Nothing in Ruby Console if that helps?

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

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

                        @unknownuser said:

                        TIG,
                        I first ran it on the opposite side to this and it worked perfect. Did the other side and this is the result...
                        Nothing in Ruby Console if that helps?

                        Strangely when I run it on the SKP you provided before I get perfect results on BOTH sides πŸ˜•
                        Can you retry and PM me the problem SKP if it keeps happening. I can't see how this might happen ? πŸ˜’

                        TIG

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

                          TIG_Error.skp

                          This actually does it on both sides πŸ˜•

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

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

                            Here is v1.3 http://forums.sketchucation.com/viewtopic.php?p=315130#p315130
                            This now successfully works even on the configuration supplied by Rich [I still can't see why it was failing... BUT it seems like it intersected with a ghost of part itself - weird - πŸ˜• - this new version avoids this issue by making sure there are no coplanar edges at a crucial stage in the reforming πŸ˜’ ]
                            It's now a bit like 'Aspirin' - it is efficacious, but no one is sure exactly 'how' πŸ˜‰

                            TIG

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

                              Works fine, trying my hardest to break it.. πŸ‘

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

                              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