Skip to content

Commit

Permalink
Fix typo (fix #992)
Browse files Browse the repository at this point in the history
  • Loading branch information
svengoldberg committed Feb 22, 2024
1 parent ab2e704 commit ec9857c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions TIGLViewer/src/TIGLViewerDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ void TIGLViewerDocument::exportFuselageCollada()

if (!fileName.isEmpty()) {
START_COMMAND()
double deflection = GetConfiguration().GetAirplaneLenth()
double deflection = GetConfiguration().GetAirplaneLength()
* TIGLViewerSettings::Instance().triangulationAccuracy();
TiglReturnCode err = tiglExportFuselageColladaByUID(m_cpacsHandle, qstringToCstring(fuselageUid), qstringToCstring(fileName), deflection);
if (err != TIGL_SUCCESS) {
Expand Down Expand Up @@ -1537,7 +1537,7 @@ void TIGLViewerDocument::exportMeshedFuselageVTK()
double deflection = 1.0;
if (1) {
START_COMMAND()
deflection = GetConfiguration().GetAirplaneLenth()
deflection = GetConfiguration().GetAirplaneLength()
* TIGLViewerSettings::Instance().triangulationAccuracy();
}

Expand Down Expand Up @@ -1567,7 +1567,7 @@ void TIGLViewerDocument::exportMeshedConfigVTK()
double deflection = 1.0;
if (1) {
START_COMMAND()
deflection = GetConfiguration().GetAirplaneLenth()
deflection = GetConfiguration().GetAirplaneLength()
* TIGLViewerSettings::Instance().triangulationAccuracy();
}

Expand Down Expand Up @@ -1599,7 +1599,7 @@ void TIGLViewerDocument::exportMeshedConfigVTKNoFuse()
double deflection = 1.0;
if (1) {
START_COMMAND()
deflection = GetConfiguration().GetAirplaneLenth()
deflection = GetConfiguration().GetAirplaneLength()
* TIGLViewerSettings::Instance().triangulationAccuracy();
}

Expand Down
2 changes: 1 addition & 1 deletion src/api/tigl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7082,7 +7082,7 @@ TIGL_COMMON_EXPORT TiglReturnCode tiglConfigurationGetLength(TiglCPACSConfigurat
try {
tigl::CCPACSConfigurationManager& manager = tigl::CCPACSConfigurationManager::GetInstance();
tigl::CCPACSConfiguration& config = manager.GetConfiguration(cpacsHandle);
*pLength = config.GetAirplaneLenth();
*pLength = config.GetAirplaneLength();
return TIGL_SUCCESS;
}
catch (const tigl::CTiglError& ex) {
Expand Down
2 changes: 1 addition & 1 deletion src/configuration/CCPACSConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ const CTiglUIDManager& CCPACSConfiguration::GetUIDManager() const
return uidManager;
}

double CCPACSConfiguration::GetAirplaneLenth()
double CCPACSConfiguration::GetAirplaneLength()
{
CTiglPoint min, max;
ConfigurationGetBoundingBox(*this, min, max);
Expand Down
2 changes: 1 addition & 1 deletion src/configuration/CCPACSConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class CCPACSConfiguration
TIGL_EXPORT PTiglFusePlane AircraftFusingAlgo();

// Returns the length of the airplane
TIGL_EXPORT double GetAirplaneLenth();
TIGL_EXPORT double GetAirplaneLength();

// Returns the UID of the loaded configuration.
TIGL_EXPORT const std::string& GetUID() const;
Expand Down

0 comments on commit ec9857c

Please sign in to comment.