ExtensionsCleanUpPolygon(IPolyClass, 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,
int precision = 5
)
<ExtensionAttribute>
Public Shared Sub CleanUpPolygon (
this As IPolyClass,
Optional precision As Integer = 5
)
public:
[ExtensionAttribute]
static void CleanUpPolygon(
IPolyClass^ this,
int precision = 5
)
[<ExtensionAttribute>]
static member CleanUpPolygon :
this : IPolyClass *
?precision : int
(* Defaults:
let _precision = defaultArg precision 5
*)
-> unit
- this IPolyClass
- IPolyClass to clean the outline.
- 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).