Live data from Hacker News

Bezier-rs – algorithms for Bézier segments and shapes

graphite.rs

1–10 of 57 posts

Re: Bezier-rs – algorithms for Bézier segments and shapes

#2
I'm hoping to code Bezier animation in OCaml/F# in four dimensional space time, with a moving vantage point. Offload rendering each time slice frame to worker threads.

I'm surprised Bezier-rs is all about curves. Sure, fonts, but I can't be alone here in seeing curves as a special case.

It's easy as a pure mathematician to write off Bezier theory as "specialized" but it's simply the right way to work with polynomials on a simplex.

Re: Bezier-rs – algorithms for Bézier segments and shapes

#5

Very neat. I'm not sure if I missed it, but is there any way to get n equidistant points on the curve? E.g. for moving an object at constant speed along the curve.

There is indeed: Bezier::compute_lookup_table[1]. You'll want to use a `TValueType` of `Euclidean` to get equidistant points.

[1]: https://docs.rs/bezier-rs/latest/bezier_rs/struct.Bezier.htm...

Re: Bezier-rs – algorithms for Bézier segments and shapes

#10
Almost even more interesting is the Bezier Boolean-Operations lib they use (it’s a rewrite of Pathbool.js (https://github.com/r-flash/PathBool.js) in Rust)

https://github.com/GraphiteEditor/Graphite/tree/master/libra...

There’s not a ton of robust curve boolean libs out there that aren’t just part of some huge package of tools. This is the only one I know of that isn’t Js.

(Edit: added a link)

Post reply on HN