git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Infinite Quadtree precision now works with some Béziers
[ipdf/code.git]
/
src
/
bezier.h
diff --git
a/src/bezier.h
b/src/bezier.h
index
99530b3
..
03e789c
100644
(file)
--- a/
src/bezier.h
+++ b/
src/bezier.h
@@
-291,7
+291,7
@@
namespace IPDF
Debug("Found %d intersections.\n", x_intersection.size());
std::vector<Bezier> all_beziers;
Debug("Found %d intersections.\n", x_intersection.size());
std::vector<Bezier> all_beziers;
- if (x_intersection.
empty()
)
+ if (x_intersection.
size() <= 2
)
{
all_beziers.push_back(*this);
return all_beziers;
{
all_beziers.push_back(*this);
return all_beziers;
@@
-304,7
+304,7
@@
namespace IPDF
Debug(" -- t0: %f to t1: %f", t0, t1);
Real ptx, pty;
Evaluate(ptx, pty, ((t1 + t0) / Real(2)));
Debug(" -- t0: %f to t1: %f", t0, t1);
Real ptx, pty;
Evaluate(ptx, pty, ((t1 + t0) / Real(2)));
- if (r.PointIn(ptx, pty))
+ if (
true ||
r.PointIn(ptx, pty))
{
all_beziers.push_back(this->ReParametrise(t0, t1));
}
{
all_beziers.push_back(this->ReParametrise(t0, t1));
}
UCC
git Repository :: git.ucc.asn.au