* add some failing Arc.intersect(Arc) tests
* implementing Arc.intersect(Arc)
This commit adds special handling in Arc.intersect() when the other
segment is an Arc, and when both segments are circular and non-rotated.
This particular case is common, and quick and easy to solve algebraically.
This commit fixes the failing tests added in the previous commit.
* Added method is_contained_by to the Path class
* Adding a requirements.txt file
Signed-off-by: David Romero <dromero.fisica@gmail.com>
* Correcting tests of is_contained_by
* Fixed document.flatten_group(~) for nested groups and added a test
* Add space for PEP8 conformance
* Add documentation for document.get_group()
* Use group_search_xpath to be consistent and customizable
* Fix lexical mistake in comments
* Fix grammar mistake in comments
* add some tests of Path.area()
These tests currently fail because area() doesn't deal with Arc segments.
Fix in the following commit.
* make Path.area() approximate arcs
Fixes#37.
* Path.area(): fixup tabs/spaces for python3
* added asin to imports
* added asin to imports
* minor improvements to style, performance, and docstring
* Basic Svg_Io_Sax
* Update to binary write
* Fixed SaxSvg Load, tweaked test.
* Couple tweaks.
* Couple tweaks to fit the dom parser api better
* Switch to iterparse for speed
* Used None matrix for identity in default case.
* Test Update for None Matrix
* add Line.point_to_t() and tests
These tests don't print anything while they run, and they use use the
assert() helpers from the unittest module.
* add Arc.point_to_t() and tests
These tests don't print anything while they run, and they use use the
assert() helpers from the unittest module.
* add a bunch of failing arc/line intersection tests
This commit contains a bunch of failing arc/line intersections that I
and other people have run into.
These tests don't print anything while they run, and they use use the
assert() helpers from the unittest module where possible.
All these tests are fixed in the following commit.
* better implementation of Arc.intersect(Line)
Fixesmathandy/svgpathtools#35.
This commit fixes all the arc/line intersection test cases added in the
previous commit.
This implementation provides special handling in Arc.intersect() when
`self` is a non-rotated Arc and `other_seg` is a Line. In this case
it uses the straight-forward closed-form solution to identify the
intersection points.
Rotated Arcs and Arcs intersecting with non-Line objects still use
the pre-existing intersection code, that part is totally untouched by
this commit.
* add Line.point_to_t() and tests
* add Arc.point_to_t() and tests
* add a bunch of failing arc/line intersection tests
This commit contains a bunch of failing arc/line intersections that I
and other people have run into.
All these tests are fixed in the following commit.
* better implementation of Arc.intersect(Line)
Fixesmathandy/svgpathtools#35.
This commit fixes all the arc/line intersection test cases added in the
previous commit.
This implementation provides special handling in Arc.intersect() when
`self` is a non-rotated Arc and `other_seg` is a Line. In this case
it uses the straight-forward closed-form solution to identify the
intersection points.
Rotated Arcs and Arcs intersecting with non-Line objects still use
the pre-existing intersection code, that part is totally untouched by
this commit.