Current NURBS evaluation handles corners or sharp angles poorly. Sharp edges appear when a knot vector value is repeated `order - 1` times. Users can make sharp corners by creating NURBS curve with `Bezier` knot mode or by setting `order` to 2 for legacy curves. The problem occurs because current algorithm takes all the curve's definition interval, divides it into equal parts and evaluates at those points, but corners are exactly on repeated knot's. To hit those, the resolution has to be increased higher than required for the rest of the curve. The new algorithm divides non zero length intervals between two adjacent knots into equal parts. This way corners are hit with a resolution of 1. This does change the evaluated points of NURBS curves, which is why some test results have to be updated in this commit. Pull Request: https://projects.blender.org/blender/blender/pulls/138565
4 lines
131 B
Plaintext
4 lines
131 B
Plaintext
version https://git-lfs.github.com/spec/v1
|
|
oid sha256:f3cc276cb772ecef16c332de06fce6c5bfc577fabdea07a8d3b6293f8727bdfe
|
|
size 321069
|