mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:50:02 +00:00
Merge branch 'master' into v0.6.0
This commit is contained in:
@@ -409,7 +409,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcArbitraryProfileDefWithVoids*
|
|||||||
}
|
}
|
||||||
ShapeFix_Shape sfs(mf.Face());
|
ShapeFix_Shape sfs(mf.Face());
|
||||||
sfs.Perform();
|
sfs.Perform();
|
||||||
face = TopoDS::Face(sfs.Shape());
|
face = sfs.Shape();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -325,11 +325,19 @@ namespace {
|
|||||||
Bnd_Box A;
|
Bnd_Box A;
|
||||||
BRepBndLib::Add(a, A);
|
BRepBndLib::Add(a, A);
|
||||||
|
|
||||||
|
if (A.IsVoid()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
TopTools_ListIteratorOfListOfShape it(b);
|
TopTools_ListIteratorOfListOfShape it(b);
|
||||||
for (; it.More(); it.Next()) {
|
for (; it.More(); it.Next()) {
|
||||||
Bnd_Box B;
|
Bnd_Box B;
|
||||||
BRepBndLib::Add(it.Value(), B);
|
BRepBndLib::Add(it.Value(), B);
|
||||||
|
|
||||||
|
if (B.IsVoid()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (A.Distance(B) < p) {
|
if (A.Distance(B) < p) {
|
||||||
c.Append(it.Value());
|
c.Append(it.Value());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user