Skip to content

Commit

Permalink
extend framesAssembly by vessels
Browse files Browse the repository at this point in the history
  • Loading branch information
MarAl3 committed Feb 8, 2025
1 parent bfd195b commit 550edea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fuselage/CCPACSFramesAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "CCPACSFrame.h"
#include "CCPACSFuselage.h"
#include "CCPACSDuct.h"
#include "CCPACSVessel.h"
#include "ITiglFuselageDuctStructure.h"

namespace tigl
Expand All @@ -44,9 +45,12 @@ void CCPACSFramesAssembly::Invalidate(const boost::optional<std::string>& source
m_frames[i]->Invalidate(source);
}

// ToDo: Add vessels

CTiglRelativelyPositionedComponent const* CCPACSFramesAssembly::GetParentComponent() const
{
if (IsParent<CCPACSVesselStructure>()) {
return GetParent<CCPACSVesselStructure>()->GetParent();
}
if (IsParent<CCPACSDuctStructure>()) {
return GetParent<CCPACSDuctStructure>()->GetParent();
}
Expand Down

0 comments on commit 550edea

Please sign in to comment.