-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Two questions about path.js #645
Comments
Good question, in the absence of a reply from Dmitry for the mo, it looks related to this code here (at the bottom)...and them being Legendre-Gauss weights ? I can't pretend to understand that stuff though! Just trying to head you in the right direction. http://processingjs.nihongoresources.com/bezierinfo/sketchsource.php?sketch=cubicGaussQuadrature at |
I'm not sure I should ask though, why do you want to know ? :D |
@ibrierley just trying my luck on making the calculations more precise. |
Maybe if you go to https://pomax.github.io/bezierinfo/legendre-gauss.html#n18 and rather than select n = 12 (the one Snap uses), try n = 32 for example and copy the values for wi and xi eg at https://pomax.github.io/bezierinfo/legendre-gauss.html#n32 and then change the n value in the function to 32. I think Tvalues are abscissa and Cvalues anre weight...maybe |
Or there's a function at the top of that page, and rewrite for js (there's probably solutions out there already though). |
@ibrierley thanks you are right the problem occurs only in the other library |
I would like to know what this function does https://github.com/adobe-webplatform/Snap.svg/blob/master/src/path.js#L219-L237 and what are the
Tvalues
andCvalues
and how did you get them?The text was updated successfully, but these errors were encountered: