Skip to content

Commit

Permalink
Release version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Feb 26, 2023
1 parent df1c129 commit fecaa16
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CPP/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.15)
project(Clipper2 VERSION 1.1.1 LANGUAGES C CXX)
project(Clipper2 VERSION 1.2.0 LANGUAGES C CXX)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_STANDARD 17)
Expand Down
4 changes: 2 additions & 2 deletions CPP/Clipper2Lib/include/clipper2/clipper.engine.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*******************************************************************************
* Author : Angus Johnson *
* Date : 28 January 2023 *
* Date : 26 February 2023 *
* Website : http://www.angusj.com *
* Copyright : Angus Johnson 2010-2023 *
* Purpose : This is the main polygon clipping module *
Expand All @@ -10,7 +10,7 @@
#ifndef CLIPPER_ENGINE_H
#define CLIPPER_ENGINE_H

constexpr auto CLIPPER2_VERSION = "1.1.1";
constexpr auto CLIPPER2_VERSION = "1.2.0";

#include <cstdlib>
#include <iostream>
Expand Down
12 changes: 11 additions & 1 deletion DLL/Delphi_TestApp/Clipper.SVG.pas
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ TSvgWriter = class

procedure AddPath(const path: TPath64; isOpen: Boolean;
brushColor, penColor: Cardinal;
penWidth: double; showCoords: Boolean = false);
penWidth: double; showCoords: Boolean = false); overload;
procedure AddPath(const path: TPathD; isOpen: Boolean;
brushColor, penColor: Cardinal;
penWidth: double; showCoords: Boolean = false); overload;

procedure AddPaths(const paths: TPaths64; isOpen: Boolean;
brushColor, penColor: Cardinal;
Expand Down Expand Up @@ -219,6 +222,13 @@ procedure TSvgWriter.AddPath(const path: TPath64; isOpen: Boolean;
AddPaths(Paths64(path), isOpen, brushColor, penColor, penWidth, showCoords);
end;

procedure TSvgWriter.AddPath(const path: TPathD; isOpen: Boolean;
brushColor, penColor: Cardinal;
penWidth: double; showCoords: Boolean);
begin
AddPaths(PathsD(path), isOpen, brushColor, penColor, penWidth, showCoords);
end;

procedure TSvgWriter.AddPaths(const paths: TPaths64;
isOpen: Boolean; brushColor, penColor: Cardinal;
penWidth: double; showCoords: Boolean = false);
Expand Down
4 changes: 0 additions & 4 deletions DLL/Delphi_TestApp/Test_DLL.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,6 @@ var
sub, clp, sol1, sol2: TPathsD;
csub_local: CPathsD;
csol_extern: CPathsD;
penClr, fillClr: TColor32;
scaleRnd, maxOffX, maxOffY, frac: Double;
rec: TRectD;
fillrule: TFillRule;
Expand Down Expand Up @@ -920,9 +919,6 @@ begin
frac := 0 else
frac := 1/sol2_len;

penClr := RainbowColor(frac, 92);
fillClr := (penClr and $FFFFFF) or $20000000;

SetLength(clp, 1);
clp[0] := rec.AsPath;

Expand Down
2 changes: 2 additions & 0 deletions DLL/Delphi_TestApp/Test_DLL.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
<MainSource>MainSource</MainSource>
</DelphiCompile>
<DCCReference Include="SvgWriter.pas"/>
<DCCReference Include="Colors.pas"/>
<DCCReference Include="Timer.pas"/>
<BuildConfiguration Include="Debug">
<Key>Cfg_2</Key>
<CfgParent>Base</CfgParent>
Expand Down

0 comments on commit fecaa16

Please sign in to comment.