Model.linescombine#

Model.linescombine(edge1, edge2, edge_tolerance)#

Combines two free surface edges to create one unsuppressed common edge.

Parameters:
  • edge1 (Entity) – The line entity representing the first free surface edge. Free surface edge is an edge which is attached to a surface only once.

  • edge2 (Entity) – The line entity representing the second free surface edge. Free surface edge is an edge which is attached to a surface only once.

  • edge_tolerance (double) – The edges must be within this tolerance.

Example#

Combine the edges with IDs 101 and 39, use a tolerance of 0.1#
import hm
import hm.entities as ent

model = hm.Model()

model.linescombine(
    edge1=ent.Line(model, 101), edge2=ent.Line(model, 39), edge_tolerance=0.1
)