Skip to content

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

Description

@adecler

Right now we have a single method in the BHoM that return a data structure of depth 3 (i.e. List<List<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 ?

Metadata

Metadata

Labels

type:questionAsk for further details or start conversation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions