SVG:简化路径以删除曲线?
我有一个 svg 文件,其中包含带有贝塞尔曲线的复杂路径。 我需要转换此路径数据以将其用于 html 地图区域,所以实际上我只需要坐标(但对于大曲线,在两个端点之间有一些坐标会非常好。
我尝试了 Inkscape 的简化路径功能,但这些路径仍然包含曲线...
是否有任何工具或公式可以将这些曲线转换为简单坐标?
也许是另一种在坐标中不使用曲线的 Inkscape 输出格式?
I have a svg file which contains complex paths with bezier curves in it.
I need to convert this path-data to use it for html map-area's, so I in fact I need just the coordinates (but for large curves, it would be very nice to have some coordinates 'between' the two end-points.
I tried Inkscape's simplify path function, but those paths still contain curves...
Is there any tool or formula to convert these curves into simple coordinates?
Maybe another Inkscape output-format that doesn't use curves in its coordinates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 Inkscape 中:
这些选项位于顶部的工具栏上 - 加号图标和两个方形节点之间的直线对角线。
In Inkscape:
These options are on the toolbar at the top - the plus icon and the straight diagonal line between two square nodes.
对于自动化,请尝试 Inkscape 中包含的
Flatten Bezier
扩展。说明此处。For automation, try the included
Flatten Bezier
extension in Inkscape. Description here.有更多技术方法可以简化 SVG 路径 - https://github.com/mattdesl/simplify-path< /a>
There is more technical way to simplify SVG path - https://github.com/mattdesl/simplify-path