News for hackers. Stuff that matters.
Re:Deconstructing Bézier Curves by 082349872349872 on Tuesday August 16, 2022 @05:27AM (#32480800)
The "Concrete use case: intersecting ray" section implies that it might be reasonable to do logical ops by first intersecting each Bézier-represented curve against the segment-representation of the other, then stitching together the Bézier-represented boundaries of what remains. (with the last step made fiddly by the fact that calculated intersection points of A with Segments(B) are likely to only be "reasonably close" to intersection points of Segments(A) with B)
Re:Deconstructing Bézier Curves by yorwba on Tuesday August 16, 2022 @05:44AM (#32480880)
No need to use the segments. Just as you can compute straight line-Bézier intersections by setting them equal and solving the resulting equation, you can compute Bézier-Bézier intersections by setting them equal and solving the resulting equation.