Does the contour of PShape is broken ?

edited January 2018 in Questions about Code

Hello, I'm trying to draw a PShape with a hole inside, and I get a weird result, so I copypasted the example from there : , and made a render.

This is the result :

It looks like it ignores the begincontour and endcontour functions.

Is it broken, or I misunderstood how contour works ?

if it is broken I will do a report on github



  • Answer ✓

    The exterior shape and the interior contour must wind in opposite directions.

    Is that the case in your code?

  • No, it works now for my code,thanks :)

Sign In or Register to comment.