KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
Public Member Functions | 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)
 
def Fracture (self)
 
def Unfracture (self)
 
def HasHoles (self)
 
def HasTouchingHoles (self)
 
def Simplify (self)
 
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)
 
def BuildPolysetFromOrientedPaths (self, aPaths, aEvenOdd=False)
 
- 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)
 

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

Additional Inherited Members

- Static Public Attributes inherited from pcbnew.SHAPE
_pcbnew MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
 

Detailed Description

Proxy of C++ SHAPE_POLY_SET class.

Definition at line 6697 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 6703 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 6750 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 6746 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 6754 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, std::optional< int > aMaxError={}) -> int

Definition at line 6774 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 6762 of file pcbnew.py.

◆ Area()

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

Definition at line 6758 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 7025 of file pcbnew.py.

◆ BBoxFromCaches()

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

Definition at line 7057 of file pcbnew.py.

◆ BooleanAdd()

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

Definition at line 6937 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)
    BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)

Definition at line 6951 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)
    BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)

Definition at line 6944 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)
    BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)

Definition at line 6958 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 7053 of file pcbnew.py.

◆ BuildPolysetFromOrientedPaths()

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

Definition at line 7153 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 6714 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 7123 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 7115 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 6861 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 6888 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 6915 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 6930 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 6896 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 6770 of file pcbnew.py.

◆ CloneDropTriangulation()

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

Definition at line 6734 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 7033 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 7045 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 7041 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 7061 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 6857 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 6865 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 6869 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 6787 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 6973 of file pcbnew.py.

◆ DeletePolygon()

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

Definition at line 7103 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 7107 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 7127 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 7119 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 7013 of file pcbnew.py.

◆ Fracture()

def pcbnew.SHAPE_POLY_SET.Fracture (   self)
Fracture(SHAPE_POLY_SET self)

Definition at line 6985 of file pcbnew.py.

◆ FullPointCount()

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

Definition at line 6819 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 6766 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 6730 of file pcbnew.py.

◆ GetHash()

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

Definition at line 6722 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 6795 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 6726 of file pcbnew.py.

◆ HasHoles()

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

Definition at line 6993 of file pcbnew.py.

◆ HasTouchingHoles()

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

Definition at line 6997 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 6842 of file pcbnew.py.

◆ HoleCount()

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

Definition at line 6823 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 6969 of file pcbnew.py.

◆ InflateWithLinkedHoles()

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

Definition at line 6981 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 6783 of file pcbnew.py.

◆ IsEmpty()

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

Definition at line 7065 of file pcbnew.py.

◆ IsPolygonSelfIntersecting()

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

Definition at line 6799 of file pcbnew.py.

◆ IsSelfIntersecting()

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

Definition at line 6803 of file pcbnew.py.

◆ IsTriangulationUpToDate()

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

Definition at line 6718 of file pcbnew.py.

◆ IsVertexInHole()

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

Definition at line 7149 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 6873 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 6903 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 6907 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 6923 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 6881 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 7017 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 6742 of file pcbnew.py.

◆ NewOutline()

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

Definition at line 6738 of file pcbnew.py.

◆ NormalizeAreaOutlines()

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

Definition at line 7009 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 6977 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 6827 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 6811 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 7049 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 7029 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 6846 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 6965 of file pcbnew.py.

◆ RemoveAllContours()

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

Definition at line 7076 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 7080 of file pcbnew.py.

◆ RemoveNullSegments()

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

Definition at line 7088 of file pcbnew.py.

◆ RemoveOutline()

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

Definition at line 7084 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 7069 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 7021 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 7092 of file pcbnew.py.

Here is the caller graph for this function:

◆ Simplify()

def pcbnew.SHAPE_POLY_SET.Simplify (   self)
Simplify(SHAPE_POLY_SET self)

Definition at line 7001 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 7005 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 7138 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 7131 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 7145 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 6834 of file pcbnew.py.

◆ TotalVertices()

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

Definition at line 7099 of file pcbnew.py.

◆ TriangulatedPolyCount()

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

Definition at line 6807 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 6853 of file pcbnew.py.

◆ Unfracture()

def pcbnew.SHAPE_POLY_SET.Unfracture (   self)
Unfracture(SHAPE_POLY_SET self)

Definition at line 6989 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 6838 of file pcbnew.py.

◆ UpdateTriangulationDataHash()

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

Definition at line 7111 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 6815 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 6700 of file pcbnew.py.


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