mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Silence remaining compiler warnings
Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geom;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRectangularTrimmedSurface& inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRectangularTrimmedSurface&) {
|
||||
// @todo we'll need to add support for p-curves at some point, but not now.
|
||||
return nullptr;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geom;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRightCircularCone& inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRightCircularCone&) {
|
||||
// @todo
|
||||
return nullptr;
|
||||
/*
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geom;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRightCircularCylinder& inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRightCircularCylinder&) {
|
||||
// @todo
|
||||
return nullptr;
|
||||
/*
|
||||
|
||||
@@ -23,7 +23,7 @@ using namespace ifcopenshell::geom;
|
||||
|
||||
#ifdef SCHEMA_HAS_IfcSphericalSurface
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSphericalSurface& inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSphericalSurface&) {
|
||||
return nullptr;
|
||||
|
||||
/*
|
||||
|
||||
@@ -52,23 +52,8 @@ namespace {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSweptDiskSolid& inst) {
|
||||
auto loop = taxonomy::cast<taxonomy::loop>(map(inst.Directrix()));
|
||||
|
||||
// Start- EndParam became optional in IFC4
|
||||
#ifdef SCHEMA_IfcSweptDiskSolid_StartParam_IS_OPTIONAL
|
||||
auto sp = inst.StartParam();
|
||||
auto ep = inst.EndParam();
|
||||
#else
|
||||
std::optional<double> sp, ep;
|
||||
try {
|
||||
sp = inst.StartParam();
|
||||
ep = inst.EndParam();
|
||||
} catch (const ifcopenshell::exception& e) {
|
||||
logger_.warning("GEO", 293, e);
|
||||
}
|
||||
#endif
|
||||
|
||||
const double tol = settings_.get<settings::Precision>().get();
|
||||
|
||||
#ifdef SCHEMA_HAS_IfcSweptDiskSolidPolygonal
|
||||
const double tol = settings_.get<settings::Precision>().get();
|
||||
if (inst.as<IfcSchema::IfcSweptDiskSolidPolygonal>()) {
|
||||
auto fr = inst.as<IfcSchema::IfcSweptDiskSolidPolygonal>().FilletRadius();
|
||||
if (fr && *fr > tol) {
|
||||
|
||||
@@ -73,7 +73,6 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcTrimmedCurve& inst) {
|
||||
const double tol = settings_.get<settings::Precision>().get();
|
||||
|
||||
trim_cartesian &= has_pnts[0] && has_pnts[1];
|
||||
bool trim_cartesian_failed = !trim_cartesian;
|
||||
if (trim_cartesian) {
|
||||
if ((pnts[0]->ccomponents() - pnts[1]->ccomponents()).norm() < (2 * tol)) {
|
||||
logger_.message(ifcopenshell::logger::LOG_WARNING, "GEO", 295, "Skipping segment with length below tolerance level:", inst);
|
||||
|
||||
@@ -665,7 +665,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSurfaceStyle& style) {
|
||||
auto styles = style.Styles();
|
||||
IfcSchema::IfcSurfaceStyleShading shading;
|
||||
for (auto& s : styles) {
|
||||
if (shading = s.as<IfcSchema::IfcSurfaceStyleShading>()) {
|
||||
if ((shading = s.as<IfcSchema::IfcSurfaceStyleShading>())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -989,7 +989,7 @@ void mapping::initialize_settings() {
|
||||
bool selected_sub_context = false;
|
||||
auto subs = context.HasSubContexts();
|
||||
for (auto& sub : subs) {
|
||||
if (cids.find(context.id()) != cids.end()) {
|
||||
if (cids.find(sub.id()) != cids.end()) {
|
||||
selected_sub_context = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user