Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 10

Thread: Smoothing the dges of a polygon

Hybrid View

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    162

    Smoothing the dges of a polygon

    Click image for larger version. 

Name:	boundary.jpg 
Views:	184 
Size:	5.8 KB 
ID:	1032

    Hello every body, I have a polygon consisting of 26 points as shown in the figure. i would just like to smoothen the edges. Could you suggest me some simple way to do it? Thanks in advance.

  2. #2
    Member Regular Contributor
    Join Date
    Jan 2011
    Location
    Paris, France
    Posts
    250
    @+
    Yannoo

  3. #3
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    17
    Sounds like a Google question to me. Just divide the edges at their midpoints and connect them.

  4. #4
    Junior Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    187
    Quote Originally Posted by sevenfold View Post
    Sounds like a Google question to me. Just divide the edges at their midpoints and connect them.
    If that's all you do the polygon would look exactly like it does now.
    You'd have to take those midpoints and 'push' them outward.
    The question is 'How far outward do you push them'?

  5. #5
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    17
    Quote Originally Posted by Carmine View Post
    If that's all you do the polygon would look exactly like it does now.
    You'd have to take those midpoints and 'push' them outward.
    The question is 'How far outward do you push them'?
    You don't have to "push out" the edges. The process of subdivision makes them smoother. You're adding more points to the shape to make it smoother. Just keep on subdividing the edges by their midpoints until it looks smooth.

  6. #6
    Junior Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    187
    Quote Originally Posted by sevenfold View Post
    You don't have to "push out" the edges. The process of subdivision makes them smoother. You're adding more points to the shape to make it smoother. Just keep on subdividing the edges by their midpoints until it looks smooth.
    I didn't say 'push out the edges', I said push out the midpoints of each divided segment as below ...

    Click image for larger version. 

Name:	splitsegs.jpg 
Views:	114 
Size:	47.7 KB 
ID:	1037

  7. #7
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    162
    Thank you all for the suggestion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •