sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    Calculating bezier curve smoothness?

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 554 Views
    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.
    • thomthomT Offline
      thomthom
      last edited by

      Anyone got an idea on how to calculate the number of segments a bezier curve needs in other to ensure a given smoothness? (Max angle between each edge segment.)

      ❓

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

      1 Reply Last reply Reply Quote 0
      • mitcorbM Offline
        mitcorb
        last edited by

        Hi, thomthom:
        I have returned to this post several times trying to start a reply. I am not qualified to even provide the beginning of an answer. But I can see several questions that might need to be considered. And I think I am pathologically inclined to try to help. 😄
        Would the degree depend on the final view? I mean how far "away" will you view the object?
        Or, how smooth is smooth enough?
        Or, 130 degrees?
        If a Bezier curve, let alone a Bezier surface, is adjustable/editable, couldn't this action remove the smoothness you have already established?

        I take the slow, deliberate approach in my aimless wandering.

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

          @mitcorb said:

          Or, how smooth is smooth enough?

          User spesified. The user defines what the maximum angle between edges are which can be considered smooth.

          @mitcorb said:

          If a Bezier curve, let alone a Bezier surface, is adjustable/editable, couldn't this action remove the smoothness you have already established?

          I'm trying to contemplate an automatic segment adjustment based on how smooth the user wants the curve. An alternative to manually setting the segment count.

          @mitcorb said:

          I mean how far "away" will you view the object?

          Unknown.

          @mitcorb said:

          Would the degree depend on the final view?

          Not in this case. It is something I've also considered, adjustment according to the view, but right now I'd just like to work out how many segments a bezier curve need in order to ensure a minimum smoothness based on the angles between the line segments.

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

          1 Reply Last reply Reply Quote 0
          • mitcorbM Offline
            mitcorb
            last edited by

            The first person that comes to mind regarding this is Fredo6. -but there may be others.

            I take the slow, deliberate approach in my aimless wandering.

            1 Reply Last reply Reply Quote 0
            • PixeroP Offline
              Pixero
              last edited by

              Not sure if this is what your after. Still it might be useful info:
              http://www.antigrain.com/research/adaptive_bezier/index.html

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

                @pixero said:

                Not sure if this is what your after. Still it might be useful info:
                http://www.antigrain.com/research/adaptive_bezier/index.html

                That looks very interesting. I quickly scanned it and it seems to be what I'm looking for. He describe the issues with bezier curves I wanted to deal with.
                👍

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

                1 Reply Last reply Reply Quote 0
                • mitcorbM Offline
                  mitcorb
                  last edited by

                  Check his updates at the end of the article also.

                  I take the slow, deliberate approach in my aimless wandering.

                  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