sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] Recurve

    已排程 已置頂 已鎖定 已移動 Plugins
    68 貼文 24 Posters 45.2k 瀏覽 24 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • thomthomT 離線
      thomthom
      最後由 編輯

      Welcome to the forum and thanks for sharing. Very nice introduction. 😄

      Iæd just like to point out a post I made about context menu handlers: http://forums.sketchucation.com/viewtopic.php?f=180&t=31788
      Basically, iterating over every entity in a selection can add a significant lag when you have a larger selection set and it should be avoided so that SketchUp's context menu doesn't end up lagging several seconds.

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

      1 條回覆 最後回覆 回覆 引用 0
      • D 離線
        Diggsey
        最後由 編輯

        Thanks for the heads up about context menu handlers. I'll change it in the next update. I've added the ability to reverse curves but I'm still trying to fix some bugs. Somehow the curves are being split up which is weird...

        1 條回覆 最後回覆 回覆 引用 0
        • R 離線
          rock1
          最後由 編輯

          does this perform the same function as weld?

          Signature removed by SCF Admin

          1 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            @rock1 said:

            does this perform the same function as weld?

            yes and much more.

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

            1 條回覆 最後回覆 回覆 引用 0
            • D 離線
              Diggsey
              最後由 編輯

              Just updated the plugin to v1.1. See the first post for details and download.

              1 條回覆 最後回覆 回覆 引用 0
              • D 離線
                dedmin
                最後由 編輯

                I'm getting a bugsplat when trying to reverse a curve with more segments - like arc with 120 segments.

                1 條回覆 最後回覆 回覆 引用 0
                • D 離線
                  Diggsey
                  最後由 編輯

                  I've fixed the bug for large numbers of edges.

                  The algorithm used to use recursion to find a route through the edges and that cause a stack overflow. Now all the algorithms work using simple loops.

                  See the first post for v1.2

                  1 條回覆 最後回覆 回覆 引用 0
                  • D 離線
                    dedmin
                    最後由 編輯

                    @diggsey said:

                    I've fixed the bug for large numbers of edges.

                    The algorithm used to use recursion to find a route through the edges and that cause a stack overflow. Now all the algorithms work using simple loops.

                    See the first post for v1.2

                    Working fine now! Thanks!

                    1 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      dedmin
                      最後由 編輯

                      I noticed reversing an arc makes it curve - it is not arc anymore. Is that the way it works?

                      1 條回覆 最後回覆 回覆 引用 0
                      • D 離線
                        Diggsey
                        最後由 編輯

                        Yes, currently it only makes curves not arcs. The reverse curve command basically explodes the curve and then calls recurve on it in the opposite direction, so the arc information is lost in the process. I could try changing recurve so that it detects if the sequence of edges makes a perfect arc.

                        The problem is, there are some arcs that are almost impossible to recreate. If you create an arc and then draw a line through it, you get two arcs, neither of which can be drawn with the arc tool. Even changing the number of segments in them will change their shape irreversibly.

                        Alternatively, if there are SketchUp features which you need to use and only work on arcs, I could make them work with all curves.

                        1 條回覆 最後回覆 回覆 引用 0
                        • D 離線
                          dedmin
                          最後由 編輯

                          I see - thanks for the explanation. Just noticed this and wanted to be sure it is not a bug.

                          1 條回覆 最後回覆 回覆 引用 0
                          • thomthomT 離線
                            thomthom
                            最後由 編輯

                            @diggsey said:

                            Yes, currently it only makes curves not arcs. The reverse curve command basically explodes the curve and then calls recurve on it in the opposite direction, so the arc information is lost in the process. I could try changing recurve so that it detects if the sequence of edges makes a perfect arc.

                            why not just detect if you are exploding an arc?

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

                            1 條回覆 最後回覆 回覆 引用 0
                            • D 離線
                              Diggsey
                              最後由 編輯

                              That doesn't help solve the problem I mentioned though. The only way I know of to create an arc in sketchup is with Entities.add_arc, which is functionally equivalent to the arc tool. Arcs created by dividing another arc in two cannot be made this way. I would have to know the exact sequence of events which happened to create the arc in the first place to recreate it in the opposite direction.

                              1 條回覆 最後回覆 回覆 引用 0
                              • utilerU 離線
                                utiler
                                最後由 編輯

                                @dedmin said:

                                I see - thanks for the explanation. Just noticed this and wanted to be sure it is not a bug.

                                What is the difference? I thought an arc was a curve..... 😲

                                Just Curious...

                                1 條回覆 最後回覆 回覆 引用 0
                                • TIGT 離線
                                  TIG Moderator
                                  最後由 編輯

                                  An 'Arc' IS a 'Curve'... BUT a 'Curve' is NOT necessarily an 'Arc'...
                                  Also remember that 'Circles' [a special 'Arc' that's 360 degrees] and 'Polygons' are also types of 'Curve' - as is any bound-set-of-edges that has been made as a 'Curve' [e.g. a Bezier Curve or a 'Welded' Curve made from edges]...........

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • jeff hammondJ 離線
                                    jeff hammond
                                    最後由 編輯

                                    probably my oldest plugin request has finally happened 😄
                                    weld with no dialog boxes.

                                    a few suggestions (if you're open to it, of course)

                                    say i have two lines with an arc fillet connecting them and i'd like to make them all a single polyline (ie- something i do a lot with weld.rb), the recurve function won't work (or it doesn't appear in the context menu).. in order to recurve that scenario, i have to first explode the arc (or any polyline segments) prior to being able to recurve.

                                    it'd be nice if i could weld a combination of edges/lines with curves (or arcs,polylines,etc.. what ever you want to call them 😄) using recurve.

                                    there's also a bit of weirdness in there as far as 'select curve' goes.. using the same scenario as above, if i right click on the arc fillet then the 'select curve' option doesn't show up.. but, if i right-click on either of the lines then 'select curve' does show up and if i choose it, all parts including the arc will be selected.

                                    and taking that a step further, it'd be nice to have an option for 'select curve then recurve' (or whatever) so i could select a bunch of broken segments and weld them together in one operation..

                                    ultimately, this will definitely replace weld for me as my W shortcut and the last request would be assigned to ⇧W .

                                    thanks a bunch!

                                    dotdotdot

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • K 離線
                                      kyyu
                                      最後由 編輯

                                      @unknownuser said:

                                      probably my oldest plugin request has finally happened 😄
                                      weld with no dialog boxes.

                                      I never liked the 2 dialog boxes, either. Always answered "no". So I commented they out, in my modified version. 😎

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • M 離線
                                        mmscanlo
                                        最後由 編輯

                                        Super helpful, thanks for sharing 😄

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • utilerU 離線
                                          utiler
                                          最後由 編輯

                                          Thanks TIG.... 👍

                                          Just Curious...

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • D 離線
                                            Diggsey
                                            最後由 編輯

                                            Just updated the first post with update 1.3. It includes the changes suggested by Jeff.

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 4 / 4
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement