BHoM_Adapter: Distinct method in Replace causes assigned properties of coincident objects to be lost #126
Labels
severity:medium
Slows progress, but workaround is possible
size:S
Measured in minutes
type:bug
Error or unexpected behaviour
Description:
The Replace method in the BHoM_Adapter uses the
Enumerable.Distinct
method to cull duplicates using a comparer. If you push two lines that share a node, with one node being assigned a property, then that property will be lost when the lines are pushed.How to replicate:
Point
objects and aLine
, that shares aPoint
with one of the existingPoint
Bar
using the defined lineConstraint6DOF
Node
objects using thePoint
objects, and assign the support to theNode
that is conicident with theBar
Bar
from the twoNode
objectsBar
objects using the same Push componentExpected behaviour:
When pushing the two
Bar
objects described above, the BHoM_Adapter should recognise that theNode
objects have the same position but different properties and merge them.This does raise the question about the scenario when the two
Node
objects have differingConstraint6DOF
objects assigned.Test file(s):
https://burohappold.sharepoint.com/:f:/s/BHoM/ErI9qiifV1NMhuiwH548i8UBamTci0e45pNA1XuJGPDOMA?e=qNFYUY
The text was updated successfully, but these errors were encountered: