IPolyClassGetSurfaceFromPolygon(IODBLayer, Boolean, Boolean) Method

Create a new Surface on the ParentLayer. This works only if edges are sorted!

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public IODBObject GetSurfaceFromPolygon(
	IODBLayer ParentLayer,
	bool ContainsHoles,
	bool AddUndo
)

Parameters

ParentLayer  IODBLayer
The relevant layer to add the surface.
ContainsHoles  Boolean
Polygon with holes need extra calculation to split them, if you know there are no holes this will save calculation time.
AddUndo  Boolean
Add undo item for new created surface.

Return Value

IODBObject
A new surface with this polygon as outline.

See Also