Skip to content
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

Open
herbertp opened this issue Nov 6, 2019 · 3 comments
Open

Feature Request: Support for Marlin G5 Cubic Bezier Spline #31

herbertp opened this issue Nov 6, 2019 · 3 comments

Comments

@herbertp
Copy link

herbertp commented Nov 6, 2019

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

@nraynaud
Copy link
Owner

Hi, this project is a bit on pause at the moment. But I don't want to say no outright.
I propose you tackle the the issue, and I will support you until it's merged. 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

cheers,
Nico

@herbertp
Copy link
Author

herbertp commented Nov 14, 2019 via email

@nraynaud
Copy link
Owner

You probably will need to add a case to this if here:

function fragmentListener(fragment) {

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 lineSegmentMap (you can search across the code base) so that when you click on a line in the code, it higlights it in the 3D view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants