Surface Numbering in Grasshopper

It is a beginner level inquiry, however, any sort of help is highly appreciated.

In grasshopper, how can I define the surface numbers of all the breps in such a way that all the common surfaces have same number. Also, can you please give a scripted example.

Thank you

Surface numbering

What do you mean by ‘the same number’? Do you mean they share the same index in the data tree?

Yes, I want to make script in such a way that the common surfaces of breps should have same index.

Deconstruct the brep, calculate area of faces, then cull duplicates (the centers) this will give you an unique list of indexes (centers so faces) and points

Thank you for response. Sorry for asking much, but can you please write a script?

You could also search a bit and pick what is useful for your problem

2 Likes

Thank you for the guidance.