Questions tagged [clipperlib]

Polygon and line clipping and offsetting library (C++, C#, Delphi)

56 questions
0
votes
1 answer

Get all points within a triangle is causing an overflow

Well I'm lacking GraphicsPath in Unity (to fills polygon, draw them with and outline and utilities with shapes in general), so I'm doing my own implementation of it. Well, we could debate also which is the best option, but actually, I prefer this…
z3nth10n
  • 2,341
  • 2
  • 25
  • 49
0
votes
1 answer

Clipper Lib total Area of Paths (plural)

I've Googled and searched and didn't find anything similar to what I need. Clipper Lib provides a function to calculate the Area of a Path: double Area(Path path) I can't find a way to scale this to calculate the area of complex polygon (polygons…
Warp
  • 11
  • 1
0
votes
1 answer

Make line follow contour of shape

I'm working on a app that is based on vector data and using various boolean operations. For these boolean operation I'm using a library called clipper. Now I need to make a vector operation which I'm not sure how to do in Clipper. I have a straight…
0
votes
1 answer

Using result of Clipper polygon union for Google Earth KML with inner boundaries

I want to merge polygons into one area that can have holes. Clipper can do this, however when I use the two resulting polygons in Google Earth the problem is that Google earth treats those polygons separately and just pust them over each other. In…
fnx
  • 451
  • 4
  • 15
0
votes
1 answer

Prevent clipper from merging polygons?

When I compute the difference between two shapes which touches one another (for example a rectangle A in a bigger rectangle B with a hole at rectangle A) and a clip shape (rectangle C) the two touching shapes are merged because their share the same…
arthur.sw
  • 11,052
  • 9
  • 47
  • 104
0
votes
0 answers

ClipperLib - Union of few meshes(clip or subject?)

I am using ClipperLib (C# version). What I want to achieve is that for given coordinates of few meshes, I have union of them as an answer. For two intersecting meshes and a third one (totally separate), I predict getting two element answer: Union…
Power
  • 141
  • 1
  • 11
0
votes
0 answers

Clipper how to get all polygons connected to a given points

I'm currently working on a project where I have to find all points connected to a given set of coordinates in a set of clipper polygons. So that means that I have the following: List> polygons=new List>(); …
Thijser
  • 2,625
  • 1
  • 36
  • 71
0
votes
0 answers

Clipperlib is not behaving as intended when doing a union on a multipolygon

I am trying to union a multipolygon but it is not working well as shown in the picture below: The code I am using is: using ClipperLib; using Polygon = System.Collections.Generic.List; using Polygons =…
Farhad-Taran
  • 6,282
  • 15
  • 67
  • 121
0
votes
1 answer

Clipperlib polygon difference issue

I am having trouble calculating the difference between two simple polygons. Here is a drawing of the case I was testing when the problem appeared The red polygon on the left is the subject polygon The yellow polygon is the clip polygon The polygon…
olma
  • 59
  • 2
  • 10
0
votes
2 answers

Cocoapods clipper install error with WhirlyGlobe

I am trying to install WhirlyGlobe in my project using cocoapods but I am getting "Error installing clipper". I have added the below lines in podfile. platform :ios, '8.1' pod 'WhirlyGlobe' pod 'WhirlyGlobeResources' I am getting below error when…
Ada
  • 472
  • 8
  • 13
0
votes
1 answer

How to use Clipper library to enlarge and fill paths

I am trying to use the Clipper library to modify a graphics path. I have list of widths that represent outlines / strokes. I want to start with the largest first and work my way down to the smallest. For this example, we will add 2 strokes with…
Lonnie
  • 63
  • 5
1 2 3
4