PolygonSimplification.Calculate (Poly2d, Int32, Double, Boolean) Method

Simplifies a simple polygon of lines.
Public Shared Function Calculate( _ 
ByVal pl As Poly2d, _ 
ByVal cnt As Integer, _ 
ByVal amount As Double, _ 
ByVal onlyreflex As Boolean
) As Poly2d
This language is not supported or no code example is available.
public static Poly2d Calculate( 
Poly2d pl
int cnt
double amount
bool onlyreflex 
)
This language is not supported or no code example is available.
public:  
static Poly2d^ Calculate( 
Poly2d^ pl
int cnt
double amount
bool onlyreflex 
)
This language is not supported or no code example is available.
public static function Calculate( 
pl : Poly2d
cnt : int
amount : double
onlyreflex : boolean 
) : Poly2d;
This language is not supported or no code example is available.

Parameters

pl
Poly2d

Input polygon

cnt
int

Min number of edges in result

amount
double

Max amount of area reduction. ex. 0.1 means 10% area difference. If 0 then not used.

onlyreflex
bool

True if only reflex vertices should be considered

Return Value

Poly2d

A reduced polygon

.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