Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Why do we need ofSetPolyMode and when to use it?

$
0
0

@cuinjune wrote:

Hi, I'm curious in what circumstance, would one wants to use ofSetPolyMode(ofPolyWindingMode)

There are these modes,

OF_POLY_WINDING_ODD 	        ,
OF_POLY_WINDING_NONZERO         ,
OF_POLY_WINDING_POSITIVE        ,
OF_POLY_WINDING_NEGATIVE        ,
OF_POLY_WINDING_ABS_GEQ_TWO

I tested them and they have effect on some shapes (unclosed shapes mostly) but on more common shapes like rectangle, circle.. it didn't have any effect on the shape.

Could anyone please briefly explain when would I want to use it?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles