sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Possible new drawing tool >> Fred06

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 5 Posters 1.4k Views 5 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.
    • JClementsJ Offline
      JClements
      last edited by

      The new "Spiro" drawing tool is in development for Inkscape.

      404 Error

      favicon

      (screencasters.heathenx.org)

      It creates very fluid, contiguous, round curves. I imagine this could be useful for landscape architects.
      If possible to create such a script it would be a nice function to have along side your bezier and b-spline rubies.

      John | Illustrator | Beaverton, Oregon

      1 Reply Last reply Reply Quote 0
      • I Offline
        ilay7k
        last edited by

        thank you!

        1 Reply Last reply Reply Quote 0
        • fredo6F Offline
          fredo6
          last edited by

          John,

          I have already seen a similar request from Matt666, but he mentioned the feature was present in Autocad, based on just chaining arc of circles.
          See http://escargot-archi.eu/forum/viewtopic.php?t=2661 (it is in French, but there are self-explanatory pictures)

          The Spiro function of Inkscape seems more sophisticated however.

          Attached are two files implementing the Arc of Circle method, adpated to 3D. I called it Courbette.
          courbette.jpg
          Just drop the icon and the scriptlet in the BZ_Dir folder and restart Sketchup.

          Note that the 'Precision' parameteris a number of segments for a fullcircle (not the arc), which usually is 24 (default value). I just performed a quick correction to avoid having too many or too less intermediate points, based on the pixel precision on screen (so if you zoom, you get more arc points). As a standard function of BezierSpline, you can of course edit the curve or convert a Polyline into a Courbette (via the contextual menu).

          Finally, on the picture, I compared the results of CubicBezier and Courbette, and I must say that (at least on the example), CubicBezier makes it smoother. But there might be other situations where Courbette is more appropriate (I guess for spirals).

          Fredo

          [Edit, 27 Jan 08 - 18:10]There was a minor issue with the default precision (set to 0), which was preventing to optionally close the Courbette via a Bezier curve. Fixed in current version.


          to drop in the BZ_Dir folder


          to drop in the BZ_Dir folder

          1 Reply Last reply Reply Quote 0
          • JClementsJ Offline
            JClements
            last edited by

            Thank you Fredo!

            John | Illustrator | Beaverton, Oregon

            1 Reply Last reply Reply Quote 0
            • fredo6F Offline
              fredo6
              last edited by

              Thanks for the thanks.
              It might be useful for iron works, because it typically draws the kind of spirals you usually find in defense grids.
              spirale.jpg
              But it is much less appropriate to follow a defined contour, due to the high sensitivity created by the constraint to have portions made of circle arcs (just watch what happen by slightly changing one control point).
              EditCourbette.jpg
              In addition, it is not symetrical, that is, when you edit a control point, it will change the whole shape following that control point, but not on the portion before.

              Conclusion: The Spiro feature of Inkscape is based on something much smarter.

              If someone has an idea around Spiro, thanks

              Fredo

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

                Link Preview Image
                Spiro

                favicon

                (libspiro.sourceforge.net)

                LibSpiro is an Open Source implimentation of the Spiro algorithm. It should be possible to see how it all works from the example / source code.

                Also... http://www.levien.com/spiro/ is the site of the inventor.

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

                  Excellent !!!!

                  Thank you so much Fredo !!! ☀

                  Frenglish at its best !
                  My scripts

                  1 Reply Last reply Reply Quote 0
                  • fredo6F Offline
                    fredo6
                    last edited by

                    @ampa said:

                    Link Preview Image
                    Spiro

                    favicon

                    (libspiro.sourceforge.net)

                    LibSpiro is an Open Source implimentation of the Spiro algorithm. It should be possible to see how it all works from the example / source code.

                    Also... http://www.levien.com/spiro/ is the site of the inventor.

                    I had a quick look, but it is very complex to understand, and I guess to reproduce. And the theory underneath is quite abstruse, based on clothoids (curves to make highway junctions), holonomic curves, and other nice mathematical theory, which however were all set out by mathematians from the 18th century (bernouilli, Euler, Fresnel, and others).

                    So if someone wants to give it a try....and then publish it as an extension of BezierSpline!!

                    As a consolation, I just realize that the Courbette allows to draw an arc of circle between 2 points which also includes a 3rd point.

                    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