Convert an SVG-path to polygons for use within Javascript Clipper

后端 未结 2 680
长情又很酷
长情又很酷 2020-12-30 16:38

I\'m trying to perform Boolean Operations on SVG Paths (that contain beziers, both quadratic and cubic) using JS Clipper.

JS Clipper starts with polygons then perfor

2条回答
  •  自闭症患者
    2020-12-30 17:32

    you can use De Casteljau's algorithm to break bezier curve into smaller straight lines, and join them to create polygon.

    Here is some references of De Casteljau's algorithm

    • http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/Bezier/de-casteljau.html
    • http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/Bezier/de-casteljau.html

提交回复
热议问题