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

Engraving algorithms - Voronois and medials #25

Open
voneiden opened this issue Apr 26, 2023 · 2 comments
Open

Engraving algorithms - Voronois and medials #25

voneiden opened this issue Apr 26, 2023 · 2 comments
Labels
feature Achievement unlocked: Million dollar idea op:engrave Operation: Engrave

Comments

@voneiden
Copy link
Owner

One way to approach engraving with a v-bit is to generate voronoi diagrams and medials to determine the path one should take in order to engrave a shape.

One option: https://trimsh.org/trimesh.path.polygons.html#trimesh.path.polygons.medial_axis

FreeCAD uses a custom version of OpenVoronoi AFAIK. The original OpenVoronoi is a no go as it is windows only AFAIK. Backporting FreeCADs implementation would probably be too much work.

Read more @ http://www.anderswallin.net/category/cnc/cam/openvoronoi/

@voneiden voneiden added feature Achievement unlocked: Million dollar idea op:engrave Operation: Engrave labels Apr 26, 2023
@voneiden
Copy link
Owner Author

voneiden commented May 7, 2023

Definitely pretty tricky stuff, but voronoi can be used to find the largest circle that fits inside a polygon. That is definitely useful information for helical plunging.

image

@voneiden
Copy link
Owner Author

voneiden commented May 7, 2023

trimesh kinda works, but isn't very fast and uses evenly spaced approximation
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Achievement unlocked: Million dollar idea op:engrave Operation: Engrave
Projects
None yet
Development

No branches or pull requests

1 participant