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

    [Plugin] Recurve

    Scheduled Pinned Locked Moved Plugins
    68 Posts 24 Posters 43.8k Views 24 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.
    • pilouP Offline
      pilou
      last edited by

      Not sure in this case that is this who makes fail the tool in the V6 πŸ˜„
      Waiting adivice of the author πŸ˜„

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

      1 Reply Last reply Reply Quote 0
      • D Offline
        Diggsey
        last edited by

        I'm afraid I can't find out why it doesn't work in v6 because I only have versions 7 and 8 and google only host older downloads for sketchup pro.

        It could be that the method it uses simply doesn't work in v6. You can test this by making a curve and copying it. Explode the copy and then make it into a group and position it exactly over the original curve. Then explode the group. If you are left with a curve, the method should work.

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

          @diggsey said:

          I'm afraid I can't find out why it doesn't work in v6 because I only have versions 7 and 8 and google only host older downloads for sketchup pro.

          Pro reverts into Free when the trial period of over.

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

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

            I ran Recurve on SU6 - selected a set of connected edges.

            Got the following error in the Ruby Console:
            Error: #<NoMethodError: undefined methodbreak_edges=' for Sketchup:Module>
            C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/recurve.rb:213:in recurve' C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/recurve.rb:247:in recurve_selection'
            C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/recurve.rb:361
            C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/recurve.rb:361:in call'

            Sketchup.break_edges was added in SU7 - that's when SU started to automatically split edges. So you should be able to make a wrapper that only use these methods and still have the plugin functioning properly. Just test for Sketchup.respond_to?( :break_edges= ).

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

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

              Free version of SU6 is here πŸ˜‰

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

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

                I'm not even sure that using Sketchcup.break_edges=boolean has any affect inside a script...
                It determines whether or not crossing edges formed manually will split automatically at their intersection... BUT crossing edges never split when made in code anyway ??

                TIG

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

                  @tig said:

                  I'm not even sure that using Sketchcup.break_edges=boolean has any affect inside a script...
                  It determines whether or not crossing edges formed manually will split automatically at their intersection... BUT crossing edges never split when made in code anyway ??

                  I've wondered that myself! I find it confusing when making edges via the API, some times they seems to split - some times not. πŸ˜•

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

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Diggsey
                    last edited by

                    I've updated the first post with a new version which will work with SketchUp 6.

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

                      Many thanks! You rocks πŸ‘

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

                      1 Reply Last reply Reply Quote 0
                      • jeff hammondJ Offline
                        jeff hammond
                        last edited by

                        hey diggsey

                        i'm curious about what angle you have the cut-off(?) set to when using 'select curve' (for instance, you can't use select curve on one side of a square and have the whole thing select)

                        i like that it acts the way it does but would like to know the # just so i have an idea of it.
                        i also use TT's select tool which will select everything regardless of angle until it hits a 3-way junction which comes in handy as well depending on the situation..

                        like i said though -- i'm just curious
                        not asking you to change anything etc. πŸ˜„
                        thanks

                        dotdotdot

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Diggsey
                          last edited by

                          It uses an angle of 1 radian (~57 degrees) as the cut-off.

                          1 Reply Last reply Reply Quote 0
                          • jeff hammondJ Offline
                            jeff hammond
                            last edited by

                            ok, back again πŸ˜„

                            so i found some discrepancies with the plugin.. i'm not sure if this behavior is desired by you (or anyone else?) but to me, i feel like recurve should work in all 5 of these instances:

                            i hope this file is understandable -- i'm pretty sure it's at least 5x more understandable than if i were to try to type an explanation πŸ™‚

                            so would you agree that all cases shown there should recurve? (or, if it's desired behavior, can you fill me in on the type of situation where it would be wanted?)

                            thanks for looking at it..

                            dotdotdot

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              Diggsey
                              last edited by

                              I see what you mean. It seems that if you have two softened edges on the same side that it won't recurve properly. There is some code which divides the curve up if it intersects a hard edge, so maybe that's what's causing the problem. I'll have to look into it.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Diggsey
                                last edited by

                                I've fixed the bug. It happened when faces touched the curve at just a corner. The code needs to do something for each face touching the curve, and it used to find all the faces connected to all the edges in the curve. Now it finds all the faces connected to all the vertices in the curve instead.

                                1 Reply Last reply Reply Quote 0
                                • jeff hammondJ Offline
                                  jeff hammond
                                  last edited by

                                  awesome. thank you!

                                  [and i hope i'm not coming across as a pest πŸ˜„.. it's just that i'm really into this plugin and will be using it very often]

                                  dotdotdot

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

                                    a necessary pest πŸ˜‰

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

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      davidheim1
                                      last edited by

                                      Does the plug-in work with Mac OS? When I download the file, I get the code, not the usual files or folders.

                                      1 Reply Last reply Reply Quote 0
                                      • jeff hammondJ Offline
                                        jeff hammond
                                        last edited by

                                        @davidheim1 said:

                                        Does the plug-in work with Mac OS? When I download the file, I get the code, not the usual files or folders.

                                        that's something to do with your browser maybe ?.. (though this does happen to me when i get rubies from crai but not when getting them from scf (using safari btw)

                                        right-click the download link and choose 'download linked file' (or something worded similarly) then the .rb should come in normal..

                                        dotdotdot

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          mcpcorey
                                          last edited by

                                          Diggsey,

                                          I just wanted to say: THANK YOU, THANK YOU, for this plug in. In the relatively short time since I have started using it, it has saved me countless hours of frustration !.. I would have to say, (at least for the way I model) that this is probably the most useful, and time/frustration, saving plugin, that I have used to date.

                                          And a general shout out to all of you here that take the time to write, and share, such useful scripts!... You are way smarter than me, and you all deserve many accolades.. I don't know how I would get by without you all !

                                          Thanks Again !

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

                                            Hey Diggsey,

                                            This looks like a great plugin. However, it doesn't seem to have the feature that I am most interested in.

                                            What would be very useful to me is if you could select two edges anywhere in a mesh and the plugin would try to find the shortest edge path in between them. A tool interface would be nice. You first select a single edge. Then, hold down 'shift' and click on another edge and all of the edges in between would be selected.

                                            This is actually the next plugin I was planning on writing but I haven't had the time to work on it yet. Is there any chance you could add this feature to your plugin?

                                            Thanks!

                                            SketchUp Plugins for Professionals

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

                                            Advertisement