mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Fixes
This commit is contained in:
@@ -452,22 +452,22 @@ namespace {
|
|||||||
std::vector<IfcSchema::IfcPresentationStyle> prs_styles;
|
std::vector<IfcSchema::IfcPresentationStyle> prs_styles;
|
||||||
|
|
||||||
#ifdef SCHEMA_HAS_IfcStyleAssignmentSelect
|
#ifdef SCHEMA_HAS_IfcStyleAssignmentSelect
|
||||||
auto style_assignments = si->Styles();
|
auto style_assignments = si.Styles();
|
||||||
for (auto kt = style_assignments->begin(); kt != style_assignments->end(); ++kt) {
|
for (auto kt = style_assignments.begin(); kt != style_assignments.end(); ++kt) {
|
||||||
// Using IfcPresentationStyleAssignment is deprecated, use the direct assignment of a subtype of IfcPresentationStyle instead.
|
// Using IfcPresentationStyleAssignment is deprecated, use the direct assignment of a subtype of IfcPresentationStyle instead.
|
||||||
auto style_k = (*kt)->as<IfcSchema::IfcPresentationStyle>();
|
auto style_k = (*kt).as<IfcSchema::IfcPresentationStyle>();
|
||||||
if (style_k) {
|
if (style_k) {
|
||||||
prs_styles.push_back(style_k);
|
prs_styles.push_back(style_k);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto style_assignment = (*kt)->as<IfcSchema::IfcPresentationStyleAssignment>();
|
auto style_assignment = (*kt).as<IfcSchema::IfcPresentationStyleAssignment>();
|
||||||
if (!style_assignment) {
|
if (!style_assignment) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only in case of 2x3 or old style IfcPresentationStyleAssignment
|
// Only in case of 2x3 or old style IfcPresentationStyleAssignment
|
||||||
auto styles = style_assignment->Styles();
|
auto styles = style_assignment.Styles();
|
||||||
#elif defined(SCHEMA_HAS_IfcPresentationStyleAssignment)
|
#elif defined(SCHEMA_HAS_IfcPresentationStyleAssignment)
|
||||||
std::vector<IfcSchema::IfcPresentationStyleAssignment> style_assignments = si.Styles();
|
std::vector<IfcSchema::IfcPresentationStyleAssignment> style_assignments = si.Styles();
|
||||||
for (auto& style_assignment : style_assignments) {
|
for (auto& style_assignment : style_assignments) {
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include "svgfill.h"
|
#include "svgfill.h"
|
||||||
#include "progress.h"
|
#include "progress.h"
|
||||||
|
|
||||||
#include <boost/optional.hpp>
|
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
|
|
||||||
@@ -35,7 +34,7 @@ int main(int argc, char** argv) {
|
|||||||
bool valid_command_line = false;
|
bool valid_command_line = false;
|
||||||
bool random_color = false;
|
bool random_color = false;
|
||||||
double eps = 1.e-5;
|
double eps = 1.e-5;
|
||||||
boost::optional<std::string> class_name;
|
std::optional<std::string> class_name;
|
||||||
|
|
||||||
std::vector<std::string> flags;
|
std::vector<std::string> flags;
|
||||||
std::vector<std::string> args;
|
std::vector<std::string> args;
|
||||||
|
|||||||
Reference in New Issue
Block a user