BHoM / BHoM_Engine

Internal manipulation of the BHoM
GNU Lesser General Public License v3.0
26 stars 15 forks source link

Structure_Engine: IInterpolateProfile not considering TaperedProfile positions #2230

Open castroecosta opened 4 years ago

castroecosta commented 4 years ago

Description:

Issue following on our last discussion about ACORN non-prismatic beams with @al-fisher, @IsakNaslundBh, @peterjamesnugent , @alelom, and @pawelbaran. Apologies in advance for any newbie formal mistake, this is my first ever GitHub issue.

Steps to reproduce:

I’m reproducing a Grasshopper implementation of a non-prismatic beam, this time using BHoM in GH. Currently experimenting with a TaperedProfile of a TSectionProfile beam, with four profiles in oddly distributed positions (0.0, 0.2, 0.5, 1.0). When using IInterpolateProfile for visualizing shape of beam, it seems input profiles are placed evenly along the bar, whereas expected distribution should be according to input positions.

Expected behaviour:

Distribution of profiles along bar should be according to input positions.

Test file(s):

Attaching .zipped Grasshopper file. 201203_ACORN_nonprismaticbeam.zip

peterjamesnugent commented 5 months ago

Having a think about this, we could feed an input of a Line and align it to that - but sometimes you might want to align it in two directions (i.e. top and left, top and right etc.).

Alternatively, we could have an eNum for the different directions and combinations - but then a second input would needed to specify whether it's start/end that you want to align it to.