diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-27 15:00:05 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-27 15:04:06 +0400 |
commit | 31d679b667cd121a9bcbe32fedc8ab768611b963 (patch) | |
tree | 47c5ae514d9772dff1086b8eed8cf8ffb191f11f /extern/carve/lib/geom2d.cpp | |
parent | 184294782e16dd7ed2bfdef064fc9c4351fe5507 (diff) |
Update Carve to latest update
Fixes some issues with NaN vertices in special cases.
Also adds edge interpolation routines which are currently
unused but which are requires to implement edge CD interpolation.
Diffstat (limited to 'extern/carve/lib/geom2d.cpp')
-rw-r--r-- | extern/carve/lib/geom2d.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extern/carve/lib/geom2d.cpp b/extern/carve/lib/geom2d.cpp index 96527e485a5..5787da19c66 100644 --- a/extern/carve/lib/geom2d.cpp +++ b/extern/carve/lib/geom2d.cpp @@ -157,9 +157,9 @@ namespace carve { return pointInPoly(points, p2_adapt_ident(), p); } - int lineSegmentPolyIntersections(const P2Vector &points, - LineSegment2 line, - std::vector<PolyIntersectionInfo> &out) { + static int lineSegmentPolyIntersections(const P2Vector &points, + LineSegment2 line, + std::vector<PolyIntersectionInfo> &out) { int count = 0; if (line.v2 < line.v1) { line.flip(); } @@ -239,9 +239,9 @@ namespace carve { } }; - int sortedLineSegmentPolyIntersections(const P2Vector &points, - LineSegment2 line, - std::vector<PolyIntersectionInfo> &out) { + static int sortedLineSegmentPolyIntersections(const P2Vector &points, + LineSegment2 line, + std::vector<PolyIntersectionInfo> &out) { bool swapped = line.v2 < line.v1; |