So I have a list of vectors that were created by using the "vector b/w 2 pts" component. Some values are null because there is no distance between the two points. In order to have the Vector list comply with an equal numbered list of Points, I need to replace the null items in the Vector list with a Zero value. Is this possible or is there another way around this? Thanks for the help
Not sure if this is the most efficient way but it does achieve the desired effect.
1) Identify the Null Items [Logic>List>Null Item]
2) Create a SERIES numbering 0 to n, where n is the list length
3) Dispatch both lists equally using the boolean pattern from the Null Items
4) Generate the right number of ZEROs to replace the NULLs
5) MERGE each dispatched list together so that the ZEROs are tagged on the end (similar with the indices)
6) Sort the Indices List and Synchronously sort the original Merged list
7) Simplify tree (same as original structure)
A Similar approach can be taken to find a specific value and then replace eg find 0 and replace with 0.1
NB the graft tree component is redundant since I flattened the inputs to the Merge component.
Danny Boyes
1) Identify the Null Items [Logic>List>Null Item]
2) Create a SERIES numbering 0 to n, where n is the list length
3) Dispatch both lists equally using the boolean pattern from the Null Items
4) Generate the right number of ZEROs to replace the NULLs
5) MERGE each dispatched list together so that the ZEROs are tagged on the end (similar with the indices)
6) Sort the Indices List and Synchronously sort the original Merged list
7) Simplify tree (same as original structure)
A Similar approach can be taken to find a specific value and then replace eg find 0 and replace with 0.1
NB the graft tree component is redundant since I flattened the inputs to the Merge component.
Dec 10, 2009
John
Flawed. And crap.
Jul 27, 2012