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

create svg middle path #2096

Open
cyber-ai-dep opened this issue Mar 20, 2025 · 1 comment
Open

create svg middle path #2096

cyber-ai-dep opened this issue Mar 20, 2025 · 1 comment

Comments

@cyber-ai-dep
Copy link

I have two SVG files, one of which contains an outline-like path, where each closed shape is represented as a single continuous path. I want to generate a new path that accurately follows the centerline of each shape and fills it accordingly. The desired result should match the red path shown in the reference image. Do you have any suggestions for achieving this automatically using software applications or by writing a custom program?

Image

@GreLI
Copy link
Member

GreLI commented Mar 25, 2025

It's actually a hard enough math problem. I'm not sure whether it solved anywhere. Perhaps something like shrink path by value (somehow found) in some editor may help, but that can lead to unexpected result. Basically, one need to redraw the image, maybe with the help of some tools.

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

No branches or pull requests

2 participants