Skip to content

fixed bounding box calculation for cubic beziers#390

Open
marco-langer wants to merge 1 commit intoLibreCAD:masterfrom
marco-langer:fix-cubicbezier-bounding-box
Open

fixed bounding box calculation for cubic beziers#390
marco-langer wants to merge 1 commit intoLibreCAD:masterfrom
marco-langer:fix-cubicbezier-bounding-box

Conversation

@marco-langer
Copy link
Copy Markdown
Contributor

@marco-langer marco-langer commented May 23, 2022

The bounding box of the cubic Bézier curve does not contain the second and third control point.

See also the equivalent calculation for the bounding box of the quadratic Bézier curve, which does not contain the second control point.

A graphical interpretation can be found using the interactive tools from the Primer on Béziers. The extremal points of the curve in the interval [0.0, 1.0] are always enclosed within the bounding box of the four control points. If one adds all four control points to the calculation, there is no need anymore to find the roots of the first derivative (but the result will be incorrect).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant