public LocalGeometryView(LocalGeometryViewManager localGeometryViewManager, double holeDilationRadius, LocalGeometryView preview) { LocalGeometryViewManager = localGeometryViewManager; HoleDilationRadius = holeDilationRadius; Preview = preview ?? this; CrossoverErosionRadius = (int)Math.Ceiling((double)(HoleDilationRadius * 2)); CrossoverDilationFactor = (CrossoverErosionRadius / 2) + kCrossoverAdditionalPathingDilation; var padding = (int)Math.Ceiling(HoleDilationRadius) + 10; ClipperExtentsHoleClipPolygon = Polygon2.CreateRect( -ClipperBase.loRange + padding, -ClipperBase.loRange + padding, ClipperBase.loRange * 2 - padding * 2, ClipperBase.loRange * 2 - padding * 2); }
public LocalGeometryViewManager(LocalGeometryJob job, LocalGeometryViewManager previewViewManager = null) { Job = job; PreviewViewManager = previewViewManager ?? this; }