I'm trying to find a way to calculate the intersection between a b-spline and a straight line. So far Google hasn't been much help.
相关问题
- How to plot line in matlab with theta/rho data
- Evaluating 3d splines exported from max in a C++ p
- Computing unique intersections of subsets
- Unity Intersections Mask
- Get last li on a line jQuery
相关文章
- D3.js - detect intersection area
- Adb install progress bar
- Drawing a straight line iOS
- Match if previous line starts with character
- Determine if two lines intersect
- CGAL - custom 2D point and intersection behavior i
- Efficient all-pairs set intersection on GPU
- How to get the spline basis used by scipy.interpol
The most efficient algorithm that I've heard of is called Bezier clipping.
Here's a book chapter on curve and spline intersection (pdf).
Your best approach might be to break down your spline into individual line segments and test each line segment for intersection with the line. The spline may intersect the line in more than one point, so you'll also have to decide which one you're interested in.
A pure mathematical approach:
If this is the way you are going I can work out the necessary formulas.