Fix bug in STEP import with curve intersections.

Set BRL precision to 10 nanometers to prevent floating point round errors
from creating arcs that leave gaps in the board outlines.  Note: it may
be prudent to make this setting 100 nanometers if there are gerber export
issues.

Fixes lp:1652406

https://bugs.launchpad.net/kicad/+bug/1652406
This commit is contained in:
Morgan Quigley 2016-12-23 15:46:20 -08:00 committed by Wayne Stambaugh
parent 78a5f450ce
commit 1b9c8676df
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@
#include <BRep_Tool.hxx> #include <BRep_Tool.hxx>
#include <BRepMesh_IncrementalMesh.hxx> #include <BRepMesh_IncrementalMesh.hxx>
#include <BRepBuilderAPI.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx> #include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_Transform.hxx> #include <BRepBuilderAPI_Transform.hxx>
#include <BRepBuilderAPI_MakeFace.hxx> #include <BRepBuilderAPI_MakeFace.hxx>
@ -218,6 +219,7 @@ PCBMODEL::PCBMODEL()
m_thickness = THICKNESS_DEFAULT; m_thickness = THICKNESS_DEFAULT;
m_minx = 1.0e10; // absurdly large number; any valid PCB X value will be smaller m_minx = 1.0e10; // absurdly large number; any valid PCB X value will be smaller
m_mincurve = m_curves.end(); m_mincurve = m_curves.end();
BRepBuilderAPI::Precision( 1.0e-6 );
return; return;
} }