mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 14:18:12 +08:00
Add path-bool library (#1952)
* Add path-bool library * Cleanup code * Cargo format * Integrate boolean ops into graphite * Add test for editor crash * Fix edge sort floating point instability * Add unit test for red-dress failure * Backport tests and aux functions * Use curvature based sorting * Convert linear cubic splines to line segments * Deduplicate reversed path segments * Fix epsilon for empty segments * Remove parameter based intersection pruning * Add support for reversed paths * Add benchmark infrastructure * Add intersection benchmark * Add recursion bound * Implement support for overlapping path segments * Remove rouge prinln * Fix sorting for bezier segments with one control point at the start of the segment * Cleanup log statements * Directly translate graphite paths to Path segments * Round data before passing it to path_bool * Fix flag_faces traversal order * Add test for white dots in bottom right of painted dreams * Make rounding configurable * Update demo artwork to remove manual path modifications * Convert from path segments to manipulator groups directly * Remove dead code * Fix clippy lints * Replace functions in path segment with methods and add documentation * Add more documentation * Close subpaths * Reorganize files and add README.md * Add license information * Code review * Fix license info * Adopt new node macro and fix demo artwork * Close subpaths with Z --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
2febbfd698
commit
3eb98c6d6d
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" version="1.1" id="svg1" xmlns="http://www.w3.org/2000/svg">
|
||||
<path style="fill:#ff0000;stroke:#000000;stroke-width:1.99937;stroke-linecap:round;stroke-linejoin:round" d="M 14.314589076583,18.409740195297 C 7.797995453063,14.345008949191 2.730539600000,24.000000000000 2.730539600000,24.000000000000 L 2.730539600000,44.724138000000 L 44.927529000000,45.334642000000 L 44.927529000000,35.633492000000 C 44.927529000000,35.633492000000 41.145129754140,35.873208306637 36.734854405107,35.317706227323 C 36.228249102949,37.498838478371 35.714484924788,39.479436730837 33.683056000000,40.517855000000 C 30.630205000000,42.078400000000 28.832481000000,43.570706000000 23.829031000000,42.892295000000 C 18.825582000000,42.213883000000 14.890928000000,39.567814000000 16.858255000000,37.057890000000 C 18.825582000000,34.547967000000 21.539558000000,34.073278000000 22.421361000000,34.208761000000 C 23.132944869744,34.318091925773 25.700294654507,34.271124699473 27.841329774700,32.743507113304 C 23.074889249350,30.065439079942 21.683878964023,25.613693480134 17.965172692962,21.560526935797 C 17.573963395790,23.301491455620 17.222754443760,24.841159839246 17.061977000000,25.457321000000 C 16.654864000000,27.017534000000 17.807964000000,27.137380000000 15.162226000000,29.256160000000 C 12.516645299334,31.374813030412 12.245222267819,38.142610192401 12.245190002877,38.143414928228 L 12.245193000000,38.143415000000 C 12.245192031654,38.143414214896 12.245191063309,38.143413429793 12.245190094964,38.143412644690 C 9.734938509310,36.108181000255 10.006236528989,36.108510612907 8.785228600000,32.512733000000 C 7.564220200000,28.916954000000 5.732046200000,27.627707000000 7.699704200000,25.524897000000 C 9.667362200000,23.422087000000 9.005844500000,22.540285000000 11.905987000000,20.640534000000 C 13.181190227505,19.805206705223 13.899012312978,19.140430517465 14.314589076864,18.409740195511"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
Reference in New Issue
Block a user