mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
#2218 Decreate (hardcode) angular tolerance on boolean op extrusion detection
This commit is contained in:
@@ -560,13 +560,14 @@ namespace {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @todo use a linear tolernace and the face extrimities, see #2218
|
||||||
const TopoDS_Edge& e = TopoDS::Edge(s);
|
const TopoDS_Edge& e = TopoDS::Edge(s);
|
||||||
if (!get_edge_axis(e, ax)) {
|
if (!get_edge_axis(e, ax)) {
|
||||||
// curved
|
// curved
|
||||||
curved_orthogonal.Add(e);
|
curved_orthogonal.Add(e);
|
||||||
} else if (ax.IsParallel(V, 1.e-5)) {
|
} else if (ax.IsParallel(V, 1.e-7)) {
|
||||||
parallel.Append(e);
|
parallel.Append(e);
|
||||||
} else if (ax.IsNormal(V, 1.e-5)) {
|
} else if (ax.IsNormal(V, 1.e-7)) {
|
||||||
// ortho
|
// ortho
|
||||||
curved_orthogonal.Add(e);
|
curved_orthogonal.Add(e);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user