math-comp / trajectories

0 stars 4 forks source link

Provide an algorithm for collision of Bezier curves with a set of segments #31

Open ybertot opened 1 year ago

ybertot commented 1 year ago

Input:

Output: a list of pairs of a straight-line segment and an elementary Bezier curve, where potential collision has been detected.

The correctness will be stated in the following fashion: if the output list is empty, there is no intersection between any of the elementary segments and any of the straight-line segments.

How it works: for every straight-line segment and every elementary Bezier curve in the input:

Possible refinement:

If the obstacles have been preprocessed in a vertical cell decomposition, there should be a way to reduce the number of pairs that need to be considered.