Re: [fltk.general] Re: filled non-convex polygon disappears when rotated

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: filled non-convex polygon disappears when rotated Paul Hahn 08:03 Oct 24 top right image
 
On Saturday, October 24, 2020 at 9:24:24 AM UTC-5 Ian MacArthur wrote:
Actually... Thinking about this again... I wonder if you need to use fl_begin_complex_polygon & etc. rather than just fl_begin_polygon for concave shapes?

OK I just tried fl_begin/end_complex_polygon and it WORKS! Thanks!
 
ISTR that is maybe the case, as I think that's where the winding order comes into play.
It's been a while since I've tried this!
 
BTW my winding order is CCW. I can also go back and try CW winding order with the fl_begin/end_polygon and see if that works.

Probably I missed something in the doco about needing to use fl_begin/end_complex_polygon for this (rotated, concave, CCW) situation. But the interesting thing is that fl_begin/end_polygon did in fact work for this when the rotation angle was zero(???)

--
Ian
From my Fairphone FP3

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/ef496cda-f31a-4f51-9659-752e63b3222dn%40googlegroups.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.