-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support for Marlin G5 Cubic Bezier Spline #31
Comments
Hi, this project is a bit on pause at the moment. But I don't want to say no outright. But it's not a rasterization process, so it will probably start with the google query "bresenham bezier" here is a webpage http://members.chello.at/~easyfilter/bresenham.html cheers, |
Hello Nico,
On Thu, Nov 14, 2019 at 12:48:35AM -0800, Nicolas Raynaud wrote:
Hi, this project is a bit on pause at the moment.
Sorry to hear, because it seems quite useful to me.
One of the best online viewer I found so far.
But I don't want to say no outright.
Great!
I propose you tackle the the issue, and I will
support you until it's merged.
Fair enough, my main problem so far is finding the
code responsible for drawing and to recreate a local
version of your codebase.
That should be something you can help with easily :)
There is some Bezier code here:
https://github.com/nraynaud/webgcode/blob/gh-pages/webapp/cnc/maths/bezier.js .
But it's not a rasterization process, so it will
probably start with the google query "bresenham
bezier" here is a webpage
http://members.chello.at/~easyfilter/bresenham.html
I propose to re-use the code present in Marlin which
will not only handle the bezier curve but also the
segmentation into lines, which is probably the way
to go to get a good result for the preview ... please
correct me if I'm wrong here :)
Thanks in advance,
Herbert
… cheers,
Nico
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#31 (comment)
|
You probably will need to add a case to this
and add a type to COMPONENT_TYPES. Actually you will need to do the job twice, once in Bresenham to compute the stepper motor steps (and that give you the timing), and once in arc segments to compute the display. The display part is a map "code source line" -> "polyline" called |
It would be great to have support for the G5 command provided by the Marlin Firmware (http://marlinfw.org/docs/gcode/G005.html)
Thanks in advance,
Herbert
The text was updated successfully, but these errors were encountered: