Commit Graph

15 Commits

Author SHA1 Message Date
Gabriel Wicke
cc84287515 Path: Opt into automatic git newline normalization
Avoid spurious diffs from inadvertent newline changes by letting git
normalize newlines in the path module as well, just as a list of other
modules including Draft already do.

This effectively standardizes all checked-in code to Unix newlines, but
checkouts might use CRLF if that is the user preference.
2020-05-31 08:33:29 -07:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
Unknown
3df389f5f2 PATH: typo fixes 2017-12-23 14:27:25 +01:00
Zheng, Lei
7249365823 libarea: disable max arc points parameter
It is soly used to limit excessive arc accuracy used by ClipperLib, and
seems to have some negative effect. We disabled it here, and simply rely
on user to choose a sensible arc 'accuracy' parameter.
2017-11-30 11:59:10 +08:00
Zheng, Lei
1094dcb47b libarea: fixed open curve clipping 2017-04-23 19:15:19 -03:00
Mateusz Skowroński
7e42975556 Fix more GCC warnings. 2017-02-18 09:35:31 +01:00
Zheng, Lei
a3f46a40e9 Path: added Path.fromShapes and Path.sortWires
* Path.fromShapes can now convert any number of shapes to Path with
optimzied travel distances. It internally uses Path.sortWires to
minimize travel distances, and also sort wires by its Z height in case
of sectioned wires.

* The above python function is impelmented in Path::Area class.

* Path::FeatureShape is rewrote to take advantage of these two
functions.

* Add Path::FeatureAreaView to partially display a Path::FeatureArea's
sections.
2017-01-27 17:13:16 +08:00
Zheng, Lei
a79013e7f3 libarea: added CArea::Clip to handle open wires
CArea::Clip enables ClipperLib open wire boolean operation as well as
other settings (PolyFillType) for closed wires.
2017-01-19 19:03:59 +08:00
Zheng, Lei
9cf075a806 libarea: added OffsetWithClipper function
Also added a few extra setting variables.

OffsetWithClipper perform offset operation using
ClipperLib::ClipperOffset.
2017-01-19 18:58:09 +08:00
wmayer
6be9ee87ea + fix many warnings in libarea using MSVC 2016-06-14 11:04:19 +02:00
sliptonic
a02d704d0a Updated libarea with changes from Heeks/libarea 2016-06-11 10:51:27 -05:00
Eivind Kvedalen
cbee95494e Mod/Path: Removed -Wunused-function warnings. 2015-09-11 15:13:58 +02:00
wmayer
86a7ed44e0 + fix various warnings with VC++ 2015-09-01 12:50:10 +02:00
Dan Falck
98a32d7982 added BSD license, removed shared lib for C++ 2015-07-23 23:17:15 -03:00
Dan Falck
797a6f1ddb initial add of libarea files 2015-07-23 23:17:15 -03:00