Commit graph

89 commits

Author SHA1 Message Date
hkrish
52e6ad0f25 Make tests asynchronous like paperjs boolean op example 2013-05-12 22:47:52 +02:00
hkrish
17d356b117 Optimise 2013-05-12 22:14:41 +02:00
hkrish
8f33b7282f Plot run times 2013-05-12 22:09:20 +02:00
hkrish
a3ba8d062a Plot the run times 2013-05-12 19:47:41 +02:00
hkrish
abb4f2f494 All tests passing 2013-05-12 17:36:16 +02:00
hkrish
3037f764ee Avoid endless recursion 2013-05-12 17:33:45 +02:00
hkrish
810a3b6365 Add svgs for tests 2013-05-12 17:01:53 +02:00
hkrish
e0f0663615 All tests except the svg gears, are passing 2013-05-12 17:01:18 +02:00
hkrish
92b4e44dad if dmin or dmax does not intersect w/ c-hull reset to a very small value 2013-05-12 17:00:23 +02:00
hkrish
378dcb8461 Do a Curve-Line intersection if the curves are flat enough 2013-05-12 16:42:31 +02:00
hkrish
262331673a Tests for curve-line intersection 2013-05-12 15:59:24 +02:00
hkrish
fed2a73903 Curve - line intersection 2013-05-12 15:12:53 +02:00
hkrish
6064d73379 Avoid unnecessary recursion
Especially when this curve's extended fatline (infinite) intersects
with another curve ouside this curve's bounds.
2013-05-12 03:12:48 +02:00
hkrish
a26a2dbf0c Added getIntersections for Paths and CompoundPaths 2013-05-11 16:15:45 +02:00
hkrish
96e7e294ea Deleted files 2013-05-11 14:34:09 +02:00
hkrish
9c852ee3db More comments 2013-05-11 14:25:42 +02:00
hkrish
48ab34a116 Minor cleanup. 2013-05-11 14:15:38 +02:00
hkrish
483a43c887 Added more comments 2013-05-11 01:50:34 +02:00
hkrish
b914c60c6f Tests 2013-05-11 00:52:08 +02:00
hkrish
ac05de7426 Fatline clipping working now. Needs more tests! 2013-05-11 00:47:52 +02:00
hkrish
3e968eacf8 Intersect rewrite in progress.. 2013-05-10 20:46:07 +02:00
hkrish
910740d82d Subdivition: needs complete rewrite 2013-05-09 14:37:16 +02:00
hkrish
9b5723e902 Adding more tests 2013-05-05 17:45:29 +02:00
hkrish
0785af76ee Fat-line clipping. Needs more tests. 2013-05-05 17:45:06 +02:00
hkrish
fd30fa8427 Migrate Convexhull code to Intersect.js 2013-05-05 15:34:20 +02:00
hkrish
94d59d8330 Convex hull working 2013-05-05 15:24:47 +02:00
hkrish
c10f6373a4 convex hull code working 2013-05-05 15:18:09 +02:00
hkrish
f08bc9b752 convex hull progress 2 2013-05-05 14:50:09 +02:00
hkrish
f9bd295201 Convex hull for a simple quadrilatteral 2013-05-05 14:25:51 +02:00
hkrish
7075427619 Convex hull code in progress 2013-05-05 13:38:56 +02:00
hkrish
9b2488e738 old approach 2013-05-05 12:17:01 +02:00
hkrish
14c731edc0 Almost working. But needs a better solution that can handle multiple ixs 2013-05-05 12:15:18 +02:00
hkrish
979ef08043 Return whether to subdivide the surve further or not
Don't try to subdivide inside _clipFatLine! Taking a hint from
fatline.java. Which I probably should've done earlier!
2013-05-04 14:14:35 +02:00
hkrish
2f0bcfabd4 Subdivision doesn't work! rewrite! 2013-05-04 02:17:33 +02:00
hkrish
6b44c98169 Almost working. And is Super-fast!!! 2013-05-03 22:23:00 +02:00
hkrish
b966aafd0f _intersectLine returns a point 2013-05-03 19:42:40 +02:00
hkrish
3804531906 remove old fatline code 2013-05-03 19:39:32 +02:00
hkrish
26b5003927 Basic fat-line clipping working. terribly slow. object creation over head 2013-04-28 18:22:09 +02:00
hkrish
f73dd22a06 First commit 2013-04-24 15:55:02 +02:00