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

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.
  • T Offline
    thomthom
    last edited by 5 Mar 2011, 14:07

    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
    • M Offline
      mitcorb
      last edited by 5 Mar 2011, 17:14

      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
      • T Offline
        thomthom
        last edited by 5 Mar 2011, 17:46

        @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
        • M Offline
          mitcorb
          last edited by 5 Mar 2011, 18:38

          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
          • P Offline
            Pixero
            last edited by 6 Mar 2011, 07:26

            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
            • T Offline
              thomthom
              last edited by 6 Mar 2011, 16:27

              @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
              • M Offline
                mitcorb
                last edited by 6 Mar 2011, 16:29

                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
                1 / 1
                • First post
                  5/7
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement