Model.surfacecopyedges#

Model.surfacecopyedges(surface, entitylist, all_edges)#

Create lines from the edges of a surface.

Parameters:
  • surface (Entity) – A surface that contains edges (a full sphere or torus does not contain edges).

  • entitylist (EntityList) – The list of the nodes used to select the surface edges (if all_edges=0).

  • all_edges (int) –

    0 - Only copy edges that have a node created on them (from list).

    1 - Copy all edges of the surface to new lines.

Example#

Copy all edges of surface with ID 1 to new lines#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacecopyedges(surface=ent.Surface(model, 1), entitylist=ent.Node.getentitylist(), all_edges=1)