Title: (feat) Hobby Splines by cuttlefisch · Pull Request #209 · SolidCode/SolidPython · GitHub
Open Graph Title: (feat) Hobby Splines by cuttlefisch · Pull Request #209 · SolidCode/SolidPython
X Title: (feat) Hobby Splines by cuttlefisch · Pull Request #209 · SolidCode/SolidPython
Description: Goal Implement Hobby Splines inspired by Jake Low's post Hobby’s algorithm for aesthetic Bézier splines that "render down" to bezier curves. Functionality Use hobby_point function to create a list in the form of [Knot, Control Control, Knot,... ] representing knots and controls for bezier curves defined using hobby's algorithm. Control whether curves are open or closed using the close_loop boolean. The curve from the last knot point to the first is generated regardless of close_loop so that the tangents at the first and last knot point are those of the closed hobby spline; this helps keep the curves round and aesthetic. To generate the resulting hobby points the final segment of the curve is set to the closed loop curve is appended if the curve is closed, otherwise only the final point is appended. Changes Add hobby_points function to splines in order to generate bezier curves following Hobby's algorithm. Add new example file hobby_splines_example.py with open & closed hobby splines & their polygon projections Add tests for hobby_points to test_splines.py for open hobby splines using bezier_controls in raw, Point2, and Point3 forms Examples Create hobby curve examples by running hobby_splines_example.py. Testing Test changes using test_splines.py.
Open Graph Description: Goal Implement Hobby Splines inspired by Jake Low's post Hobby’s algorithm for aesthetic Bézier splines that "render down" to bezier curves. Functionality Use hobby_point function to...
X Description: Goal Implement Hobby Splines inspired by Jake Low's post Hobby’s algorithm for aesthetic Bézier splines that "render down" to bezier curves. Functionality Use hobby_point...
Opengraph URL: https://github.com/SolidCode/SolidPython/pull/209
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d4a949ac-cc49-dc4f-6dfd-c9b068855583 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B380:2595C:474D8B:64B420:696F82D7 |
| html-safe-nonce | 706ccf9adc1c2139d2fcb48b4c117b395b37246547cc1246e5ef09454df30c92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzgwOjI1OTVDOjQ3NEQ4Qjo2NEI0MjA6Njk2RjgyRDciLCJ2aXNpdG9yX2lkIjoiNjM5OTczODg4NzU3OTU5OTU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e237f81ecdf114893094f238d20fd5d3aee2c3da2c56b696d3334ddbc5fcd86 |
| hovercard-subject-tag | pull_request:1864416862 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/SolidCode/SolidPython/pull/209/checks |
| twitter:image | https://avatars.githubusercontent.com/u/33015950?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/33015950?s=400&v=4 |
| og:image:alt | Goal Implement Hobby Splines inspired by Jake Low's post Hobby’s algorithm for aesthetic Bézier splines that "render down" to bezier curves. Functionality Use hobby_point function to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c1b02b4e3a8edff2fe0bd71b0551654be66034591c7ab65aaaaf61a6096862d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/SolidCode/SolidPython git https://github.com/SolidCode/SolidPython.git |
| octolytics-dimension-user_id | 622839 |
| octolytics-dimension-user_login | SolidCode |
| octolytics-dimension-repository_id | 1377446 |
| octolytics-dimension-repository_nwo | SolidCode/SolidPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1377446 |
| octolytics-dimension-repository_network_root_nwo | SolidCode/SolidPython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a1073fcc34432ac33cec03885ff2d96920686de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width