• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Crack showing between polygons

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying to draw 2 quadrilatrials, that share 2 corners and an egde.

I also want to smooth edges, so I use ANTIALIASING turned on, but this has the effect of showing a crack between the polygons.
The crack dissapears if I turn off ANTIALISAING, but I really don't want to do that.
Is there any way around this (without moving the corner points a pixel or two to hide the gap) ??

Code is shown below

Class Main
------------


class Drawer
---------------



 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way around this

Calling both fillPolygon and drawPolygon may take care of it.
 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I tried that before but it didn't help much.

But I tried it again using VALUE_STROKE_PURE, and that fixes it, so I'll go and try it out on chess pieces now, thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic