Skip to content

Commit 0a9f445

Browse files
committed
Merge branch 'main' of https://[email protected]/AngusJohnson/Clipper2.git
2 parents f7972b5 + 1a05520 commit 0a9f445

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

README.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,16 @@ The <b>Clipper2</b> library performs **intersection**, **union**, **difference**
4545
solution := Intersect( subject, clip, frNonZero);</pre>
4646
![clipperB](https://user-images.githubusercontent.com/5280692/178123810-1719a1f5-25c3-4a9e-b419-e575ff056272.svg)
4747

48-
**Constrained Delaunay Triangulation**
49-
<pre> //C++
50-
Paths64 subject, solution;
51-
subject = GetPathsFromSvgFile("coral3.svg");
52-
Triangulate(subject, 0, solution, doDelaunay);
53-
DisplaySvg("coral3t.svg", solution, useMulticolor);</pre>
48+
**Constrained Delaunay Triangulation**<br>
5449

55-
<pre> //C#
56-
string TestFile = "coral3.svg";
57-
srcFile = svgFolder + TestFile;
58-
subject = GetPathsFromSvgFile(srcFile);
59-
if (Clipper.Triangulate(subject, 0, out solution) == TriangulateResult.success)
60-
Display(solution, tmpFolder + TestFile);</pre>
50+
**C++**
51+
https://github.com/AngusJohnson/Clipper2/blob/01bacc053aa335478b713ad988e7acbb5ac6a0c4/CPP/Examples/Triangulation/Triangulation.cpp#L247-L249
6152

62-
<pre> //Delphi
63-
svgFilename := testSvgFolder + 'coral3.svg';
64-
pp := GetPathsFromSvgFile(svgFilename);
65-
Triangulate(pp, 0, sol, true);
66-
SavePathsAsSvg('.\coral3t.svg', sol);
67-
ShellExecute(0, nil, '.\coral3t.svg', nil, nil, 0);</pre>
53+
**C#**
54+
https://github.com/AngusJohnson/Clipper2/blob/01bacc053aa335478b713ad988e7acbb5ac6a0c4/CSharp/Clipper2Lib.Examples/Triangulation/Main.cs#L257-L261
55+
56+
**Delphi**
57+
https://github.com/AngusJohnson/Clipper2/blob/01bacc053aa335478b713ad988e7acbb5ac6a0c4/Delphi/Examples/Triangulation/ClipperTri.dpr#L219-L227
6858

6959
![coral3](https://github.com/user-attachments/assets/78e88382-f772-442b-a09c-c14d8906fb21)
7060
![coral3t](https://github.com/user-attachments/assets/c329ef2a-4833-4092-8415-145400fba8b0)

0 commit comments

Comments
 (0)