Poly2d.Offset (Double, OffsetGapType, Double) Method
Computes a new poly which is an offset of this poly. The offsetted segments can be joined with an arc or by extension.
This function automatically removes trivial (zero length) segments in the result poly.
The resulting poly will _not_ be trimmed and may contain loops. Use Union() or Trim() to remove such loops if needed.
Public Function Offset( _ |
This language is not supported or no code example is available.
This language is not supported or no code example is available.
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
dist
-
double
The distance to offset the poly. Posetive value offsetts to the right and nagative to the left.
-
gapmode
-
OffsetGapType
The type of joins made between offsetted segments of poly. See OffsetGapType enumeration for details.
-
maxextend
-
double
Only used if gaptype is Extend. This is the maximum distance two segments might be extended,
otherwise a chamfer is created. If gaptype is not Extend, this parameter is not used.
Return Value
Poly2d
A new, offsetted poly.
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8