BHoM / BHoM/BHoM_UI

Should we support data structure deeper than List<List<T>> ?

Open
#381 1 comment 0 reactions 5 assignees Claimed by @albinber View on GitHub
type:question
Dominant language
C#
Stars
9
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Right now we have a single method in the BHoM that return a data structure of depth 3 (i.e. `List>>`):

```
System.Collections.Generic.List`1[System.Collections.Generic.List`1[System.Collections.Generic.List`1[BH.oM.Dimensional.IElement1D]]] DistributeOutlines(System.Collections.Generic.List`1[System.Collections.Generic.List`1[BH.oM.Dimensional.IElement1D]], Boolean, Double)
```

There are no methods that take inputs deeper than level 2.

It feels to me that any method that requires inputs/outputs deeper than level 2 is a red-flag for refactoring. In a way this is no different than a Grasshopper script that requires complex data tree structures to work. As always, I can be wrong as I don't know the context of this method.

So my question is: should we refactor `DistributeOutlines` or should be provide support for deep data structures in the UI ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.