Intersections and SVG objects
Date : 2008 07 25 Category : Tech & DevelopmentKevin Lindsey has a suite of tests that show various intersection routines for SVG objects:
Each link allows you to manipulate the shapes listed. All intersections between the two shapes are updated as you manipulate the shapes. Some intersections display additional information when the shapes do not intersect. As an example, the circle-circle intersection determines if one circle is contained by the other circle.
It is important to note there are known problems with the Bezier-Bezier (any combination of quadratric and cubic) intersection routines. Incorrect intersections are reported when the control points use small values.
Here are a few:
Quadratic Bezier and Quadratic Bezier Quadratic Bezier and Cubic Bezier Quadratic Bezier and Circle Quadratic Bezier and Ellipse Quadratic Bezier and Line Quadratic Bezier and Polygon Quadratic Bezier and Rectangle Cubic Bezier and Cubic Bezier Cubic Bezier and Circle Cubic Bezier and Ellipse