mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Less useless logging
This commit is contained in:
@@ -149,8 +149,10 @@ namespace {
|
||||
|
||||
template <>
|
||||
struct dispatch_conversion<ifcopenshell::geometry::taxonomy::type_by_kind::max> {
|
||||
static bool dispatch(ifcopenshell::geometry::kernels::AbstractKernel*, ifcopenshell::geometry::taxonomy::kinds, const ifcopenshell::geometry::taxonomy::ptr& item, IfcGeom::ConversionResults&) {
|
||||
logger::error("No conversion for " + std::to_string(item->kind()));
|
||||
static bool dispatch(ifcopenshell::geometry::kernels::AbstractKernel* k, ifcopenshell::geometry::taxonomy::kinds, const ifcopenshell::geometry::taxonomy::ptr& item, IfcGeom::ConversionResults&) {
|
||||
if (k->partial_success_is_success) {
|
||||
logger::error("No conversion for " + std::to_string(item->kind()));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -169,8 +171,10 @@ namespace {
|
||||
|
||||
template <>
|
||||
struct dispatch_with_upgrade<ifcopenshell::geometry::taxonomy::upgrades::max> {
|
||||
static bool dispatch(ifcopenshell::geometry::kernels::AbstractKernel*, const ifcopenshell::geometry::taxonomy::ptr& item, IfcGeom::ConversionResults&) {
|
||||
logger::error("No conversion with upgrade for " + std::to_string(item->kind()));
|
||||
static bool dispatch(ifcopenshell::geometry::kernels::AbstractKernel* k, const ifcopenshell::geometry::taxonomy::ptr& item, IfcGeom::ConversionResults&) {
|
||||
if (k->partial_success_is_success) {
|
||||
logger::error("No conversion with upgrade for " + std::to_string(item->kind()));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -554,6 +554,11 @@ IfcSchema::IfcStyledItem mapping::find_style(const IfcSchema::IfcRepresentationI
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMaterial& material) {
|
||||
std::vector<IfcSchema::IfcMaterialDefinitionRepresentation> defs = material.HasRepresentation();
|
||||
|
||||
if (defs.size() == 0) {
|
||||
failed_on_purpose_.insert(material);
|
||||
}
|
||||
|
||||
for (auto jt = defs.begin(); jt != defs.end(); ++jt) {
|
||||
std::vector<IfcSchema::IfcRepresentation> reps = (*jt).Representations();
|
||||
std::vector<IfcSchema::IfcStyledItem> styles;
|
||||
|
||||
Reference in New Issue
Block a user