We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34cb672 commit 8a7016cCopy full SHA for 8a7016c
src/examples/IfcParseExamples.cpp
@@ -71,8 +71,8 @@ int main(int argc, char** argv) {
71
72
const IfcSchema::IfcWindow* window;
73
if ((window = element->as<IfcSchema::IfcWindow>()) != 0) {
74
- if (window->hasOverallWidth() && window->hasOverallHeight()) {
75
- const double area = window->OverallWidth()*window->OverallHeight();
+ if (window->OverallWidth() && window->OverallHeight()) {
+ const double area = *window->OverallWidth() * *window->OverallHeight();
76
std::cout << "The area of this window is " << area << std::endl;
77
}
78
0 commit comments