Model.remap#
- Model.remap(nodelist, linelist, endpoints)#
Remaps a list of nodes to a line.
- Parameters:
nodelist (EntityList) – The list of node entities to be remapped.
linelist (EntityList) – The list of line entities to which the nodes will be remapped.
endpoints (EntityList) – The end points of the line list.
Example#
Remappe nodes with IDs 1 to 7 which lie in lines with IDs 1 , 2 and end point with the nodes with ID 4 , 7 respectively#import hm import hm.entities as ent model = hm.Model() node_list = [ent.Node(model, id + 1) for id in range(7)] line_list = [ent.Line(model, 1), ent.Line(model, 2)] endpoint_list = [ent.Node(model, 4),ent.Node(model, 7)] model.remap(nodelist=node_list, linelist=line_list, endpoints=endpoint_list)