Poly2d.OffsetUnion Method

Offsets a closed poly and trims it using a self union. See Offset(...) and Union(...) function for more details. If the poly is open the result is undefined or an exception is thrown.
Public Function OffsetUnion( _ 
ByVal offdist As Double, _ 
ByVal gaptype As OffsetGapType, _ 
ByVal maxdist As Double
) As Region2d
This language is not supported or no code example is available.
public Region2d OffsetUnion( 
double offdist
OffsetGapType gaptype
double maxdist 
)
This language is not supported or no code example is available.
public:  
Region2d^ OffsetUnion( 
double offdist
OffsetGapType gaptype
double maxdist 
)
This language is not supported or no code example is available.
public function OffsetUnion( 
offdist : double
gaptype : OffsetGapType
maxdist : double 
) : Region2d;
This language is not supported or no code example is available.

Parameters

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

maxdist
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

Region2d

A new region containing the resulting polygons.

.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