Skip to content

Commit

Permalink
Update Clipper.Offset.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
philstopford committed May 24, 2023
1 parent 9d50a82 commit d6c135c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CSharp/Clipper2Lib/Clipper.Offset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ private static PointD IntersectPoint(PointD pt1a, PointD pt1b, PointD pt2a, Poin
private Point64 GetPerpendic(Point64 pt, PointD norm)
{
#if USINGZ
return new Point64(pt.X + norm.x * _group_delta,
pt.Y + norm.y * _group_delta, pt.Z);
return new Point64(pt.X + norm.x * _groupDelta,
pt.Y + norm.y * _groupDelta, pt.Z);
#else
return new Point64(pt.X + norm.x * _groupDelta,
pt.Y + norm.y * _groupDelta);
Expand All @@ -316,8 +316,8 @@ private Point64 GetPerpendic(Point64 pt, PointD norm)
private PointD GetPerpendicD(Point64 pt, PointD norm)
{
#if USINGZ
return new PointD(pt.X + norm.x * _group_delta,
pt.Y + norm.y * _group_delta, pt.Z);
return new PointD(pt.X + norm.x * _groupDelta,
pt.Y + norm.y * _groupDelta, pt.Z);
#else
return new PointD(pt.X + norm.x * _groupDelta,
pt.Y + norm.y * _groupDelta);
Expand Down Expand Up @@ -529,8 +529,8 @@ private void OffsetOpenPath(Group group, Path64 path)
case EndType.Butt:
#if USINGZ
group.outPath.Add(new Point64(
path[0].X - _normals[0].x * _group_delta,
path[0].Y - _normals[0].y * _group_delta,
path[0].X - _normals[0].x * _groupDelta,
path[0].Y - _normals[0].y * _groupDelta,
path[0].Z));
#else
group.outPath.Add(new Point64(
Expand Down Expand Up @@ -567,8 +567,8 @@ private void OffsetOpenPath(Group group, Path64 path)
case EndType.Butt:
#if USINGZ
group.outPath.Add(new Point64(
path[highI].X - _normals[highI].x * _group_delta,
path[highI].Y - _normals[highI].y * _group_delta,
path[highI].X - _normals[highI].x * _groupDelta,
path[highI].Y - _normals[highI].y * _groupDelta,
path[highI].Z));
#else
group.outPath.Add(new Point64(
Expand Down

0 comments on commit d6c135c

Please sign in to comment.