Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ifcquery committed Mar 20, 2024
1 parent edca2c9 commit a9fdb66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ examples/SimpleViewerExampleQt/SimpleViewerExampleQt.vcxproj.user
examples/SimpleViewerExampleQt/SimpleViewerExampleQt.vcxproj.user
.vs/IfcPlusPlus/v17/DocumentLayout.json
examples/SimpleViewerExampleQt/.vs/SimpleViewerExampleQt/v17/DocumentLayout.json
examples/LoadFileExample/.vs/LoadFileExample/v17/DocumentLayout.json
2 changes: 1 addition & 1 deletion examples/CreateIfcWallAndWriteFile/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void LoadWallExample(shared_ptr<BuildingModel>& ifc_model, bool add_property_set
vec_new_entities.push_back(prop1);
vec_properties.push_back(prop1);
prop1->m_Name = shared_ptr<IfcIdentifier>(new IfcIdentifier()); // name of property 1
prop1->m_Name->m_value = "WallIentifier";
prop1->m_Name->m_value = "WallIdentifier";

shared_ptr<IfcIdentifier> prop1_value(new IfcIdentifier()); // value property
prop1_value->m_value = "W1";
Expand Down
7 changes: 3 additions & 4 deletions examples/LoadFileExample/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,10 @@ int main()
// 2: load the model:
std::cout << "Loading IFC model: ";
step_reader->loadModelFromFile( "example.ifc", ifc_model);

shared_ptr<GeometryConverter> geometry_converter(new GeometryConverter(ifc_model));
shared_ptr<GeometrySettings> geom_settings(new GeometrySettings());
shared_ptr<GeometryConverter> geometry_converter(new GeometryConverter(ifc_model, geom_settings));
geometry_converter->setMessageCallBack(std::bind(&MessageHandler::slotMessageWrapper, &mh, std::placeholders::_1));
shared_ptr<GeometrySettings> geom_settings = geometry_converter->getGeomSettings();


// the number of vertices per circle can be changed here: (default is 14)
int numVerticesPerCircle = geom_settings->getNumVerticesPerCircle();
std::cout << std::endl << "numVerticesPerCircle: " << numVerticesPerCircle << std::endl;
Expand Down

0 comments on commit a9fdb66

Please sign in to comment.