Keep DATA TREE structure and remove branches (tricky..)


( Charles C.) #1

Hi there,

I have a tricky data tree operation. I’m using meerkat to get data information for a site modeling. In one tree I get the height values as separate branches (9078 branches). In the other I got the polylines contours of buildings as separate branches (9078 branches). The problem is, there is some duplicate geometries in these polylines countours that I removed and end up with 3291 branches…

How can I keep same number of branches in the polylines countours tree (so 9078) and replacing all the suppressed item with a « null » value ?

(see below to download meerkat file to link. I’m sorry I can’t internalize data (option greyed out :confused:))

1.0_Site_modeling_Script_help_V1.gh (16.1 KB)

MKGIS_file_to_link.zip (1.4 MB)


( Charles C.) #2

so no one have an idea ?


( Charles C.) #3

I figure it out…


#4

I don’t have Meerkat, so I can’t open your definition. But it seems to me that you should just be able to flatten your vector output for your building height and feed it into a List Item component that’s just copied from the last one you have in your polyline filter.


#5

One thing to do that’s helpful when you’re asking questions is to remove as many components that use plug-ins. Here you could do it by internalizing your data from the Meerkat component…


( Charles C.) #6

I didn’t even think about that !! thanks.

I will open a new post with data internalized ! is till have a major issue