Apply the same precision value when merging a compound of faces into a solid just-in-time for subtraction

This commit is contained in:
Thomas Krijnen
2014-06-11 10:35:06 +00:00
parent 79839d487a
commit 18620d29ae
+6
View File
@@ -127,6 +127,12 @@ const TopoDS_Shape& IfcGeom::ensure_fit_for_subtraction(const TopoDS_Shape& shap
const bool is_comp = IfcGeom::is_compound(shape); const bool is_comp = IfcGeom::is_compound(shape);
if ( ! is_comp ) return shape; if ( ! is_comp ) return shape;
IfcGeom::create_solid_from_compound(shape, solid); IfcGeom::create_solid_from_compound(shape, solid);
// If the SEW_SHELLS option had been set this precision had been applied
// at the end of the generic IfcGeom::convert_shape() call.
const double precision = IfcGeom::GetValue(GV_PRECISION);
IfcGeom::apply_tolerance(solid, precision);
return solid; return solid;
} }