mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
fit_halfspace() correct padding
This commit is contained in:
@@ -3329,13 +3329,13 @@ bool IfcGeom::Kernel::fit_halfspace(const TopoDS_Shape& a, const TopoDS_Shape& b
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const double eps = getValue(GV_PRECISION) * 2.;
|
const double eps = getValue(GV_PRECISION) * 1000.;
|
||||||
|
|
||||||
BRepBuilderAPI_MakePolygon poly;
|
BRepBuilderAPI_MakePolygon poly;
|
||||||
poly.Add(P.XYZ() + x.XYZ() * (Umin + eps) + y.XYZ() * (Vmin + eps));
|
poly.Add(P.XYZ() + x.XYZ() * (Umin - eps) + y.XYZ() * (Vmin - eps));
|
||||||
poly.Add(P.XYZ() + x.XYZ() * (Umax + eps) + y.XYZ() * (Vmin + eps));
|
poly.Add(P.XYZ() + x.XYZ() * (Umax + eps) + y.XYZ() * (Vmin - eps));
|
||||||
poly.Add(P.XYZ() + x.XYZ() * (Umax + eps) + y.XYZ() * (Vmax + eps));
|
poly.Add(P.XYZ() + x.XYZ() * (Umax + eps) + y.XYZ() * (Vmax + eps));
|
||||||
poly.Add(P.XYZ() + x.XYZ() * (Umin + eps) + y.XYZ() * (Vmax + eps));
|
poly.Add(P.XYZ() + x.XYZ() * (Umin - eps) + y.XYZ() * (Vmax + eps));
|
||||||
poly.Close();
|
poly.Close();
|
||||||
|
|
||||||
BRepBuilderAPI_MakeFace mf(surf, poly.Wire(), true);
|
BRepBuilderAPI_MakeFace mf(surf, poly.Wire(), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user