Poly2d.Offset (Double, OffsetGapType, Double, Boolean) 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( _ 
ByVal dist As Double, _ 
ByVal gaptype As OffsetGapType, _ 
ByVal maxextend As Double, _ 
ByVal trimcorners As Boolean
) As Poly2d
This language is not supported or no code example is available.
public Poly2d Offset( 
double dist
OffsetGapType gaptype
double maxextend
bool trimcorners 
)
This language is not supported or no code example is available.
public:  
Poly2d^ Offset( 
double dist
OffsetGapType gaptype
double maxextend
bool trimcorners 
)
This language is not supported or no code example is available.
public function Offset( 
dist : double
gaptype : OffsetGapType
maxextend : double
trimcorners : boolean 
) : Poly2d;
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.

gaptype
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.

trimcorners
bool

True if inner corners should be trimmed

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

In this article

Definition