Polygon and line clipping and offsetting library (C++, C#, Delphi)
Questions tagged [clipperlib]
56 questions
1
vote
1 answer
!Clipper library Line polygon use offset How it Union
I want Draw Line polygon and Use Offset But it Union

Suppadech Yaemprai
- 11
- 2
1
vote
1 answer
Clipper polygon offsetting and straight line vertices
I am trying to offset a polygon using clipper, and I need all the vertices from the original polygon to be mirrored in the offset polygon. The trouble is that when you pass a polygon with vertices on a straight line, you get back a polygon without…

Samuel Amantea-Collins
- 51
- 1
- 6
1
vote
0 answers
Undefined symbol after library search - CLIPPER
I have tried to compile an application written in Clipper 5.2.
It is experiencing an error which I believe is the inclusion of libraries.
The moment that I linked, it displays the following error:
I'm using: rtlink fi MyApp
Stretch of code where I…

Gustavo Duarte
- 25
- 8
1
vote
2 answers
Producing polygon offsets using Clipper lib in python
I want to produce offset in closed polygons using Clipper lib (http://www.angusj.com/delphi/clipper.php).
Since, I am using python 2.7, I am using pyclipper (https://pypi.python.org/pypi/pyclipper) to do the same.
Unfortunately, I am unable to…

Satwik Priyadarshi
- 45
- 1
- 6
1
vote
0 answers
How to add an open path in Clipperlib
The document of Clipper say that 'Subject' paths may be either open (lines) or closed (polygons) or even a mixture of both.Yet when I try to add an open path in the class of ClipperLib::Clipper, it always got error.The source code are as…

xiaoDong Wang
- 11
- 2
1
vote
1 answer
Making holes in GeoJson Shapes - clipperLib
I have several overlapping shapes. I want to be able to make holes in the biggest shape that contains all the smaller shapes. the holes will represent the smaller shapes within the bigger shape.
sample image:
I am using the C# version of…

Farhad-Taran
- 6,282
- 15
- 67
- 121
1
vote
1 answer
pyclipper: Crash on trivial case ("terminate called throwing an exception")
I'm trying to use the Clipper Python bindings to clip a line using a polygon. But the process crashes inside the bindings or the clipper library:
import pyclipper
pc = pyclipper.Pyclipper()
# Add a single line as the subject.
pc.AddPath([(-1, -1),…

Feuermurmel
- 9,490
- 10
- 60
- 90
1
vote
1 answer
Clipper Library Union Function Error
I am trying to perform "Union" of two polygons in Clipper Library. The problem is there is a 2mm gap between the two closest egdes of the two polygons. So the result is still two polygons. Is there a way to remove gap between polygons if it is less…

Veda
- 243
- 1
- 15
1
vote
5 answers
C++ Cannot Return Object From Function
I am trying to use the C++ "Clipper Library" (http://www.angusj.com/delphi/clipper.php), but when I try to return one of the objects from the clipper library from a function, it seems to become null or is altered somehow
Here is the function I…

user3281410
- 502
- 3
- 14
0
votes
0 answers
Using clipper2lib to offset a path in only one direction
I am using the c# implementation of clipper2lib in Unity to offset an open path:
I want it to offset only in one direction, as in this image I edited in gimp:
Ideally the first and last points in the offsetted path would land at right angles to the…

arcadeperfect
- 137
- 10
0
votes
0 answers
Subtracting Line from Polygon (Clipper)
I'd like to clip a Line (open path) from a user-defined Polygon (rectangle, but can also be more complex polygon with holes) using js-angusj-clipper.
Here's what I tried, and I would much appreciate some hints on how to do this correctly.
import *…

Aerodynamic
- 782
- 5
- 19
0
votes
0 answers
Clipper2 Offset polyline c#
I have a set of coordinates that forms a polyline from two point lines. Could someone explain how I can offset the polyline to the right or left using the clipper2 library. Picture below.
http://www.angusj.com/clipper2/Docs/Overview.htm
Paths64…

Juffe Jep
- 1
- 1
0
votes
1 answer
How do we draw the solution of an offset polygon (inflated polygon), which was created by the Clipper Library (C#)? Use method DrawPolygons()?
I downloaded the clipper library, which allows me to inflate a polygon (offset a polygon).
"boundary_Points" is the Point array containing all vertices of the polygon. Below is the code I'm using.
Unfortunately, the command "DrawPolygons()", which…

Martin Graupner
- 103
- 1
- 2
- 8
0
votes
0 answers
Can not find ClipperOffset class C#
Good afternoon,
I downloaded NuGet package Clipper for C# -
Clipper.
In examples, I saw is used a ClipperOffset class, for example, in this topic:
Example1, Example2.
But I did not find this class. I see only Clipper, ClipperBase classes. I am…

Dmytro
- 159
- 1
- 1
- 7
0
votes
0 answers
Line to Line intersection in Clipper
Does the clipper has a line to line interSection or not?
This is the Code I have tried and I don't get any point that is intersecting
_line1 = (10,10) (10,20)//Given Input
_line2 = (10,10) (10,20)//Given Input
Clipper clipperObj;
PolyTree…

AravindK
- 151
- 8