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:
parent
78a5f450ce
commit
1b9c8676df
|
@ -52,6 +52,7 @@
|
|||
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepMesh_IncrementalMesh.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <BRepBuilderAPI_MakeEdge.hxx>
|
||||
#include <BRepBuilderAPI_Transform.hxx>
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
|
@ -218,6 +219,7 @@ PCBMODEL::PCBMODEL()
|
|||
m_thickness = THICKNESS_DEFAULT;
|
||||
m_minx = 1.0e10; // absurdly large number; any valid PCB X value will be smaller
|
||||
m_mincurve = m_curves.end();
|
||||
BRepBuilderAPI::Precision( 1.0e-6 );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue