Minor Pcbnew Python scripting fix to expose SHAPE_POLY_SET interface
The recent refactoring work to move zones from CPolyLine to SHAPE_POLY_SET resulted in a reduction in pcbnew's python capabilities. This change exposed SHAPE_POLY_SET to restore that functionality (albeit with slightly different method names)
This commit is contained in:
parent
cbb5708c36
commit
b321efffaf
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2012 NBEE Embedded Systems, Miguel Angel Ajo <miguelangel@nbee.es>
|
||||
* Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -130,6 +130,9 @@ principle should be easily implemented by adapting the current STL containers.
|
|||
#include <../polygon/PolyLine.h>
|
||||
%include <../polygon/PolyLine.h>
|
||||
|
||||
#include <geometry/shape_poly_set.h>
|
||||
%include <geometry/shape_poly_set.h>
|
||||
|
||||
// ignore warning relative to operator = and operator ++:
|
||||
#pragma SWIG nowarn=362,383
|
||||
|
||||
|
|
|
@ -760,9 +760,6 @@ class SHAPE_POLY_SET : public SHAPE
|
|||
///> For aFastMode meaning, see function booleanOp
|
||||
void Fracture( POLYGON_MODE aFastMode );
|
||||
|
||||
///> Converts a set of slitted polygons to a set of polygons with holes
|
||||
void Unfracture();
|
||||
|
||||
///> Returns true if the polygon set has any holes.
|
||||
bool HasHoles() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue