MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / StartOpenPath

Method StartOpenPath

CSharp/Clipper2Lib/Clipper.Engine.cs:1484–1504  ·  view source on GitHub ↗
(Active ae, Point64 pt)

Source from the content-addressed store, hash-verified

1482 }
1483
1484 [MethodImpl(MethodImplOptions.AggressiveInlining)]
1485 private OutPt StartOpenPath(Active ae, Point64 pt)
1486 {
1487 OutRec outrec = NewOutRec();
1488 outrec.isOpen = true;
1489 if (ae.windDx > 0)
1490 {
1491 outrec.frontEdge = ae;
1492 outrec.backEdge = null;
1493 }
1494 else
1495 {
1496 outrec.frontEdge = null;
1497 outrec.backEdge = ae;
1498 }
1499
1500 ae.outrec = outrec;
1501 OutPt op = _outPtPool.Add(pt, outrec);
1502 outrec.pts = op;
1503 return op;
1504 }
1505
1506 [MethodImpl(MethodImplOptions.AggressiveInlining)]
1507 private void UpdateEdgeIntoAEL(Active ae)

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected