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.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static void CleanUpPolygon(
	this IPolyClass this,
	bool allowBiggerArcs,
	int precision = 5
)

Parameters

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.

Usage Note

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

See Also