Model.edgesmerge#

Model.edgesmerge(edge1, edge2, edge_tolerance)#

Combines two edges to create one unsuppressed common edge.

Parameters:
  • edge1 (Entity) – The entity of the first of two surface edges that you wish to combine

  • edge2 (Entity) – The entity of the second of two edges to be combined.

  • edge_tolerance (double) – The edges must be within this tolerance. If they are further apart than this, they will not combine.

Example#

Combine edges with IDs 25 and 26 , use a tolerance of 0.1#
import hm
import hm.entities as ent

model = hm.Model()

lines = hm.Collection(model, ent.Line, [5,10,21,30])

model.edgesmerge(edge1=ent.Line(model,25), edge2=ent.Line(model,26), edge_tolerance=0.1)