PolygonSimplification.Calculate (Region2d, Int32, Double, Boolean) Method
Simplifies the polys in a region.
Public Shared Function Calculate( _ |
This language is not supported or no code example is available.
public static function Calculate( |
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
-
r
-
Region2d
Input region, flattened
-
cnt
-
int
Min number of edges in result foreach poly
-
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 (inner corners) should be considered
Return Value
Region2d
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