-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to create holes in a shape using begin and end contour #195
Comments
The tessellation part of p5py has been refactored. The newest version is not on p5py yet, but you can install from source to try it out! Screenshot for the same scene using baac189: Notice that the contour isn't automatically closed. I'll fix it in a future PR. |
Thanks, it works now. I saw this in the console, just FYI:
And the bezier function creates a split curve when the following coords are inputted "bezier((85, 20), (10, 10), (90, 90), (15, 80))"for the python p5 baac189 commit version, should I create a new issue or should I post it here? The point function is throwing an error, I will check if the issue has already been posted I am going through the entire 2D portion of p5 so expect more issues from me |
You are welcome!
Did a quick search and still not sure why this is happening... Probably a bug in PyOpenGL but I guess it's harmless if p5py can still run since we only use GLUTess from PyOpenGL and not anything else.
I think this is a separate bug so please open another issue. Thanks for finding this out!
Point rendering does seem to be broken as of now, and there has been a discussion in #186 on whether to rewrite it using the circle primitive.
Thank you so much for doing this! Feel free to drop me an email if you could use some help.
I don't think there are "must knows" about contributing to p5py. OpenGL knowledge is helpful, but there are still a lot of work that's either one or many abstraction levels higher than OpenGL. If there's something that you would like to change/discuss, feel free to open a PR/issue! |
Describe the bug
An error is thrown ( hence p5 stops working ) when there are 2 or more vertex function calls between begin_contour and end_contour.
To Reproduce
Run the above code
Expected behavior
![image](https://user-images.githubusercontent.com/34999259/87254900-bda2c400-c475-11ea-97bf-8a851d88a8c1.png)
A square that has a square hole in it is drawn.
Screenshots
![image](https://user-images.githubusercontent.com/34999259/87254839-4bca7a80-c475-11ea-9919-007cdf06534e.png)
If applicable, add screenshots to help explain your problem.
System information:
Additional context
The Error :
The text was updated successfully, but these errors were encountered: