Now if I want to find the boundary vertices of a network using “vertices_on_boundary” from FaceNetwork, I use:
face_net = FaceNetwork.from_data(network.to_data())
vertix_list = face_net.vertices_on_boundary(ordered=True)
when “ordered=True”, it looks like that the method is stuck somewhere and never stops. Could this be related to the WARNING?
when “ordered=False”, it returns a list which includes all the vertices. Could it be because of the non-consecutive vertex keys?
for example for below network:
face_net.vertex = {4: {‘y’: 14.67, ‘x’: -42.67, ‘z’: 0.0}, 5: {‘y’: 14.5, ‘x’: -42.0, ‘z’: 0.0}, 41: {‘y’: 14.33, ‘x’: -42.17, ‘z’: 0.0}, 42: {‘y’: 14.17, ‘x’: -42.5, ‘z’: 0.0}, 13: {‘y’: 14.67, ‘x’: -43.0, ‘z’: 0.0}, 14: {‘y’: 14.33, ‘x’: -43.0, ‘z’: 0.0}, 47: {‘y’: 14.5, ‘x’: -42.33, ‘z’: 0.0}, 16: {‘y’: 14.33, ‘x’: -42.67, ‘z’: 0.0}, 22: {‘y’: 14.5, ‘x’: -42.5, ‘z’: 0.0}, 23: {‘y’: 14.67, ‘x’: -42.17, ‘z’: 0.0}, 24: {‘y’: 14.5, ‘x’: -42.83, ‘z’: 0.0}, 27: {‘y’: 14.33, ‘x’: -42.5, ‘z’: 0.0}}
face_net.edge = {4: {24: {}, 42: {}, 13: {}, 22: {}}, 5: {41: {}, 23: {}}, 41: {27: {}, 47: {}}, 42: {23: {}, 47: {}}, 13: {24: {}}, 14: {24: {}}, 47: {}, 16: {24: {}, 27: {}, 22: {}, 14: {}}, 22: {42: {}, 27: {}}, 23: {47: {}}, 24: {}, 27: {47: {}}}