-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Shapes with 3 vertices in webgl mode are always closed #7379
Comments
hey, i would like to work on this issue. As I am a newcomer in the open source, i will try to get a boost in my confidence by solving this issue. |
Hi! Thanks for taking a look at this. Unfortunately I do not have permission to assign the issue on GitHub. As a p5/GitHub noob I'm not sure how to proceed so I'll follow your suggestions.
Cheers,
Fran
EDIT - I only glanced at your reply to this issue as I read your reply to my other issue first. So I missed the fact that you too are new to making contributions to open source projects. When I have a moment, I could try to find out what to do but do feel free to tell me how to proceed if you find out first. I have been getting a lot of confidence from my first project using p5 and I hope you do too.
…On Tue, 26 Nov 2024 at 10:40, rishabhs-rizz ***@***.***> wrote:
hey, i would like to work on this issue. As I am a newcomer in the open
source, i will try to get a boost in my confidence by solving this issue.
|
@rishabhs-rizz - The help page Assigning issues and pull requests to other GitHub users states that "Anyone with write access to a repository can assign issues and pull requests." ie not me! I guess we'll just have to wait for for a project maintainer to look at the issue. |
Thanks for noticing this issue! So the problematic code is also a piece that is being currently refactored for the upcoming 2.0 release, the code for which is on the The offending code, I think, is this bit here, that converts to TRIANGLES mode if there are just 3 points for the sake of speed: p5.js/src/webgl/ShapeBuilder.js Lines 69 to 76 in be504ea
We maybe just need to add an extra condition to this if statement to only do this optimization if If you're up for that @rishabhs-rizz, I can assign this to you! |
I am totally up for this, it will surely take some time but i assure you I'll solve it. @davepagurek |
Awesome, thanks! I'll assign this to you. |
@davepagurek sir, i am facing an issue in dev-2.0 branch. when i am running "npm run dev:global" command this is getting showed how can I see the changes i made, |
If you edit the sketch in |
Most appropriate sub-area of p5.js?
p5.js version
1.11.1
Web browser and version
Firefox 132.0.2 / Edge 130.0.2849.80
Operating system
Windows 11 Home / Pro
Steps to reproduce this
Steps:
1.Run the following code (p5 editor). The triangle at the top-left of the canvas should be an L-shaped corner but has been closed even though
endShape()
is called without theCLOSE
constant.2.To see the desired result, change the value of the
webgl
variable in line 1 to false and run the code again.Snippet:
The text was updated successfully, but these errors were encountered: