Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » KiCAD
  • » [Kicad-developers] [PATCH] Zone clearance to pcb edge etc. [RSS Feed]

#1 Jan. 1, 2011 16:33:51

Marco M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] [PATCH] Zone clearance to pcb edge etc.


Hi,

It seems that currently the clearances between zones and pcb edge
segments (and text items and module edge segments on copper layers)
are not something one would expect based on zone clearance settings.
The reason is that, unlike with, e.g., tracks, the minimum zone
thickness is not taken into account when the corresponding items are
converted into polygons. The attached patch fixes that.

marco=== modified file 'pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp'
--- pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp 2010-12-01 07:51:21 +0000
+++ pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp 2011-01-01 12:12:49 +0000
@@ -280,7 +280,7 @@
if( item_boundingbox.Intersects( zone_boundingbox ) )
{
( (EDGE_MODULE*) item )->TransformShapeWithClearanceToPolygon(
- cornerBufferPolysToSubstract, m_ZoneClearance,
+ cornerBufferPolysToSubstract, zone_clearance,
s_CircleToSegmentsCount, s_Correction );
}
}
@@ -297,7 +297,7 @@
case TYPE_DRAWSEGMENT:
( (DRAWSEGMENT*) item )->TransformShapeWithClearanceToPolygon(
cornerBufferPolysToSubstract,
- m_ZoneClearance,
+ zone_clearance,
s_CircleToSegmentsCount,
s_Correction );
break;
@@ -306,7 +306,7 @@
case TYPE_TEXTE:
( (TEXTE_PCB*) item )->TransformShapeWithClearanceToPolygon(
cornerBufferPolysToSubstract,
- m_ZoneClearance,
+ zone_clearance,
s_CircleToSegmentsCount,
s_Correction );
break;

=== modified file 'pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp'
--- pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp 2010-12-29 17:47:32 +0000
+++ pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp 2011-01-01 12:09:00 +0000
@@ -318,7 +318,7 @@
if( item_boundingbox.Intersects( zone_boundingbox ) )
{
( (EDGE_MODULE*) item )->TransformShapeWithClearanceToPolygon(
- cornerBufferPolysToSubstract, m_ZoneClearance,
+ cornerBufferPolysToSubstract, zone_clearance,
s_CircleToSegmentsCount, s_Correction );
}
}
@@ -335,7 +335,7 @@
case TYPE_DRAWSEGMENT:
( (DRAWSEGMENT*) item )->TransformShapeWithClearanceToPolygon(
cornerBufferPolysToSubstract,
- m_ZoneClearance,
+ zone_clearance,
s_CircleToSegmentsCount,
s_Correction );
break;
@@ -344,7 +344,7 @@
case TYPE_TEXTE:
( (TEXTE_PCB*) item )->TransformShapeWithClearanceToPolygon(
cornerBufferPolysToSubstract,
- m_ZoneClearance,
+ zone_clearance,
s_CircleToSegmentsCount,
s_Correction );
break;_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#2 Jan. 9, 2011 21:26:05

Marco M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] [PATCH] Zone clearance to pcb edge etc.


Committed this patch (this time using bazaar branch nick "testing", if
that makes any difference).

marco

On Sat, Jan 1, 2011 at 6:33 PM, Marco Mattila <marco***@*mail.com> wrote:
> Hi,
>
> It seems that currently the clearances between zones and pcb edge
> segments (and text items and module edge segments on copper layers)
> are not something one would expect based on zone clearance settings.
> The reason is that, unlike with, e.g., tracks, the minimum zone
> thickness is not taken into account when the corresponding items are
> converted into polygons. The attached patch fixes that.
>
> marco
>

_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

  • Root
  • » KiCAD
  • » [Kicad-developers] [PATCH] Zone clearance to pcb edge etc. [RSS Feed]

Board footer

Moderator control

Enjoy the 19th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support