Re: Find cluster from polygon - script

2016-12-14 Thread Fabricio Chamon
thanks guys. In the end I went for loops, and even created a handy function that builds a dictionary with component ID -> cluster mappings. It is not super fast, and it only supports 1 to 1 relationships, but served well for its purpose. I just need one call, so I stored everything into an ice

Re: Find cluster from polygon - script

2016-12-13 Thread Martin Yara
If you are using python, you can get all clusters elements with Cluster.Elements and then search in that list with 'if .. in", that would save you from looping through all the elements. But, since you can have one poly index in multiple clusters you'll still need to loop through all the

Re: Find cluster from polygon - script

2016-12-13 Thread Matt Lind
Depends how the polygon is referenced in your code. A Polygon is a geometry component and part of the object's primitive. A Cluster is a type of metadata and lives outside the geometry, but makes references to parts of the geometry. Most methods provided in the SDK work in a top-down