KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
pcbnew.SHAPE_POLY_SET Class Reference
Inheritance diagram for pcbnew.SHAPE_POLY_SET:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, *args)
 
def CacheTriangulation (self, aPartition=True, aSimplify=False)
 
def IsTriangulationUpToDate (self)
 
def GetHash (self)
 
def GetRelativeIndices (self, aGlobalIdx, aRelativeIndices)
 
def GetGlobalIndex (self, aRelativeIndices, aGlobalIdx)
 
def CloneDropTriangulation (self)
 
def NewOutline (self)
 
def NewHole (self, aOutline=-1)
 
def AddOutline (self, aOutline)
 
def AddHole (self, aHole, aOutline=-1)
 
def AddPolygon (self, apolygon)
 
def Area (self)
 
def ArcCount (self)
 
def GetArcs (self, aArcBuffer)
 
def ClearArcs (self)
 
def Append (self, *args)
 
def InsertVertex (self, aGlobalIndex, aNewVertex)
 
def CVertex (self, *args)
 
def GetNeighbourIndexes (self, aGlobalIndex, aPrevious, aNext)
 
def IsPolygonSelfIntersecting (self, aPolygonIndex)
 
def IsSelfIntersecting (self)
 
def TriangulatedPolyCount (self)
 
def OutlineCount (self)
 
def VertexCount (self, aOutline=-1, aHole=-1)
 
def FullPointCount (self)
 
def HoleCount (self, aOutline)
 
def Outline (self, *args)
 
def Subset (self, aFirstPolygon, aLastPolygon)
 
def UnitSet (self, aPolygonIndex)
 
def Hole (self, aOutline, aHole)
 
def Polygon (self, *args)
 
def TriangulatedPolygon (self, aIndex)
 
def COutline (self, aIndex)
 
def CHole (self, aOutline, aHole)
 
def CPolygon (self, aIndex)
 
def CPolygons (self)
 
def Iterate (self, *args)
 
def IterateWithHoles (self, *args)
 
def CIterate (self, *args)
 
def CIterateWithHoles (self, *args)
 
def IterateFromVertexWithHoles (self, aGlobalIdx)
 
def IterateSegments (self, *args)
 
def CIterateSegments (self, *args)
 
def IterateSegmentsWithHoles (self, *args)
 
def CIterateSegmentsWithHoles (self, *args)
 
def BooleanAdd (self, *args)
 
def BooleanSubtract (self, *args)
 
def BooleanIntersection (self, *args)
 
def BooleanXor (self, *args)
 
def RebuildHolesFromContours (self)
 
def Inflate (self, aAmount, aCornerStrategy, aMaxError, aSimplify=False)
 
def Deflate (self, aAmount, aCornerStrategy, aMaxError)
 
def OffsetLineChain (self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
 
def InflateWithLinkedHoles (self, aFactor, aCornerStrategy, aMaxError, aFastMode)
 
def Fracture (self, aFastMode)
 
def Unfracture (self, aFastMode)
 
def HasHoles (self)
 
def HasTouchingHoles (self)
 
def Simplify (self, aFastMode)
 
def SimplifyOutlines (self, aMaxError=0)
 
def NormalizeAreaOutlines (self)
 
def Format (self, aCplusPlus=True)
 
def Mirror (self, aRef, aFlipDirection)
 
def Rotate (self, *args)
 
def BBox (self, aClearance=0)
 
def PointOnEdge (self, aP, aAccuracy=0)
 
def Collide (self, *args)
 
def CollideVertex (self, aPoint, aClosestVertex=None, aClearance=0)
 
def CollideEdge (self, aPoint, aClosestVertex=None, aClearance=0)
 
def PointInside (self, aPt, aAccuracy=0, aUseBBoxCache=False)
 
def BuildBBoxCaches (self)
 
def BBoxFromCaches (self)
 
def Contains (self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False)
 
def IsEmpty (self)
 
def RemoveVertex (self, *args)
 
def RemoveAllContours (self)
 
def RemoveContour (self, aContourIdx, aPolygonIdx=-1)
 
def RemoveOutline (self, aOutlineIdx)
 
def RemoveNullSegments (self)
 
def SetVertex (self, *args)
 
def TotalVertices (self)
 
def DeletePolygon (self, aIdx)
 
def DeletePolygonAndTriangulationData (self, aIdx, aUpdateHash=True)
 
def UpdateTriangulationDataHash (self)
 
def ChamferPolygon (self, aDistance, aIndex)
 
def FilletPolygon (self, aRadius, aErrorMax, aIndex)
 
def Chamfer (self, aDistance)
 
def Fillet (self, aRadius, aErrorMax)
 
def SquaredDistanceToPolygon (self, *args)
 
def SquaredDistance (self, *args)
 
def SquaredDistanceToSeg (self, aSegment, aNearest=None)
 
def IsVertexInHole (self, aGlobalIdx)
 
- Public Member Functions inherited from pcbnew.SHAPE
def __init__ (self, *args, **kwargs)
 
def Clone (self)
 
def GetClearance (self, aOther)
 
def IsNull (self)
 
def Collide (self, *args)
 
def BBox (self, aClearance=0)
 
def Centre (self)
 
def Distance (self, aP)
 
def SquaredDistance (self, aP, aOutlineOnly=False)
 
def PointInside (self, aPt, aAccuracy=0, aUseBBoxCache=False)
 
def TransformToPolygon (self, aBuffer, aError, aErrorLoc)
 
def Rotate (self, *args)
 
def Move (self, aVector)
 
def IsSolid (self)
 
def Parse (self, aStream)
 
def Format (self, aCplusPlus=True)
 
def Cast (self)
 
- Public Member Functions inherited from pcbnew.SHAPE_BASE
def __init__ (self, aType)
 
def Type (self)
 
def TypeName (self)
 
def HasIndexableSubshapes (self)
 
def GetIndexableSubshapeCount (self)
 
def GetIndexableSubshapes (self, aSubshapes)
 

Static Public Member Functions

def BuildPolysetFromOrientedPaths (aPaths, aReverseOrientation=False, aEvenOdd=False)
 

Static Public Attributes

_pcbnew PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
 
_pcbnew PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
 
- Static Public Attributes inherited from pcbnew.SHAPE
_pcbnew MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
 

Properties

property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE
property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE_BASE
property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Proxy of C++ SHAPE_POLY_SET class.

Definition at line 6409 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.SHAPE_POLY_SET.__init__ (   self,
args 
)
    __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & aPolygon) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET

Reimplemented from pcbnew.SHAPE.

Definition at line 6415 of file pcbnew.py.

Here is the caller graph for this function:

Member Function Documentation

◆ AddHole()

def pcbnew.SHAPE_POLY_SET.AddHole (   self,
  aHole,
  aOutline = -1 
)
AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int

Definition at line 6462 of file pcbnew.py.

◆ AddOutline()

def pcbnew.SHAPE_POLY_SET.AddOutline (   self,
  aOutline 
)
AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int

Definition at line 6458 of file pcbnew.py.

◆ AddPolygon()

def pcbnew.SHAPE_POLY_SET.AddPolygon (   self,
  apolygon 
)
AddPolygon(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & apolygon) -> int

Definition at line 6466 of file pcbnew.py.

◆ Append()

def pcbnew.SHAPE_POLY_SET.Append (   self,
args 
)
    Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
    Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
    Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
    Append(SHAPE_POLY_SET self, SHAPE_ARC aArc, int aOutline=-1, int aHole=-1, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB()) -> int

Definition at line 6486 of file pcbnew.py.

Here is the caller graph for this function:

◆ ArcCount()

def pcbnew.SHAPE_POLY_SET.ArcCount (   self)
ArcCount(SHAPE_POLY_SET self) -> int

Definition at line 6474 of file pcbnew.py.

◆ Area()

def pcbnew.SHAPE_POLY_SET.Area (   self)
Area(SHAPE_POLY_SET self) -> double

Definition at line 6470 of file pcbnew.py.

◆ BBox()

def pcbnew.SHAPE_POLY_SET.BBox (   self,
  aClearance = 0 
)
BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I

Reimplemented from pcbnew.SHAPE.

Definition at line 6741 of file pcbnew.py.

◆ BBoxFromCaches()

def pcbnew.SHAPE_POLY_SET.BBoxFromCaches (   self)
BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I

Definition at line 6773 of file pcbnew.py.

◆ BooleanAdd()

def pcbnew.SHAPE_POLY_SET.BooleanAdd (   self,
args 
)
    BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6653 of file pcbnew.py.

Here is the caller graph for this function:

◆ BooleanIntersection()

def pcbnew.SHAPE_POLY_SET.BooleanIntersection (   self,
args 
)
    BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6667 of file pcbnew.py.

Here is the caller graph for this function:

◆ BooleanSubtract()

def pcbnew.SHAPE_POLY_SET.BooleanSubtract (   self,
args 
)
    BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6660 of file pcbnew.py.

Here is the caller graph for this function:

◆ BooleanXor()

def pcbnew.SHAPE_POLY_SET.BooleanXor (   self,
args 
)
    BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6674 of file pcbnew.py.

Here is the caller graph for this function:

◆ BuildBBoxCaches()

def pcbnew.SHAPE_POLY_SET.BuildBBoxCaches (   self)
BuildBBoxCaches(SHAPE_POLY_SET self)

Definition at line 6769 of file pcbnew.py.

◆ BuildPolysetFromOrientedPaths()

def pcbnew.SHAPE_POLY_SET.BuildPolysetFromOrientedPaths (   aPaths,
  aReverseOrientation = False,
  aEvenOdd = False 
)
static
BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET

Definition at line 6870 of file pcbnew.py.

◆ CacheTriangulation()

def pcbnew.SHAPE_POLY_SET.CacheTriangulation (   self,
  aPartition = True,
  aSimplify = False 
)
CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True, bool aSimplify=False)

Definition at line 6426 of file pcbnew.py.

◆ Chamfer()

def pcbnew.SHAPE_POLY_SET.Chamfer (   self,
  aDistance 
)
Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET

Definition at line 6839 of file pcbnew.py.

◆ ChamferPolygon()

def pcbnew.SHAPE_POLY_SET.ChamferPolygon (   self,
  aDistance,
  aIndex 
)
ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON

Definition at line 6831 of file pcbnew.py.

◆ CHole()

def pcbnew.SHAPE_POLY_SET.CHole (   self,
  aOutline,
  aHole 
)
CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN

Definition at line 6573 of file pcbnew.py.

◆ CIterate()

def pcbnew.SHAPE_POLY_SET.CIterate (   self,
args 
)
    CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
    CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
    CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR

Definition at line 6600 of file pcbnew.py.

Here is the caller graph for this function:

◆ CIterateSegments()

def pcbnew.SHAPE_POLY_SET.CIterateSegments (   self,
args 
)
    CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
    CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
    CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR

Definition at line 6627 of file pcbnew.py.

Here is the caller graph for this function:

◆ CIterateSegmentsWithHoles()

def pcbnew.SHAPE_POLY_SET.CIterateSegmentsWithHoles (   self,
args 
)
    CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
    CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR

Definition at line 6642 of file pcbnew.py.

Here is the caller graph for this function:

◆ CIterateWithHoles()

def pcbnew.SHAPE_POLY_SET.CIterateWithHoles (   self,
args 
)
    CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
    CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR

Definition at line 6608 of file pcbnew.py.

Here is the caller graph for this function:

◆ ClearArcs()

def pcbnew.SHAPE_POLY_SET.ClearArcs (   self)
ClearArcs(SHAPE_POLY_SET self)

Definition at line 6482 of file pcbnew.py.

◆ CloneDropTriangulation()

def pcbnew.SHAPE_POLY_SET.CloneDropTriangulation (   self)
CloneDropTriangulation(SHAPE_POLY_SET self) -> SHAPE_POLY_SET

Definition at line 6446 of file pcbnew.py.

◆ Collide()

def pcbnew.SHAPE_POLY_SET.Collide (   self,
args 
)
    Collide(SHAPE_POLY_SET self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
    Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
    Collide(SHAPE_POLY_SET self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool

Reimplemented from pcbnew.SHAPE.

Definition at line 6749 of file pcbnew.py.

Here is the caller graph for this function:

◆ CollideEdge()

def pcbnew.SHAPE_POLY_SET.CollideEdge (   self,
  aPoint,
  aClosestVertex = None,
  aClearance = 0 
)
CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool

Definition at line 6761 of file pcbnew.py.

◆ CollideVertex()

def pcbnew.SHAPE_POLY_SET.CollideVertex (   self,
  aPoint,
  aClosestVertex = None,
  aClearance = 0 
)
CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool

Definition at line 6757 of file pcbnew.py.

◆ Contains()

def pcbnew.SHAPE_POLY_SET.Contains (   self,
  aP,
  aSubpolyIndex = -1,
  aAccuracy = 0,
  aUseBBoxCaches = False 
)
Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool

Definition at line 6777 of file pcbnew.py.

◆ COutline()

def pcbnew.SHAPE_POLY_SET.COutline (   self,
  aIndex 
)
COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN

Definition at line 6569 of file pcbnew.py.

◆ CPolygon()

def pcbnew.SHAPE_POLY_SET.CPolygon (   self,
  aIndex 
)
CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &

Definition at line 6577 of file pcbnew.py.

◆ CPolygons()

def pcbnew.SHAPE_POLY_SET.CPolygons (   self)
CPolygons(SHAPE_POLY_SET self) -> std::vector< SHAPE_POLY_SET::POLYGON,std::allocator< SHAPE_POLY_SET::POLYGON > > const &

Definition at line 6581 of file pcbnew.py.

◆ CVertex()

def pcbnew.SHAPE_POLY_SET.CVertex (   self,
args 
)
    CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
    CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
    CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I

Definition at line 6499 of file pcbnew.py.

Here is the caller graph for this function:

◆ Deflate()

def pcbnew.SHAPE_POLY_SET.Deflate (   self,
  aAmount,
  aCornerStrategy,
  aMaxError 
)
Deflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError)

Definition at line 6689 of file pcbnew.py.

◆ DeletePolygon()

def pcbnew.SHAPE_POLY_SET.DeletePolygon (   self,
  aIdx 
)
DeletePolygon(SHAPE_POLY_SET self, int aIdx)

Definition at line 6819 of file pcbnew.py.

◆ DeletePolygonAndTriangulationData()

def pcbnew.SHAPE_POLY_SET.DeletePolygonAndTriangulationData (   self,
  aIdx,
  aUpdateHash = True 
)
DeletePolygonAndTriangulationData(SHAPE_POLY_SET self, int aIdx, bool aUpdateHash=True)

Definition at line 6823 of file pcbnew.py.

◆ Fillet()

def pcbnew.SHAPE_POLY_SET.Fillet (   self,
  aRadius,
  aErrorMax 
)
Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET

Definition at line 6843 of file pcbnew.py.

◆ FilletPolygon()

def pcbnew.SHAPE_POLY_SET.FilletPolygon (   self,
  aRadius,
  aErrorMax,
  aIndex 
)
FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON

Definition at line 6835 of file pcbnew.py.

◆ Format()

def pcbnew.SHAPE_POLY_SET.Format (   self,
  aCplusPlus = True 
)
Format(SHAPE_POLY_SET self, bool aCplusPlus=True) -> string

Reimplemented from pcbnew.SHAPE.

Definition at line 6729 of file pcbnew.py.

◆ Fracture()

def pcbnew.SHAPE_POLY_SET.Fracture (   self,
  aFastMode 
)
Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6701 of file pcbnew.py.

◆ FullPointCount()

def pcbnew.SHAPE_POLY_SET.FullPointCount (   self)
FullPointCount(SHAPE_POLY_SET self) -> int

Definition at line 6531 of file pcbnew.py.

◆ GetArcs()

def pcbnew.SHAPE_POLY_SET.GetArcs (   self,
  aArcBuffer 
)
GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)

Definition at line 6478 of file pcbnew.py.

◆ GetGlobalIndex()

def pcbnew.SHAPE_POLY_SET.GetGlobalIndex (   self,
  aRelativeIndices,
  aGlobalIdx 
)
GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool

Definition at line 6442 of file pcbnew.py.

◆ GetHash()

def pcbnew.SHAPE_POLY_SET.GetHash (   self)
GetHash(SHAPE_POLY_SET self) -> HASH_128

Definition at line 6434 of file pcbnew.py.

◆ GetNeighbourIndexes()

def pcbnew.SHAPE_POLY_SET.GetNeighbourIndexes (   self,
  aGlobalIndex,
  aPrevious,
  aNext 
)
GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool

Definition at line 6507 of file pcbnew.py.

◆ GetRelativeIndices()

def pcbnew.SHAPE_POLY_SET.GetRelativeIndices (   self,
  aGlobalIdx,
  aRelativeIndices 
)
GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool

Definition at line 6438 of file pcbnew.py.

◆ HasHoles()

def pcbnew.SHAPE_POLY_SET.HasHoles (   self)
HasHoles(SHAPE_POLY_SET self) -> bool

Definition at line 6709 of file pcbnew.py.

◆ HasTouchingHoles()

def pcbnew.SHAPE_POLY_SET.HasTouchingHoles (   self)
HasTouchingHoles(SHAPE_POLY_SET self) -> bool

Definition at line 6713 of file pcbnew.py.

◆ Hole()

def pcbnew.SHAPE_POLY_SET.Hole (   self,
  aOutline,
  aHole 
)
Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN

Definition at line 6554 of file pcbnew.py.

◆ HoleCount()

def pcbnew.SHAPE_POLY_SET.HoleCount (   self,
  aOutline 
)
HoleCount(SHAPE_POLY_SET self, int aOutline) -> int

Definition at line 6535 of file pcbnew.py.

◆ Inflate()

def pcbnew.SHAPE_POLY_SET.Inflate (   self,
  aAmount,
  aCornerStrategy,
  aMaxError,
  aSimplify = False 
)
Inflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify=False)

Definition at line 6685 of file pcbnew.py.

◆ InflateWithLinkedHoles()

def pcbnew.SHAPE_POLY_SET.InflateWithLinkedHoles (   self,
  aFactor,
  aCornerStrategy,
  aMaxError,
  aFastMode 
)
InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, CORNER_STRATEGY aCornerStrategy, int aMaxError, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6697 of file pcbnew.py.

◆ InsertVertex()

def pcbnew.SHAPE_POLY_SET.InsertVertex (   self,
  aGlobalIndex,
  aNewVertex 
)
InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)

Definition at line 6495 of file pcbnew.py.

◆ IsEmpty()

def pcbnew.SHAPE_POLY_SET.IsEmpty (   self)
IsEmpty(SHAPE_POLY_SET self) -> bool

Definition at line 6781 of file pcbnew.py.

◆ IsPolygonSelfIntersecting()

def pcbnew.SHAPE_POLY_SET.IsPolygonSelfIntersecting (   self,
  aPolygonIndex 
)
IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool

Definition at line 6511 of file pcbnew.py.

◆ IsSelfIntersecting()

def pcbnew.SHAPE_POLY_SET.IsSelfIntersecting (   self)
IsSelfIntersecting(SHAPE_POLY_SET self) -> bool

Definition at line 6515 of file pcbnew.py.

◆ IsTriangulationUpToDate()

def pcbnew.SHAPE_POLY_SET.IsTriangulationUpToDate (   self)
IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool

Definition at line 6430 of file pcbnew.py.

◆ IsVertexInHole()

def pcbnew.SHAPE_POLY_SET.IsVertexInHole (   self,
  aGlobalIdx 
)
IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool

Definition at line 6865 of file pcbnew.py.

◆ Iterate()

def pcbnew.SHAPE_POLY_SET.Iterate (   self,
args 
)
    Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
    Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
    Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR

Definition at line 6585 of file pcbnew.py.

Here is the caller graph for this function:

◆ IterateFromVertexWithHoles()

def pcbnew.SHAPE_POLY_SET.IterateFromVertexWithHoles (   self,
  aGlobalIdx 
)
IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR

Definition at line 6615 of file pcbnew.py.

◆ IterateSegments()

def pcbnew.SHAPE_POLY_SET.IterateSegments (   self,
args 
)
    IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
    IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
    IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR

Definition at line 6619 of file pcbnew.py.

Here is the caller graph for this function:

◆ IterateSegmentsWithHoles()

def pcbnew.SHAPE_POLY_SET.IterateSegmentsWithHoles (   self,
args 
)
    IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
    IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR

Definition at line 6635 of file pcbnew.py.

Here is the caller graph for this function:

◆ IterateWithHoles()

def pcbnew.SHAPE_POLY_SET.IterateWithHoles (   self,
args 
)
    IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
    IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR

Definition at line 6593 of file pcbnew.py.

Here is the caller graph for this function:

◆ Mirror()

def pcbnew.SHAPE_POLY_SET.Mirror (   self,
  aRef,
  aFlipDirection 
)
Mirror(SHAPE_POLY_SET self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)

Definition at line 6733 of file pcbnew.py.

◆ NewHole()

def pcbnew.SHAPE_POLY_SET.NewHole (   self,
  aOutline = -1 
)
NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int

Definition at line 6454 of file pcbnew.py.

◆ NewOutline()

def pcbnew.SHAPE_POLY_SET.NewOutline (   self)
NewOutline(SHAPE_POLY_SET self) -> int

Definition at line 6450 of file pcbnew.py.

◆ NormalizeAreaOutlines()

def pcbnew.SHAPE_POLY_SET.NormalizeAreaOutlines (   self)
NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int

Definition at line 6725 of file pcbnew.py.

◆ OffsetLineChain()

def pcbnew.SHAPE_POLY_SET.OffsetLineChain (   self,
  aLine,
  aAmount,
  aCornerStrategy,
  aMaxError,
  aSimplify 
)
OffsetLineChain(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aLine, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify)

Definition at line 6693 of file pcbnew.py.

◆ Outline()

def pcbnew.SHAPE_POLY_SET.Outline (   self,
args 
)
    Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
    Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN

Definition at line 6539 of file pcbnew.py.

Here is the caller graph for this function:

◆ OutlineCount()

def pcbnew.SHAPE_POLY_SET.OutlineCount (   self)
OutlineCount(SHAPE_POLY_SET self) -> int

Definition at line 6523 of file pcbnew.py.

◆ PointInside()

def pcbnew.SHAPE_POLY_SET.PointInside (   self,
  aPt,
  aAccuracy = 0,
  aUseBBoxCache = False 
)
PointInside(SHAPE_POLY_SET self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool

Reimplemented from pcbnew.SHAPE.

Definition at line 6765 of file pcbnew.py.

◆ PointOnEdge()

def pcbnew.SHAPE_POLY_SET.PointOnEdge (   self,
  aP,
  aAccuracy = 0 
)
PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP, int aAccuracy=0) -> bool

Definition at line 6745 of file pcbnew.py.

◆ Polygon()

def pcbnew.SHAPE_POLY_SET.Polygon (   self,
args 
)
    Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
    Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &

Definition at line 6558 of file pcbnew.py.

Here is the caller graph for this function:

◆ RebuildHolesFromContours()

def pcbnew.SHAPE_POLY_SET.RebuildHolesFromContours (   self)
RebuildHolesFromContours(SHAPE_POLY_SET self)

Definition at line 6681 of file pcbnew.py.

◆ RemoveAllContours()

def pcbnew.SHAPE_POLY_SET.RemoveAllContours (   self)
RemoveAllContours(SHAPE_POLY_SET self)

Definition at line 6792 of file pcbnew.py.

◆ RemoveContour()

def pcbnew.SHAPE_POLY_SET.RemoveContour (   self,
  aContourIdx,
  aPolygonIdx = -1 
)
RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)

Definition at line 6796 of file pcbnew.py.

◆ RemoveNullSegments()

def pcbnew.SHAPE_POLY_SET.RemoveNullSegments (   self)
RemoveNullSegments(SHAPE_POLY_SET self) -> int

Definition at line 6804 of file pcbnew.py.

◆ RemoveOutline()

def pcbnew.SHAPE_POLY_SET.RemoveOutline (   self,
  aOutlineIdx 
)
RemoveOutline(SHAPE_POLY_SET self, int aOutlineIdx)

Definition at line 6800 of file pcbnew.py.

◆ RemoveVertex()

def pcbnew.SHAPE_POLY_SET.RemoveVertex (   self,
args 
)
    RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
    RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)

Definition at line 6785 of file pcbnew.py.

Here is the caller graph for this function:

◆ Rotate()

def pcbnew.SHAPE_POLY_SET.Rotate (   self,
args 
)
Rotate(SHAPE_POLY_SET self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })

Reimplemented from pcbnew.SHAPE.

Definition at line 6737 of file pcbnew.py.

◆ SetVertex()

def pcbnew.SHAPE_POLY_SET.SetVertex (   self,
args 
)
    SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
    SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)

Definition at line 6808 of file pcbnew.py.

Here is the caller graph for this function:

◆ Simplify()

def pcbnew.SHAPE_POLY_SET.Simplify (   self,
  aFastMode 
)
Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6717 of file pcbnew.py.

◆ SimplifyOutlines()

def pcbnew.SHAPE_POLY_SET.SimplifyOutlines (   self,
  aMaxError = 0 
)
SimplifyOutlines(SHAPE_POLY_SET self, int aMaxError=0)

Definition at line 6721 of file pcbnew.py.

◆ SquaredDistance()

def pcbnew.SHAPE_POLY_SET.SquaredDistance (   self,
args 
)
    SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly, VECTOR2I aNearest) -> SEG::ecoord
    SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly=False) -> SEG::ecoord

Reimplemented from pcbnew.SHAPE.

Definition at line 6854 of file pcbnew.py.

Here is the caller graph for this function:

◆ SquaredDistanceToPolygon()

def pcbnew.SHAPE_POLY_SET.SquaredDistanceToPolygon (   self,
args 
)
    SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
    SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord

Definition at line 6847 of file pcbnew.py.

Here is the caller graph for this function:

◆ SquaredDistanceToSeg()

def pcbnew.SHAPE_POLY_SET.SquaredDistanceToSeg (   self,
  aSegment,
  aNearest = None 
)
SquaredDistanceToSeg(SHAPE_POLY_SET self, SEG aSegment, VECTOR2I aNearest=None) -> SEG::ecoord

Definition at line 6861 of file pcbnew.py.

◆ Subset()

def pcbnew.SHAPE_POLY_SET.Subset (   self,
  aFirstPolygon,
  aLastPolygon 
)
Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET

Definition at line 6546 of file pcbnew.py.

◆ TotalVertices()

def pcbnew.SHAPE_POLY_SET.TotalVertices (   self)
TotalVertices(SHAPE_POLY_SET self) -> int

Definition at line 6815 of file pcbnew.py.

◆ TriangulatedPolyCount()

def pcbnew.SHAPE_POLY_SET.TriangulatedPolyCount (   self)
TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int

Definition at line 6519 of file pcbnew.py.

◆ TriangulatedPolygon()

def pcbnew.SHAPE_POLY_SET.TriangulatedPolygon (   self,
  aIndex 
)
TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *

Definition at line 6565 of file pcbnew.py.

◆ Unfracture()

def pcbnew.SHAPE_POLY_SET.Unfracture (   self,
  aFastMode 
)
Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 6705 of file pcbnew.py.

◆ UnitSet()

def pcbnew.SHAPE_POLY_SET.UnitSet (   self,
  aPolygonIndex 
)
UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET

Definition at line 6550 of file pcbnew.py.

◆ UpdateTriangulationDataHash()

def pcbnew.SHAPE_POLY_SET.UpdateTriangulationDataHash (   self)
UpdateTriangulationDataHash(SHAPE_POLY_SET self)

Definition at line 6827 of file pcbnew.py.

◆ VertexCount()

def pcbnew.SHAPE_POLY_SET.VertexCount (   self,
  aOutline = -1,
  aHole = -1 
)
VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int

Definition at line 6527 of file pcbnew.py.

Member Data Documentation

◆ PM_FAST

_pcbnew pcbnew.SHAPE_POLY_SET.PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
static

Definition at line 6648 of file pcbnew.py.

◆ PM_STRICTLY_SIMPLE

_pcbnew pcbnew.SHAPE_POLY_SET.PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
static

Definition at line 6650 of file pcbnew.py.

Property Documentation

◆ thisown

property pcbnew.SHAPE_POLY_SET.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 6412 of file pcbnew.py.


The documentation for this class was generated from the following file: