Can anyone suggest a strategy to perform a process within python similar to ‘Brep Topology’ in Grasshopper. I have not been successful in finding a similar command in python. Thank you.
By way of example, here is a ghpython sample, (Rhino V6), the replicates the Native Brep Topology Component.
import Rhino from ghpythonlib import treehelpers as th FF1 =  FE1 =  EF1 =  for f in x.Faces: FF1.append(f.AdjacentFaces()) FE1.append(f.AdjacentEdges()) for e1 in x.Edges: EF1.append(e1.AdjacentFaces()) FF = th.list_to_tree(FF1, True) FE = th.list_to_tree(FE1, True) EF = th.list_to_tree(EF1, True)
The tree helpers are specific to GH, to deal with the whole nested array/list/data tree issues. They are awesome.
BrepTopologyKnockOff_GHPy.gh (8.0 KB)
Excellent, thank you Chris. That is exactly what I was hoping for. Well Done, Sir.