KiCad Pcbnew Python Scripting
All Classes Namespaces Files Functions Variables Properties
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, *args)
 
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 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

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

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE_BASE
 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 6860 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 6866 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 6913 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 6909 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 6917 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 6937 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 6925 of file pcbnew.py.

◆ Area()

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

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

◆ BBoxFromCaches()

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

Definition at line 7224 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 7104 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 7118 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 7111 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 7125 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 7220 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 7317 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 6877 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 7286 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 7278 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 7024 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 7051 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 7078 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 7093 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 7059 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 6933 of file pcbnew.py.

◆ CloneDropTriangulation()

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

Definition at line 6897 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 7200 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 7212 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 7208 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 7228 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 7020 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 7028 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 7032 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 6950 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 7140 of file pcbnew.py.

◆ DeletePolygon()

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

Definition at line 7266 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 7270 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 7290 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 7282 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 7180 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 7152 of file pcbnew.py.

◆ FullPointCount()

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

Definition at line 6982 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 6929 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 6893 of file pcbnew.py.

◆ GetHash()

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

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

◆ HasHoles()

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

Definition at line 7160 of file pcbnew.py.

◆ HasTouchingHoles()

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

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

◆ HoleCount()

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

Definition at line 6986 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 7136 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 7148 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 6946 of file pcbnew.py.

◆ IsEmpty()

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

Definition at line 7232 of file pcbnew.py.

◆ IsPolygonSelfIntersecting()

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

Definition at line 6962 of file pcbnew.py.

◆ IsSelfIntersecting()

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

Definition at line 6966 of file pcbnew.py.

◆ IsTriangulationUpToDate()

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

Definition at line 6881 of file pcbnew.py.

◆ IsVertexInHole()

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

Definition at line 7312 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 7036 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 7066 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 7070 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 7086 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 7044 of file pcbnew.py.

Here is the caller graph for this function:

◆ Mirror()

def pcbnew.SHAPE_POLY_SET.Mirror (   self,
args 
)
Mirror(SHAPE_POLY_SET self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })

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

◆ NewOutline()

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

Definition at line 6901 of file pcbnew.py.

◆ NormalizeAreaOutlines()

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

Definition at line 7176 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 7144 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 6990 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 6974 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 7216 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 7196 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 7009 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 7132 of file pcbnew.py.

◆ RemoveAllContours()

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

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

◆ RemoveNullSegments()

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

Definition at line 7251 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 7236 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 7188 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 7255 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 7168 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 7172 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 7301 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 7294 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 7308 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 6997 of file pcbnew.py.

◆ TotalVertices()

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

Definition at line 7262 of file pcbnew.py.

◆ TriangulatedPolyCount()

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

Definition at line 6970 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 7016 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 7156 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 7001 of file pcbnew.py.

◆ UpdateTriangulationDataHash()

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

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

Member Data Documentation

◆ PM_FAST

pcbnew.SHAPE_POLY_SET.PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
static

Definition at line 7099 of file pcbnew.py.

◆ PM_STRICTLY_SIMPLE

pcbnew.SHAPE_POLY_SET.PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
static

Definition at line 7101 of file pcbnew.py.

Property Documentation

◆ thisown

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 6863 of file pcbnew.py.


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