1
1
/* ******************************************************************************
2
2
* Author : Angus Johnson *
3
- * Date : 12 February 2023 *
3
+ * Date : 22 March 2023 *
4
4
* Website : http://www.angusj.com *
5
5
* Copyright : Angus Johnson 2010-2023 *
6
6
* Purpose : This module exports the Clipper2 Library (ie DLL/so) *
@@ -361,7 +361,8 @@ EXTERN_DLL_EXPORT CPaths64 InflatePaths64(const CPaths64 paths,
361
361
ClipperOffset clip_offset ( miter_limit,
362
362
arc_tolerance, reverse_solution);
363
363
clip_offset.AddPaths (pp, JoinType (jointype), EndType (endtype));
364
- Paths64 result = clip_offset.Execute (delta);
364
+ Paths64 result;
365
+ clip_offset.Execute (delta, result);
365
366
return CreateCPaths64 (result);
366
367
}
367
368
@@ -375,7 +376,8 @@ EXTERN_DLL_EXPORT CPathsD InflatePathsD(const CPathsD paths,
375
376
ClipperOffset clip_offset (miter_limit, arc_tolerance, reverse_solution);
376
377
Paths64 pp = ConvertCPathsD (paths, scale);
377
378
clip_offset.AddPaths (pp, JoinType (jointype), EndType (endtype));
378
- Paths64 result = clip_offset.Execute (delta * scale);
379
+ Paths64 result;
380
+ clip_offset.Execute (delta * scale, result);
379
381
return CreateCPathsD (result, 1 /scale);
380
382
}
381
383
0 commit comments