Timeline for How to decide granularity for sampling a bezier curve for rendetion
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 21, 2022 at 21:42 | vote | accept | Lenny White | ||
Jul 19, 2022 at 10:39 | comment | added | pmw1234 | Also note that the curvature rate $\kappa$ formula is slightly different for 2d and 3d. | |
Jul 19, 2022 at 10:37 | comment | added | pmw1234 | Also note how the evenly spaced t values tend to "bunch up" where acceleration is high, this means that a nicely subdivided t interval might be "good enough" to capture the curve. If anything the areas on the curve that are flat may tend to have too few points. | |
Jul 19, 2022 at 10:34 | comment | added | pmw1234 | Here is a video that explains the issues really well, about half way through she covers curvature, and curve length is covered at the end: youtube.com/watch?v=aVwxzDHniEw | |
Jul 19, 2022 at 3:30 | comment | added | Lenny White |
@pmw1234 Thanks I'll have to read through the arc approximation method but computing the rate of the curvature sounds like a great idea! However I wonder would you sample the rate (or I guess the first derivative) at specific intervals for t or how would you do it?
|
|
Jul 18, 2022 at 10:48 | comment | added | pmw1234 | Consider computing the rate of curvature of the curve. (there are lots of sources for this on the net) Where it is flat use less samples, where it is more curved subdivide and check the curvature again. Another approach is to do arc fitting which is described here: pomax.github.io/bezierinfo/#arcapproximation | |
Jul 18, 2022 at 8:41 | answer | added | Simon F | timeline score: 2 | |
Jul 16, 2022 at 22:13 | history | asked | Lenny White | CC BY-SA 4.0 |