Skip to content

Commit

Permalink
Use representation instances for reducers
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbradleym committed Dec 24, 2024
1 parent 2a88a1d commit 0620af2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Elements.MEP/src/Fittings/Reducer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ public override void UpdateRepresentations()
var arrows = this.Start.GetArrow(branchSideTransformInverted.OfPoint(startNodeTransform.Origin))
.Concat(this.End.GetArrow(endNodeTransform.Origin)).Concat(GetExtensions());

this.Representation = new Representation(new List<SolidOperation> { sweep1, sweep2 }.Concat(arrows).ToList());
this.RepresentationInstances.Add(new RepresentationInstance(new SolidRepresentation(sweep1), this.Material));
this.RepresentationInstances.Add(new RepresentationInstance(new SolidRepresentation(sweep2), this.Material));
foreach (var arrow in arrows)
{
this.RepresentationInstances.Add(new RepresentationInstance(new SolidRepresentation(arrow), this.Material));
}
}

public override void ApplyAdditionalTransform()
Expand Down

0 comments on commit 0620af2

Please sign in to comment.