ScratchData LogoScratchData
Back to Flash_Programmer's profile

Bezier Tools

FLFlash_Programmer•Created May 24, 2022
Bezier Tools
3
2
14 views
View on Scratch

Instructions

A tool for my bezier curve fitter (use the mouse and click around) This project finds the closest point on a quadratic bezier curve to a given point in space. It doesn't use anything clever it literally just iterates N number of times and then picks the T value that was closest. Could and should be optimized (using bezier derivative and normal vector such that the direction vector of p - B(t) = direction vector perpendicular to B'(t)) I did the calculations for this and it's a pretty difficult problem but anyone is welcome to try at the link inside

Description

I'm making a bezier curve fitter and this tool is used to measure the accuracy of a given curve to a list of points (by calculating the distance of the points to the curve cumulatively) Might expand to other orders of bezier curves, but probably not unless I find a more elegant method

Project Details

Project ID695527427
CreatedMay 24, 2022
Last ModifiedSeptember 25, 2022
SharedJune 10, 2022
Visibilityvisible
CommentsAllowed