fail on empty poly

This commit is contained in:
Thomas Krijnen
2020-09-30 13:53:46 +02:00
parent bf4bf3d327
commit b3ee2c6511
+3
View File
@@ -759,6 +759,9 @@ bool CgalKernel::convert_impl(const taxonomy::shell *shell, ifcopenshell::geomet
if (!convert(shell, shape)) {
return false;
}
if (shape.size_of_facets() == 0) {
return false;
}
results.emplace_back(ConversionResult(
shell->instance->data().id(),
shell->matrix,