Comments (9)
I presume from this that you're clipping with FillRule::NonZero.
So make sure that the orientation of all your paths are the same.
from clipper2.
I'll double check, But I'm sure this worked before with Clipper 1
from clipper2.
Is there a function in the library to check the orientation of a Path
?
from clipper2.
Area()
.
See Clipper.Core.h
Positive areas are clockwise (unless REVERSE_ORIENTATION is defined).
I'll double check, But I'm sure this worked before with Clipper 1
I'm pretty sure that what is generating your paths has changed.
I'm very confident that Clipper1 would return this XOR'ed (or EvenOdd) result with the same input paths.
from clipper2.
I found the problem. My default orientation is counter clockwise. When I do a InflatePaths
operation the output orientation is clockwise by default. This would flip the orientation for some of the geometry. Is there any way to control the default orientation of the library. If not I could do it the manual way and reverse the vectors after an InflatePaths
operation.
from clipper2.
Is there any way to control the default orientation of the library.
#define REVERSE_ORIENTATION
😁
from clipper2.
Now it's a bug. When I define REVERSE_ORIENTATION
, InflatePaths
gives me no output. When I don't define it, it gives me the correct output but with clockwise orientation.
from clipper2.
Also, union doesn't seem to be reversing the orientation of holes.
from clipper2.
Now it's a bug. When I define REVERSE_ORIENTATION
Yep, should be fixed now. 😁
Also, union doesn't seem to be reversing the orientation of holes.
I'm not sure what you mean. Holes should remain oriented opposite to outer paths.
from clipper2.
Related Issues (20)
- C# System.NullReferenceException in DoHorizontal/UpdateEdgeIntoAEL/Split HOT 3
- Open path ofsetting with DeltaCallback64 ignores callback for pathes with length == 1 HOT 2
- Minor 'bug' on Extensive HTML documentation: EndType::Joined is EndType::Join on the whole documentation HOT 3
- clipper.version.h getting dirty in windows HOT 2
- How to correctly recursively offset a complex shape with holes?
- Conan Package specifies incorrect license HOT 1
- Strange spikes when repeatedly offsetting with holes HOT 1
- googletest: 2 of 34 tests failed HOT 7
- Intersecting two overlapping graphs HOT 1
- Merging hole and polygon works differently than in ClipperLib v1 HOT 2
- Different result when intersecting degenerate (but useful) open path with rect and with clipper. HOT 2
- (C++, USINGZ) InflatePaths with negative delta sets Z value to 0 HOT 6
- Crash Running on iOS HOT 14
- Support for Arc Instructions HOT 2
- Unexpected collinearity test failure on M1 macOS HOT 22
- Original polyline or offset distance = 0
- Positive offset produces unexpected hole HOT 9
- ClipperOffset output path may disappear under certain conditions HOT 2
- Clipper2 SimplifyPath do the thing of simplifyPolygon and cleanPolygon in Clipper1? HOT 1
- Free Pascal compatibility HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clipper2.