Skip to content
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

fixed bounding box calculation for cubic beziers #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marco-langer
Copy link
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