Skip to content

Commit

Permalink
fix(element): Discretize returns correct polyline
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvilans committed Oct 28, 2020
1 parent 9866aa9 commit 36961d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GluLamb/Structure/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ public BeamElement(BeamBase beam)

public override GeometryBase Discretize(double length)
{
var t = Beam.Centreline.DivideByLength(length, true).ToList();
var t = Beam.Centreline.DivideByLength(length, false).ToList();

t.Insert(0, Beam.Centreline.Domain.Min);
t.Add(Beam.Centreline.Domain.Max);

foreach (var conn in Connections)
{
if (conn.ElementA == this)
Expand Down

0 comments on commit 36961d2

Please sign in to comment.