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 : https://processing.org/reference/PShape_beginContour_.html , and made a render.

This is the result : https://imgur.com/a/V4hHr

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

Regard

Answers

  • 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.