Skip to content

Commit

Permalink
🐛 connection missing in case of plate
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Pellegrino committed May 3, 2024
1 parent f8d29ec commit d632960
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FemDesign.Grasshopper/ModellingTools/LineConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ protected override void SolveInstance(IGH_DataAccess DA)
{
refs[idx] = new GuidListType(bar.BarPart);
}
else if (elements[idx] is Shells.Panel panel)
{
refs[idx] = new GuidListType(panel.InternalPanels.IntPanels[0].Guid);
}
else
{
refs[idx] = new GuidListType(elements[idx]);
Expand Down
4 changes: 4 additions & 0 deletions FemDesign.Grasshopper/ModellingTools/PointConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ protected override void SolveInstance(IGH_DataAccess DA)
{
refs[idx] = new GuidListType(bar.BarPart);
}
else if (elements[idx] is Shells.Panel panel)
{
refs[idx] = new GuidListType(panel.InternalPanels.IntPanels[0].Guid);
}
else
{
refs[idx] = new GuidListType(elements[idx]);
Expand Down
4 changes: 4 additions & 0 deletions FemDesign.Grasshopper/ModellingTools/SurfaceConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ protected override void SolveInstance(IGH_DataAccess DA)
{
refs[idx] = new GuidListType(slab.SlabPart);
}
else if (elements[idx] is Shells.Panel panel)
{
refs[idx] = new GuidListType(panel.InternalPanels.IntPanels[0].Guid);
}
else
{
refs[idx] = new GuidListType(elements[idx]);
Expand Down

0 comments on commit d632960

Please sign in to comment.