mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 12:26:57 +00:00
Log messages
This commit is contained in:
@@ -1035,13 +1035,13 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l,
|
|||||||
if (!is_plane) {
|
if (!is_plane) {
|
||||||
TopoDS_Shape surface_shell;
|
TopoDS_Shape surface_shell;
|
||||||
if (!convert_shape(l->ReferenceSurface(), surface_shell)) {
|
if (!convert_shape(l->ReferenceSurface(), surface_shell)) {
|
||||||
|
Logger::Error("Failed to convert reference surface", l);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (count(surface_shell, TopAbs_FACE) != 1) {
|
if (count(surface_shell, TopAbs_FACE) != 1) {
|
||||||
|
Logger::Error("Non-continuous reference surface", l);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::ofstream ofs("debug.txt");
|
|
||||||
BRepTools::Dump(surface_shell, ofs);
|
|
||||||
surface_face = TopoDS::Face(TopExp_Explorer(surface_shell, TopAbs_FACE).Current());
|
surface_face = TopoDS::Face(TopExp_Explorer(surface_shell, TopAbs_FACE).Current());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user