ExtensionsCleanUpPolygon(IPolyClass, Boolean, Int32) Method
Combine lines and arcs if they have same start/end point and same angle/center/direction. This removes some of the edges to get simpl polygons.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static void CleanUpPolygon(
this IPolyClass this,
bool allowBiggerArcs,
int precision = 5
)
<ExtensionAttribute>
Public Shared Sub CleanUpPolygon (
this As IPolyClass,
allowBiggerArcs As Boolean,
Optional precision As Integer = 5
)
public:
[ExtensionAttribute]
static void CleanUpPolygon(
IPolyClass^ this,
bool allowBiggerArcs,
int precision = 5
)
[<ExtensionAttribute>]
static member CleanUpPolygon :
this : IPolyClass *
allowBiggerArcs : bool *
?precision : int
(* Defaults:
let _precision = defaultArg precision 5
*)
-> unit
- this IPolyClass
- IPolyClass to clean the outline.
- allowBiggerArcs Boolean
- Arcs over 90 degrees allowed.
- precision Int32 (Optional)
- Digits to round values to get better values to compare.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPolyClass. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).