KiCad Pcbnew Python Scripting
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 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 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 Inflate (self, *args)
 
def Deflate (self, *args)
 
def InflateWithLinkedHoles (self, aFactor, aCircleSegmentsCount, aFastMode)
 
def Fracture (self, aFastMode)
 
def Unfracture (self, aFastMode)
 
def HasHoles (self)
 
def HasTouchingHoles (self)
 
def Simplify (self, aFastMode)
 
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)
 
def Collide (self, *args)
 
def CollideVertex (self, aPoint, aClosestVertex=None, aClearance=0)
 
def CollideEdge (self, aPoint, aClosestVertex=None, aClearance=0)
 
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 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 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
 
 ALLOW_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ALLOW_ACUTE_CORNERS
 
 CHAMFER_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ACUTE_CORNERS
 
 ROUND_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ACUTE_CORNERS
 
 CHAMFER_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ALL_CORNERS
 
 ROUND_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ALL_CORNERS
 
- 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 6583 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 aOther) -> SHAPE_POLY_SET

Reimplemented from pcbnew.SHAPE.

Definition at line 6589 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 6635 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 6631 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 6655 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 6643 of file pcbnew.py.

◆ Area()

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

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

◆ BBoxFromCaches()

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

Definition at line 6925 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 6818 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 6832 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 6825 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 6921 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 7014 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 6599 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 6987 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 6979 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 6742 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 6765 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 6792 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 6807 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 6773 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 6651 of file pcbnew.py.

◆ CloneDropTriangulation()

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

Definition at line 6619 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 6905 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 6917 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 6913 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 6929 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 6738 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 6746 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 6668 of file pcbnew.py.

Here is the caller graph for this function:

◆ Deflate()

def pcbnew.SHAPE_POLY_SET.Deflate (   self,
args 
)
Deflate(SHAPE_POLY_SET self, int aAmount, int aCircleSegmentsCount, SHAPE_POLY_SET::CORNER_STRATEGY aCornerStrategy=CHAMFER_ALL_CORNERS)

Definition at line 6853 of file pcbnew.py.

◆ DeletePolygon()

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

Definition at line 6967 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 6971 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 6991 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 6983 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 6885 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 6861 of file pcbnew.py.

◆ FullPointCount()

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

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

◆ GetHash()

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

Definition at line 6607 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 6676 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 6611 of file pcbnew.py.

◆ HasHoles()

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

Definition at line 6869 of file pcbnew.py.

◆ HasTouchingHoles()

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

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

◆ HoleCount()

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

Definition at line 6704 of file pcbnew.py.

◆ Inflate()

def pcbnew.SHAPE_POLY_SET.Inflate (   self,
args 
)
Inflate(SHAPE_POLY_SET self, int aAmount, int aCircleSegCount, SHAPE_POLY_SET::CORNER_STRATEGY aCornerStrategy=ROUND_ALL_CORNERS, bool aSimplify=False)

Definition at line 6849 of file pcbnew.py.

◆ InflateWithLinkedHoles()

def pcbnew.SHAPE_POLY_SET.InflateWithLinkedHoles (   self,
  aFactor,
  aCircleSegmentsCount,
  aFastMode 
)
InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, int aCircleSegmentsCount, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

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

◆ IsEmpty()

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

Definition at line 6933 of file pcbnew.py.

◆ IsPolygonSelfIntersecting()

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

Definition at line 6680 of file pcbnew.py.

◆ IsSelfIntersecting()

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

Definition at line 6684 of file pcbnew.py.

◆ IsTriangulationUpToDate()

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

Definition at line 6603 of file pcbnew.py.

◆ IsVertexInHole()

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

Definition at line 7009 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 6750 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 6780 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 6784 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 6800 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 6758 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 6889 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 6627 of file pcbnew.py.

◆ NewOutline()

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

Definition at line 6623 of file pcbnew.py.

◆ NormalizeAreaOutlines()

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

Definition at line 6881 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 6708 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 6692 of file pcbnew.py.

◆ PointOnEdge()

def pcbnew.SHAPE_POLY_SET.PointOnEdge (   self,
  aP 
)
PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP) -> bool

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

Here is the caller graph for this function:

◆ RemoveAllContours()

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

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

◆ RemoveNullSegments()

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

Definition at line 6952 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 6937 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 6893 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 6956 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 6877 of file pcbnew.py.

◆ SquaredDistance()

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

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

Here is the caller graph for this function:

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

◆ TotalVertices()

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

Definition at line 6963 of file pcbnew.py.

◆ TriangulatedPolyCount()

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

Definition at line 6688 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 6734 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 6865 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 6719 of file pcbnew.py.

◆ UpdateTriangulationDataHash()

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

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

Member Data Documentation

◆ ALLOW_ACUTE_CORNERS

pcbnew.SHAPE_POLY_SET.ALLOW_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ALLOW_ACUTE_CORNERS
static

Definition at line 6838 of file pcbnew.py.

◆ CHAMFER_ACUTE_CORNERS

pcbnew.SHAPE_POLY_SET.CHAMFER_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ACUTE_CORNERS
static

Definition at line 6840 of file pcbnew.py.

◆ CHAMFER_ALL_CORNERS

pcbnew.SHAPE_POLY_SET.CHAMFER_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ALL_CORNERS
static

Definition at line 6844 of file pcbnew.py.

◆ PM_FAST

pcbnew.SHAPE_POLY_SET.PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
static

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

◆ ROUND_ACUTE_CORNERS

pcbnew.SHAPE_POLY_SET.ROUND_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ACUTE_CORNERS
static

Definition at line 6842 of file pcbnew.py.

◆ ROUND_ALL_CORNERS

pcbnew.SHAPE_POLY_SET.ROUND_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ALL_CORNERS
static

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


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