File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
node-graph/gpath-bool/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use graphene_core::vector::misc::{point_to_dvec2, transform_pathseg};
7
7
use graphene_core:: vector:: style:: Fill ;
8
8
use graphene_core:: vector:: { PointId , Vector } ;
9
9
use graphene_core:: { Color , Ctx , Graphic } ;
10
- use kurbo:: { ParamCurve , Point } ;
10
+ use kurbo:: { Affine , ParamCurve , Point } ;
11
11
pub use path_bool as path_bool_lib;
12
12
use path_bool:: { FillRule , PathBooleanOperation } ;
13
13
use std:: ops:: Mul ;
@@ -300,8 +300,7 @@ fn to_path_segments(path: &mut Vec<path_bool::PathSegment>, subpath: &Subpath<Po
300
300
let mut global_start = None ;
301
301
let mut global_end = Point :: ZERO ;
302
302
for bezier in subpath. iter ( ) {
303
- const EPS : f64 = 1e-8 ;
304
- let transformed = transform_pathseg ( bezier, |pos| transform. transform_point2 ( pos) . mul ( EPS . recip ( ) ) . round ( ) . mul ( EPS ) ) ;
303
+ let transformed = Affine :: new ( transform. to_cols_array ( ) ) * bezier;
305
304
let start = transformed. start ( ) ;
306
305
let end = transformed. end ( ) ;
307
306
if global_start. is_none ( ) {
You can’t perform that action at this time.
0 commit comments