STEP export: Do not set BRepBuilderAPI precision.
This caused issues when loading some STEP models. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15485
This commit is contained in:
parent
87ba1f7ea0
commit
f3fdfa73e6
|
@ -203,7 +203,6 @@ STEP_PCB_MODEL::STEP_PCB_MODEL( const wxString& aPcbName )
|
||||||
m_mergeOCCMaxDist = OCC_MAX_DISTANCE_TO_MERGE_POINTS;
|
m_mergeOCCMaxDist = OCC_MAX_DISTANCE_TO_MERGE_POINTS;
|
||||||
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_pcbName = aPcbName;
|
m_pcbName = aPcbName;
|
||||||
BRepBuilderAPI::Precision( m_mergeOCCMaxDist );
|
|
||||||
m_maxError = pcbIUScale.mmToIU( ARC_TO_SEGMENT_MAX_ERROR_MM );
|
m_maxError = pcbIUScale.mmToIU( ARC_TO_SEGMENT_MAX_ERROR_MM );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -473,7 +472,6 @@ void STEP_PCB_MODEL::OCCSetMergeMaxDistance( double aDistance )
|
||||||
{
|
{
|
||||||
// Ensure a minimal value (in mm)
|
// Ensure a minimal value (in mm)
|
||||||
m_mergeOCCMaxDist = aDistance;
|
m_mergeOCCMaxDist = aDistance;
|
||||||
BRepBuilderAPI::Precision( m_mergeOCCMaxDist );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue